Manages API methods for permissions of Application Commands.
Extends
BaseManagerName | Constraints | Optional | Default | Description |
---|---|---|---|---|
BaseOptions | No | None | ||
FetchSingleOptions | No | None | ||
GuildType | No | None | ||
CommandIdType | No | None |
The client that instantiated this Manager
Inherited from BaseManagerAdd permissions to a command.
Name | Type | Optional | Description |
---|---|---|---|
options | FetchSingleOptions & EditApplicationCommandPermissionsMixin | No | Options used to add permissions |
Fetches the permissions for one or multiple commands. Providing the client's id as the "command id" will fetch only* the guild level permissions
Name | Type | Optional | Description |
---|---|---|---|
options | FetchSingleOptions | No | Options used to fetch permissions |
Check whether a permission exists for a user, role, or channel
Name | Type | Optional | Description |
---|---|---|---|
options | FetchSingleOptions & { permissionId: ApplicationCommandPermissionIdResolvable; permissionType?: ApplicationCommandPermissionType; } | No | Options used to check permissions |
Remove permissions from a command.
Name | Type | Optional | Description |
---|---|---|---|
options | | (FetchSingleOptions & { token: string; channels?: readonly (GuildChannelResolvable | ChannelPermissionConstant)[]; roles?: readonly (RoleResolvable | RolePermissionConstant)[]; users: readonly UserResolvable[]; }) | (FetchSingleOptions & { token: string; channels?: readonly (GuildChannelResolvable | ChannelPermissionConstant)[]; roles: readonly (RoleResolvable | RolePermissionConstant)[]; users?: readonly UserResolvable[]; }) | (FetchSingleOptions & { token: string; channels: readonly (GuildChannelResolvable | ChannelPermissionConstant)[]; roles?: readonly (RoleResolvable | RolePermissionConstant)[]; users?: readonly UserResolvable[]; }) | No | Options used to remove permissions |
Sets the permissions for the guild or a command overwrite.
Name | Type | Optional | Description |
---|---|---|---|
options | FetchSingleOptions & EditApplicationCommandPermissionsMixin | No | Options used to set permissions |