summary refs log tree commit diff
path: root/src/models/Interaction.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:12 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:12 +0100
commit1f7ebe256e00583bf0888d3f9e32ea1b8ef1b237 (patch)
tree5906b6dcc83593a8dae7d88e62fa62680c4dcda9 /src/models/Interaction.ts
parent:sparkles: Event model (diff)
downloadserver-1f7ebe256e00583bf0888d3f9e32ea1b8ef1b237.tar.xz
:sparkles: updated other models
Diffstat (limited to 'src/models/Interaction.ts')
-rw-r--r--src/models/Interaction.ts32
1 files changed, 32 insertions, 0 deletions
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; +}