typings: remove isAutocomplete typeguard from typings (#8063)

This commit is contained in:
Parbez
2022-06-11 00:49:44 +05:30
committed by GitHub
parent d8077c6839
commit c0f079d232
3 changed files with 2 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ client.on('ready', () => {
}); });
client.on('interactionCreate', async (interaction) => { client.on('interactionCreate', async (interaction) => {
if (!interaction.isCommand()) return; if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') { if (interaction.commandName === 'ping') {
await interaction.reply('Pong!'); await interaction.reply('Pong!');

View File

@@ -89,7 +89,7 @@ client.on('ready', () => {
}); });
client.on('interactionCreate', async interaction => { client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return; if (!interaction.isChatInputCommand()) return;
if (interaction.commandName === 'ping') { if (interaction.commandName === 'ping') {
await interaction.reply('Pong!'); await interaction.reply('Pong!');

View File

@@ -1520,7 +1520,6 @@ export class Interaction<Cached extends CacheType = CacheType> extends Base {
public isChatInputCommand(): this is ChatInputCommandInteraction<Cached>; public isChatInputCommand(): this is ChatInputCommandInteraction<Cached>;
public isContextMenuCommand(): this is ContextMenuCommandInteraction<Cached>; public isContextMenuCommand(): this is ContextMenuCommandInteraction<Cached>;
public isMessageContextMenuCommand(): this is MessageContextMenuCommandInteraction<Cached>; public isMessageContextMenuCommand(): this is MessageContextMenuCommandInteraction<Cached>;
public isAutocomplete(): this is AutocompleteInteraction<Cached>;
public isUserContextMenuCommand(): this is UserContextMenuCommandInteraction<Cached>; public isUserContextMenuCommand(): this is UserContextMenuCommandInteraction<Cached>;
public isSelectMenu(): this is SelectMenuInteraction<Cached>; public isSelectMenu(): this is SelectMenuInteraction<Cached>;
public isRepliable(): this is this & InteractionResponseFields<Cached>; public isRepliable(): this is this & InteractionResponseFields<Cached>;