Skip to content

Commit

Permalink
refactor: update deprecated emoji.url usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Jan 1, 2024
1 parent 6ffb502 commit 4d09402
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/listeners/guilds/emojis/emojiCreateNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class UserListener extends Listener<typeof Events.GuildEmojiCreate> {
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) })
Expand Down
2 changes: 1 addition & 1 deletion src/listeners/guilds/emojis/emojiDeleteNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class UserListener extends Listener<typeof Events.GuildEmojiDelete> {

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();
Expand Down
2 changes: 1 addition & 1 deletion src/listeners/guilds/emojis/emojiUpdateNotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class UserListener extends Listener<typeof Events.GuildEmojiUpdate> {

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) })
Expand Down

0 comments on commit 4d09402

Please sign in to comment.