mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
typings: remove isAutocomplete typeguard from typings (#8063)
This commit is contained in:
@@ -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!');
|
||||||
|
|||||||
@@ -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!');
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user