diff options
| author | Fuwn <[email protected]> | 2025-09-24 18:14:30 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-24 18:14:30 -0700 |
| commit | 2d987046d094cf5eb784c8d79d678bd3efa5eaf9 (patch) | |
| tree | dd37d395961d9a68e3e1293a89fb46992aab88d1 /src/discord/interfaces.ts | |
| parent | style: Lint (diff) | |
| download | umabotdiscord-2d987046d094cf5eb784c8d79d678bd3efa5eaf9.tar.xz umabotdiscord-2d987046d094cf5eb784c8d79d678bd3efa5eaf9.zip | |
refactor: Move interactions client to packages directory
Diffstat (limited to 'src/discord/interfaces.ts')
| -rw-r--r-- | src/discord/interfaces.ts | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/src/discord/interfaces.ts b/src/discord/interfaces.ts deleted file mode 100644 index bc8683c..0000000 --- a/src/discord/interfaces.ts +++ /dev/null @@ -1,86 +0,0 @@ -export interface Environment { - DISCORD_APPLICATION_ID: string; - DISCORD_PUBLIC_KEY: string; - DISCORD_TOKEN: string; -} - -export interface DiscordInteraction { - type: number; - data: { - name: string; - options?: Array<{ - name: string; - value: string; - }>; - }; - channel_id?: string; - channel?: { - nsfw: boolean; - }; - guild_id?: string; - user?: { - id: string; - username: string; - avatar?: string; - }; - member?: { - user?: { - id: string; - username: string; - avatar?: string; - }; - roles?: string[]; - permissions?: string; - }; -} - -export interface DiscordEmbed { - title: string; - description: string; - url?: string; - color: number; - author?: { - name: string; - url: string; - }; - fields?: Array<{ - name: string; - value: string; - inline: boolean; - }>; - timestamp?: string; - footer?: { - text: string; - }; - image?: { url: string }; - thumbnail?: { url: string }; -} - -export interface DiscordResponse { - type: number; - data?: { - content?: string; - embeds?: DiscordEmbed[]; - flags?: number; - }; -} - -export interface DiscordCommand { - name: string; - description: string; - options?: DiscordCommandOption[]; - contexts?: number[]; -} - -export interface DiscordCommandOption { - type: number; - name: string; - description: string; - required?: boolean; - choices?: DiscordCommandChoice[]; -} - -export interface DiscordCommandChoice { - name: string; - value: string; -} |