From c0f079d2325a636c83ac676c525bfa89ce308b3c Mon Sep 17 00:00:00 2001 From: Parbez Date: Sat, 11 Jun 2022 00:49:44 +0530 Subject: [PATCH] typings: remove isAutocomplete typeguard from typings (#8063) --- README.md | 2 +- packages/discord.js/README.md | 2 +- packages/discord.js/typings/index.d.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94d317a19..952cbd00a 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ client.on('ready', () => { }); client.on('interactionCreate', async (interaction) => { - if (!interaction.isCommand()) return; + if (!interaction.isChatInputCommand()) return; if (interaction.commandName === 'ping') { await interaction.reply('Pong!'); diff --git a/packages/discord.js/README.md b/packages/discord.js/README.md index c9c9a447a..55f944fb7 100644 --- a/packages/discord.js/README.md +++ b/packages/discord.js/README.md @@ -89,7 +89,7 @@ client.on('ready', () => { }); client.on('interactionCreate', async interaction => { - if (!interaction.isCommand()) return; + if (!interaction.isChatInputCommand()) return; if (interaction.commandName === 'ping') { await interaction.reply('Pong!'); diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 9e15e20be..ec3bdbfda 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1520,7 +1520,6 @@ export class Interaction extends Base { public isChatInputCommand(): this is ChatInputCommandInteraction; public isContextMenuCommand(): this is ContextMenuCommandInteraction; public isMessageContextMenuCommand(): this is MessageContextMenuCommandInteraction; - public isAutocomplete(): this is AutocompleteInteraction; public isUserContextMenuCommand(): this is UserContextMenuCommandInteraction; public isSelectMenu(): this is SelectMenuInteraction; public isRepliable(): this is this & InteractionResponseFields;