From 1f7ebe256e00583bf0888d3f9e32ea1b8ef1b237 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 11 Feb 2021 20:44:12 +0100 Subject: :sparkles: updated other models --- src/models/Interaction.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/models/Interaction.ts (limited to 'src/models/Interaction.ts') diff --git a/src/models/Interaction.ts b/src/models/Interaction.ts new file mode 100644 index 00000000..6f36c14a --- /dev/null +++ b/src/models/Interaction.ts @@ -0,0 +1,32 @@ +import { AllowedMentions, Embed } from "./Message"; + +export interface Interaction { + id: bigint; + type: InteractionType; + data?: {}; + guild_id: bigint; + channel_id: bigint; + member_id: bigint; + token: string; + version: number; +} + +export enum InteractionType { + Ping = 1, + ApplicationCommand = 2, +} + +export enum InteractionResponseType { + Pong = 1, + Acknowledge = 2, + ChannelMessage = 3, + ChannelMessageWithSource = 4, + AcknowledgeWithSource = 5, +} + +export interface InteractionApplicationCommandCallbackData { + tts?: boolean; + content: string; + embeds?: Embed[]; + allowed_mentions?: AllowedMentions; +} -- cgit 1.5.1