new Interaction
src/structures/interaction.ts:119new Interaction(client: ShardClient, data?: BaseStructureData, isClone?: boolean)Interaction Structure
import { Structures } from 'detritus-client';
Structures.Interaction;new Interaction(client: ShardClient, data?: BaseStructureData, isClone?: boolean)If the bot user is in the interaction's location (a guild it's a member of or its own dm), so it can use the api there authorizingIntegrationOwners isn't used since it only says which install authorized the command, not if the bot user is in the guild
_getFromSnake(key: string): any_setFromSnake(key: string, value: any): any[custom](): objectclone(): thiscreateMessage(options?: string | ExecuteWebhook): Promise<Message | null>createResponse(
options: InteractionResponseOptions,
data?: InteractionResponseData,
): Promise<unknown>deleteMessage(messageId: string, options?: DeleteWebhookTokenMessage): Promise<any>deleteResponse(): Promise<any>difference(key: string, value: any): [boolean, any]differences(data?: BaseStructureData): object | nulldifferencesBetween(structure: Structure): object | nulleditMessage(messageId: string, options?: EditWebhookTokenMessage): Promise<Message>editOrRespond(options?: string | InteractionEditOrRespond): Promise<unknown>editResponse(options?: EditWebhookTokenMessage): Promise<Message>fetchMessage(messageId: string, options?: FetchWebhookTokenMessage): Promise<Message>fetchResponse(): Promise<Message>hasDifference(key: string, value: any): booleanhasDifferences(data?: BaseStructureData): booleanhasDifferencesBetween(structure: Structure): booleanmerge(data?: BaseStructureData): voidmergeValue(key: string, value: any): voidreply(options?: string | ExecuteWebhook): Promise<Message | null>respond(
options: InteractionResponseOptions,
data?: InteractionResponseData,
): Promise<unknown>toJSON(): object