UNPKG

djskage

Version:

A Discord.js extension for utility commands

82 lines (81 loc) 3.03 kB
import { Client, Message, InteractionType, PermissionsBitField, ApplicationCommand, ApplicationCommandType, ModalBuilder, ShowModalOptions, ModalSubmitInteraction, Locale, Collection, InteractionContextType } from "discord.js"; export declare class Mockinteraction { id: string; applicationId: string | undefined; type: InteractionType; channelId: any; guildId: string | undefined; user: any; member: any; commandId: string; commandName: string; options: { getString: (name: string) => any; getInteger: (name: string) => any; getNumber: (name: string) => any; getBoolean: (name: string) => any; getUser: (name: string) => any; getChannel: (name: string) => any; getRole: (name: string) => any; getMentionable: (name: string) => any; getAttachment: (name: string) => any; getSubcommand: (required?: boolean) => any; }; createdTimestamp: number; channel: any; guild: any; client: Client<true>; appPermissions: Readonly<PermissionsBitField>; memberPermissions: Readonly<PermissionsBitField>; replied: boolean; replmessage: null; deferReply: () => Promise<void>; deferUpdate: () => Promise<void>; reply: (response: any) => Promise<Message<true>>; followUp: (response: any) => Promise<Message<true>>; editReply: (response: any) => Promise<any>; deleteReply: () => Promise<any>; fetchReply: () => Promise<any>; isCommand: () => boolean; isAutocomplete: () => boolean; isButton: () => boolean; isChatInputCommand: () => boolean; isMessageComponent: () => boolean; isModalSubmit: () => boolean; isUserContextMenuCommand: () => boolean; isMessageContextMenuCommand: () => boolean; isStringSelectMenu: () => boolean; isAnySelectMenu: () => boolean; isRoleSelectMenu: () => boolean; isChannelSelectMenu: () => boolean; isMentionableSelectMenu: () => boolean; isRepliable: () => boolean; deferred: boolean; inGuild: () => boolean; inRawGuild: () => boolean; inCachedGuild: () => any; commandType: ApplicationCommandType; command: ApplicationCommand<{}>; commandGuildId: string | null; ephemeral: boolean; webhook: null; showModal: (modal: ModalBuilder, options?: ShowModalOptions) => Promise<void>; awaitModalSubmit: () => Promise<ModalSubmitInteraction>; sendPremiumRequired: () => boolean; transformOption: () => boolean; authorizingIntegrationOwners: () => Map<any, any>; createdAt: Date; version: number; locale: string; token: string; guildLocale: Locale; entitlements: Collection<unknown, unknown>; isContextMenuCommand: () => boolean; isSelectMenu: () => boolean; isUserSelectMenu: () => boolean; toJSON: () => string; context: InteractionContextType; _cacheType: null; fullCommandName: string | undefined; constructor(client: Client, message: Message, command: ApplicationCommand); }