From 49cb83f8d3ddcd8a86bd9425cc4fa86b0d43954f Mon Sep 17 00:00:00 2001 From: Aura Date: Mon, 1 Jan 2024 17:47:47 +0100 Subject: [PATCH] refactor: update deprecated `emoji.url` usage (#2534) --- src/listeners/guilds/emojis/emojiCreateNotify.ts | 2 +- src/listeners/guilds/emojis/emojiDeleteNotify.ts | 2 +- src/listeners/guilds/emojis/emojiUpdateNotify.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/listeners/guilds/emojis/emojiCreateNotify.ts b/src/listeners/guilds/emojis/emojiCreateNotify.ts index 15610ac1697..ddd9687c5c7 100644 --- a/src/listeners/guilds/emojis/emojiCreateNotify.ts +++ b/src/listeners/guilds/emojis/emojiCreateNotify.ts @@ -26,7 +26,7 @@ export class UserListener extends Listener { const changes: string[] = [...this.getEmojiInformation(t, next)]; const embed = new EmbedBuilder() .setColor(Colors.Green) - .setThumbnail(next.url) + .setThumbnail(next.imageURL({ size: 256 })) .setAuthor({ name: `${next.name} (${next.id})`, iconURL: channel.guild.iconURL({ size: 64, extension: 'png' }) ?? undefined }) .setDescription(changes.join('\n')) .setFooter({ text: t(LanguageKeys.Events.Guilds.Logs.EmojiCreate) }) diff --git a/src/listeners/guilds/emojis/emojiDeleteNotify.ts b/src/listeners/guilds/emojis/emojiDeleteNotify.ts index acf25b75d5a..1b4d00bd01c 100644 --- a/src/listeners/guilds/emojis/emojiDeleteNotify.ts +++ b/src/listeners/guilds/emojis/emojiDeleteNotify.ts @@ -24,7 +24,7 @@ export class UserListener extends Listener { const embed = new EmbedBuilder() .setColor(Colors.Red) - .setThumbnail(next.url) + .setThumbnail(next.imageURL({ size: 256 })) .setAuthor({ name: `${next.name} (${next.id})`, iconURL: channel.guild.iconURL({ size: 64, extension: 'png' }) ?? undefined }) .setFooter({ text: t(LanguageKeys.Events.Guilds.Logs.EmojiDelete) }) .setTimestamp(); diff --git a/src/listeners/guilds/emojis/emojiUpdateNotify.ts b/src/listeners/guilds/emojis/emojiUpdateNotify.ts index 232b783c21e..35edf3d2310 100644 --- a/src/listeners/guilds/emojis/emojiUpdateNotify.ts +++ b/src/listeners/guilds/emojis/emojiUpdateNotify.ts @@ -29,7 +29,7 @@ export class UserListener extends Listener { const embed = new EmbedBuilder() .setColor(Colors.Yellow) - .setThumbnail(next.url) + .setThumbnail(next.imageURL({ size: 256 })) .setAuthor({ name: `${next.name} (${next.id})`, iconURL: channel.guild.iconURL({ size: 64, extension: 'png' }) ?? undefined }) .setDescription(changes.join('\n')) .setFooter({ text: t(LanguageKeys.Events.Guilds.Logs.EmojiUpdate) })