Skip to main content

DiscordApplicationCommandPermissions

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordApplicationCommandPermissions

Interface: DiscordApplicationCommandPermissions

https://discord.com/developers/docs/interactions/slash-commands#applicationcommandpermissions

Properties

id

id: string

ID of the role, user, or channel. It can also be a permission constant

Defined in

packages/types/dist/types/discord.d.ts:2606


permission

permission: boolean

true to allow, false, to disallow

Defined in

packages/types/dist/types/discord.d.ts:2610


type

type: ApplicationCommandPermissionTypes

ApplicationCommandPermissionTypes.Role, ApplicationCommandPermissionTypes.User, or ApplicationCommandPermissionTypes.Channel

Defined in

packages/types/dist/types/discord.d.ts:2608