summaryrefslogtreecommitdiff
path: root/src/discord/interfaces.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/interfaces.ts')
-rw-r--r--src/discord/interfaces.ts24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/discord/interfaces.ts b/src/discord/interfaces.ts
index 3eb81eb..6b26876 100644
--- a/src/discord/interfaces.ts
+++ b/src/discord/interfaces.ts
@@ -17,27 +17,41 @@ export interface DiscordInteraction {
channel?: {
nsfw: boolean;
};
+ guild_id?: string;
+ user?: {
+ id: string;
+ username: string;
+ avatar?: string;
+ };
+ member?: {
+ user?: {
+ id: string;
+ username: string;
+ avatar?: string;
+ };
+ };
}
export interface DiscordEmbed {
title: string;
description: string;
- url: string;
+ url?: string;
color: number;
- author: {
+ author?: {
name: string;
url: string;
};
- fields: Array<{
+ fields?: Array<{
name: string;
value: string;
inline: boolean;
}>;
- timestamp: string;
- footer: {
+ timestamp?: string;
+ footer?: {
text: string;
};
image?: { url: string };
+ thumbnail?: { url: string };
}
export interface DiscordResponse {