fix: comment code
This commit is contained in:
		@@ -632,6 +632,7 @@ class ApplicationCommand extends Base {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    const data = {
 | 
					    const data = {
 | 
				
			||||||
      type: 2, // Slash command, context menu
 | 
					      type: 2, // Slash command, context menu
 | 
				
			||||||
 | 
					      // Type: 4: Auto-complete
 | 
				
			||||||
      application_id: this.applicationId,
 | 
					      application_id: this.applicationId,
 | 
				
			||||||
      guild_id: message.guildId,
 | 
					      guild_id: message.guildId,
 | 
				
			||||||
      channel_id: message.channelId,
 | 
					      channel_id: message.channelId,
 | 
				
			||||||
@@ -680,7 +681,7 @@ class ApplicationCommand extends Base {
 | 
				
			|||||||
    if (this.type == 'CHAT_INPUT') return false;
 | 
					    if (this.type == 'CHAT_INPUT') return false;
 | 
				
			||||||
    await this.client.api.interactions.post({
 | 
					    await this.client.api.interactions.post({
 | 
				
			||||||
      body: {
 | 
					      body: {
 | 
				
			||||||
        type: 2, // ???
 | 
					        type: 2, // Slash command, context menu
 | 
				
			||||||
        application_id: this.applicationId,
 | 
					        application_id: this.applicationId,
 | 
				
			||||||
        guild_id: message.guildId,
 | 
					        guild_id: message.guildId,
 | 
				
			||||||
        channel_id: message.channelId,
 | 
					        channel_id: message.channelId,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -200,7 +200,7 @@ class Modal {
 | 
				
			|||||||
    const dataFinal = this.toJSON();
 | 
					    const dataFinal = this.toJSON();
 | 
				
			||||||
    delete dataFinal.title;
 | 
					    delete dataFinal.title;
 | 
				
			||||||
    const postData = {
 | 
					    const postData = {
 | 
				
			||||||
      type: 5, // Maybe modal ... (2: slash, context menu)
 | 
					      type: 5, // Modal
 | 
				
			||||||
      application_id: this.application.id,
 | 
					      application_id: this.application.id,
 | 
				
			||||||
      guild_id: guildId,
 | 
					      guild_id: guildId,
 | 
				
			||||||
      channel_id: channelId,
 | 
					      channel_id: channelId,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user