{"version":3,"file":"MessageComponentInteraction.mjs","sourceRoot":"","sources":["../../src/interactions/MessageComponentInteraction.mts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAA4B,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAGtH,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,eAAe;IAapE,YAAY,WAA2C;QACnD,KAAK,CAAC,WAAW,CAAC,CAAC;QAXvB,qCAAqC;QACrC;;;;;WAAiB;QACjB,wDAAwD;QACxD;;;;;WAAoB;QACpB,gCAAgC;QAChC;;;;;WAA6B;QAC7B,iDAAiD;QACjD;;;;;WAAqB;QAMjB,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IACrC,CAAC;CAEJ;AAGD,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;IAChD,OAAO;IACP,WAAW;IACX,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;IACX,aAAa;IACb,QAAQ;CACX,CAAC,CAAC;AAEH,8BAA8B,CAAC,2BAA2B,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */\nimport type { APIMessage, APIMessageComponentInteraction, ComponentType, InteractionType, LocaleString } from \"discord-api-types/v10\";\nimport BaseInteraction from \"./BaseInteraction.mjs\";\nimport { InteractionResponseMixin, applyInteractionResponseMixins, createInteractionMixinList } from \"./Response.mjs\";\n\n\nexport default class MessageComponentInteraction extends BaseInteraction {\n    declare type: InteractionType.MessageComponent;\n\n    /** The custom id of the component */\n    customId: string;\n    /** For components, the message they were attached to */\n    message: APIMessage;\n    /** The type of the component */\n    componentType: ComponentType;\n    /** The selected language of the invoking user */\n    locale: LocaleString;\n\n\n    constructor(interaction: APIMessageComponentInteraction) {\n        super(interaction);\n\n        this.customId = interaction.data.custom_id;\n        this.message = interaction.message;\n        this.componentType = interaction.data.component_type;\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    \"deferUpdate\",\n    \"update\"\n]);\n\napplyInteractionResponseMixins(MessageComponentInteraction, allowedResponses);\n\nexport default interface MessageComponentInteraction extends InteractionResponseMixin<typeof allowedResponses> { }\n\n"]}