From b02b16ffcca409aa37a2de88008d2bd1edb57d6f Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Sun, 14 Mar 2021 15:17:19 +0530 Subject: [PATCH] i give up --- src/structures/slash.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/structures/slash.ts b/src/structures/slash.ts index 3714697..626ae97 100644 --- a/src/structures/slash.ts +++ b/src/structures/slash.ts @@ -7,14 +7,12 @@ import { } from '../types/channel.ts' import { INTERACTION_CALLBACK, WEBHOOK_MESSAGE } from '../types/endpoint.ts' import { - InteractionApplicationCommandData, InteractionApplicationCommandOption, InteractionChannelPayload, InteractionPayload, InteractionResponseFlags, InteractionResponsePayload, InteractionResponseType, - InteractionType, SlashCommandOptionType } from '../types/slash.ts' import { Dict } from '../utils/dict.ts' @@ -28,6 +26,7 @@ import { Message } from './message.ts' import { Role } from './role.ts' import { GuildTextChannel, TextChannel } from './textChannel.ts' import { User } from './user.ts' +import { Webhook } from './webhook.ts' interface WebhookMessageOptions extends MessageOptions { embeds?: Embed[] @@ -87,15 +86,15 @@ export class InteractionUser extends User { export class Interaction extends SnowflakeBase { /** This will be `SlashClient` in case of `SlashClient#verifyServerRequest` */ - client: Client + client!: Client type: number token: string /** Interaction ID */ id: string data: InteractionData channel: GuildTextChannel - guild: Guild - member: Member + guild?: Guild + member?: Member _savedHook?: Webhook _respond?: (data: InteractionResponsePayload) => unknown