diff options
| author | Fuwn <[email protected]> | 2025-10-01 21:04:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-01 21:04:29 -0700 |
| commit | c2ba8c2c4b2d0bde82149a357e616f582fc92e28 (patch) | |
| tree | 6e0bd86f18a17376f6e2588aa37471c23485b3de /packages/interactions/discord | |
| parent | feat(interactions): Add nsfw-apply command (diff) | |
| download | umabotdiscord-c2ba8c2c4b2d0bde82149a357e616f582fc92e28.tar.xz umabotdiscord-c2ba8c2c4b2d0bde82149a357e616f582fc92e28.zip | |
feat(interactions): Support GIFs in audit logs
Diffstat (limited to 'packages/interactions/discord')
| -rw-r--r-- | packages/interactions/discord/commands/index.ts | 3 | ||||
| -rw-r--r-- | packages/interactions/discord/embeds.ts | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/packages/interactions/discord/commands/index.ts b/packages/interactions/discord/commands/index.ts index 0a13e33..c916d85 100644 --- a/packages/interactions/discord/commands/index.ts +++ b/packages/interactions/discord/commands/index.ts @@ -141,8 +141,7 @@ export const ROLEPLAY_VERIFY_COMMAND: DiscordCommand = { export const AGE_VERIFY_COMMAND: DiscordCommand = { name: "age-verify", - description: - "Manage the verified age role (Staff only)", + description: "Manage the verified age role (Staff only)", options: [ { type: 3, diff --git a/packages/interactions/discord/embeds.ts b/packages/interactions/discord/embeds.ts index 16e485e..2d2dfe9 100644 --- a/packages/interactions/discord/embeds.ts +++ b/packages/interactions/discord/embeds.ts @@ -136,7 +136,7 @@ export const createComplaintEmbed = ( ], thumbnail: complainant.avatar ? { - url: `https://cdn.discordapp.com/avatars/${complainant.id}/${complainant.avatar}.png?size=256`, + url: `https://cdn.discordapp.com/avatars/${complainant.id}/${complainant.avatar}${complainant.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, } : undefined, footer: { @@ -171,7 +171,7 @@ export const createAppealEmbed = ( ], thumbnail: appellant.avatar ? { - url: `https://cdn.discordapp.com/avatars/${appellant.id}/${appellant.avatar}.png?size=256`, + url: `https://cdn.discordapp.com/avatars/${appellant.id}/${appellant.avatar}${appellant.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, } : undefined, footer: { @@ -204,7 +204,7 @@ export const createNSFWApplicationEmbed = ( ], thumbnail: applicant.avatar ? { - url: `https://cdn.discordapp.com/avatars/${applicant.id}/${applicant.avatar}.png?size=256`, + url: `https://cdn.discordapp.com/avatars/${applicant.id}/${applicant.avatar}${applicant.avatar.startsWith("a_") ? ".gif" : ".png"}?size=256`, } : undefined, footer: { |