{"version":3,"file":"ApplicationCommandInteraction.mjs","sourceRoot":"","sources":["../../src/interactions/ApplicationCommandInteraction.mts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAA4B,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAGtH,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,eAAe;IAatE,YAAY,WAA6C;QACrD,KAAK,CAAC,WAAW,CAAC,CAAC;QAZvB,uBAAuB;QACvB;;;;;WAAqB;QACrB,yBAAyB;QACzB;;;;;WAAoB;QACpB,0BAA0B;QAC1B;;;;;WAAoC;QACpC,2DAA2D;QAC3D;;;;;WAA2B;QAC3B,iDAAiD;QACjD;;;;;WAAqB;QAKjB,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;QACzC,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;QAChD,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAErC,CAAC;CAEJ;AAED,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;IAChD,OAAO;IACP,WAAW;IACX,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;CACd,CAAC,CAAC;AAEH,8BAA8B,CAAC,6BAA6B,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */\nimport type { APIApplicationCommandInteraction, ApplicationCommandType, InteractionType, LocaleString, Snowflake } from \"discord-api-types/v10\";\nimport BaseInteraction from \"./BaseInteraction.mjs\";\nimport { InteractionResponseMixin, applyInteractionResponseMixins, createInteractionMixinList } from \"./Response.mjs\";\n\n\nexport default class ApplicationCommandInteraction extends BaseInteraction {\n    declare type: InteractionType.ApplicationCommand;\n    /** The command's Id */\n    commandId: Snowflake;\n    /** The command's name */\n    commandName: string;\n    /** The type of command */\n    commandType: ApplicationCommandType;\n    /** If the command was a guild specific, that guild's id */\n    commandGuildId?: Snowflake;\n    /** The selected language of the invoking user */\n    locale: LocaleString;\n\n    constructor(interaction: APIApplicationCommandInteraction) {\n        super(interaction);\n\n        this.commandId = interaction.data.id;\n        this.commandName = interaction.data.name;\n        this.commandType = interaction.data.type;\n        this.commandGuildId = interaction.data.guild_id;\n        this.locale = interaction.locale;\n\n    }\n\n}\n\nconst allowedResponses = createInteractionMixinList([\n    \"reply\",\n    \"editReply\",\n    \"deleteReply\",\n    \"deferReply\",\n    \"fetchReply\",\n    \"followUp\",\n    \"showModal\"\n]);\n\napplyInteractionResponseMixins(ApplicationCommandInteraction, allowedResponses);\n\nexport default interface ApplicationCommandInteraction extends InteractionResponseMixin<typeof allowedResponses> { }\n"]}