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;
+}
|