From d2a766ef3b66b2bc7077e07e97e8e0d117d99c32 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 15 Jun 2022 18:52:06 +0700 Subject: [PATCH] fix: comment code --- src/structures/ApplicationCommand.js | 3 ++- src/structures/Modal.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/ApplicationCommand.js b/src/structures/ApplicationCommand.js index ec84428..005c16c 100644 --- a/src/structures/ApplicationCommand.js +++ b/src/structures/ApplicationCommand.js @@ -632,6 +632,7 @@ class ApplicationCommand extends Base { } const data = { type: 2, // Slash command, context menu + // Type: 4: Auto-complete application_id: this.applicationId, guild_id: message.guildId, channel_id: message.channelId, @@ -680,7 +681,7 @@ class ApplicationCommand extends Base { if (this.type == 'CHAT_INPUT') return false; await this.client.api.interactions.post({ body: { - type: 2, // ??? + type: 2, // Slash command, context menu application_id: this.applicationId, guild_id: message.guildId, channel_id: message.channelId, diff --git a/src/structures/Modal.js b/src/structures/Modal.js index b4b34e6..eab8fa0 100644 --- a/src/structures/Modal.js +++ b/src/structures/Modal.js @@ -200,7 +200,7 @@ class Modal { const dataFinal = this.toJSON(); delete dataFinal.title; const postData = { - type: 5, // Maybe modal ... (2: slash, context menu) + type: 5, // Modal application_id: this.application.id, guild_id: guildId, channel_id: channelId,