Access
Access =
object
Defined in: utils/command.ts:51
Who sees a command or a context menu item, and where.
Properties
Section titled “Properties”contexts?
Section titled “contexts?”
optionalcontexts?: ("guild"|"bot_dm"|"private_channel")[]
Defined in: utils/command.ts:64
Where it shows: guild, bot_dm or private_channel.
installs?
Section titled “installs?”
optionalinstalls?: ("guild"|"user")[]
Defined in: utils/command.ts:66
How the app must be installed for it: guild or user.
locales?
Section titled “locales?”
optionallocales?:Locales
Defined in: utils/command.ts:56
The name and description in other languages, keyed by Discord locale, such as
{ th: { name: 'ทอย', description: 'ทอยลูกเต๋า' } }. The handler still gets the default name.
permissions?
Section titled “permissions?”
optionalpermissions?:Permission[]
Defined in: utils/command.ts:62
Who sees it by default: members with all of these permissions, such as ['ManageGuild'].
Pass [] to show it to admins only. Server admins can change this in Server Settings.
Applies to a top-level command only.