Skip to content

Access

Access = object

Defined in: utils/command.ts:51

Who sees a command or a context menu item, and where.

optional contexts?: ("guild" | "bot_dm" | "private_channel")[]

Defined in: utils/command.ts:64

Where it shows: guild, bot_dm or private_channel.


optional installs?: ("guild" | "user")[]

Defined in: utils/command.ts:66

How the app must be installed for it: guild or user.


optional locales?: 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.


optional permissions?: 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.