Skip to content

Bot Owners

Badbird-5907 edited this page Jul 10, 2021 · 1 revision

What are bot owners

Bot owners are the 'owners' of the bot. They can have permissions to execute commands that are owner-only.

Usage:

//this adds a owner to the bot
JDACommand.addOwner(1234L); //params is the owner user id as a long.
//this returns true if a user is a owner and false if they are not a owner.
JDACommand.isOwner(net.dv8tion.jda.api.entities.User); //pass through a user object.
Clone this wiki locally