UNPKG

nhandler

Version:

The easy to use, all-in-one command, event and component handler.

8 lines (7 loc) 1.3 kB
import { AutocompleteInteraction, ButtonInteraction, ChannelSelectMenuInteraction, ChatInputCommandInteraction, MentionableSelectMenuInteraction, MessageContextMenuCommandInteraction, ModalSubmitInteraction, RoleSelectMenuInteraction, StringSelectMenuInteraction, UserContextMenuCommandInteraction, UserSelectMenuInteraction } from "discord.js"; export type AnyComponentInteraction = ButtonInteraction | StringSelectMenuInteraction | UserSelectMenuInteraction | ChannelSelectMenuInteraction | RoleSelectMenuInteraction | MentionableSelectMenuInteraction | ModalSubmitInteraction; export type ContextMenuInteraction = UserContextMenuCommandInteraction | MessageContextMenuCommandInteraction; export declare const isCommandInteraction: (interaction: any) => interaction is ChatInputCommandInteraction<import("discord.js").CacheType>; export declare const isContextMenuInteraction: (interaction: any) => interaction is MessageContextMenuCommandInteraction<import("discord.js").CacheType> | UserContextMenuCommandInteraction<import("discord.js").CacheType>; export declare const isAutocompleteInteraction: (interaction: any) => interaction is AutocompleteInteraction<import("discord.js").CacheType>; export declare const isComponentInteraction: (interaction: any) => interaction is AnyComponentInteraction;