summary refs log tree commit diff
path: root/dist/models/Interaction.d.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
commit673e691c6e26a0abbadb93cf8ef4b1e45ad1accc (patch)
tree8496623a70f192e4e88ec487e38e0f6c284dc883 /dist/models/Interaction.d.ts
parent:sparkles: updated other models (diff)
downloadserver-673e691c6e26a0abbadb93cf8ef4b1e45ad1accc.tar.xz
:wrench: build
Diffstat (limited to 'dist/models/Interaction.d.ts')
-rw-r--r--dist/models/Interaction.d.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/dist/models/Interaction.d.ts b/dist/models/Interaction.d.ts
new file mode 100644

index 00000000..df03b8a9 --- /dev/null +++ b/dist/models/Interaction.d.ts
@@ -0,0 +1,28 @@ +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 declare enum InteractionType { + Ping = 1, + ApplicationCommand = 2 +} +export declare enum InteractionResponseType { + Pong = 1, + Acknowledge = 2, + ChannelMessage = 3, + ChannelMessageWithSource = 4, + AcknowledgeWithSource = 5 +} +export interface InteractionApplicationCommandCallbackData { + tts?: boolean; + content: string; + embeds?: Embed[]; + allowed_mentions?: AllowedMentions; +}