Skip to main content
Module

x/discord_api_types/payloads/v8/_interactions/_applicationCommands/permissions.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
import type { Snowflake } from '../../../../globals.ts';
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure * * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export interface APIGuildApplicationCommandPermissions { /** * The id of the command */ id: Snowflake; /** * The id of the application the command belongs to */ application_id: Snowflake; /** * The id of the guild */ guild_id: Snowflake; /** * The permissions for the command in the guild */ permissions: APIApplicationCommandPermission[];}
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-structure * * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export interface APIApplicationCommandPermission { /** * The id of the role or user */ id: Snowflake; /** * Role or user */ type: ApplicationCommandPermissionType; /** * `true` to allow, `false`, to disallow */ permission: boolean;}
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type * * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export enum ApplicationCommandPermissionType { Role = 1, User,}