From 9714318d7ae89b13545801ea45c66f7287b52e9d Mon Sep 17 00:00:00 2001 From: Mirasaki Date: Sun, 18 Jun 2023 11:41:03 +0200 Subject: [PATCH] fix: discriminator deprecation --- src/commands/system/stats.js | 2 +- src/context-menus/user/info.js | 2 +- src/handlers/commands.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/system/stats.js b/src/commands/system/stats.js index 69c98d8..2d8baf6 100755 --- a/src/commands/system/stats.js +++ b/src/commands/system/stats.js @@ -60,7 +60,7 @@ module.exports = new ChatInputCommand({ { color: colorResolver(), author: { - name: `${ client.user.tag }`, + name: `${ client.user.username }`, iconURL: client.user.displayAvatarURL() }, fields: [ diff --git a/src/context-menus/user/info.js b/src/context-menus/user/info.js index bdb44f5..c099853 100644 --- a/src/context-menus/user/info.js +++ b/src/context-menus/user/info.js @@ -70,7 +70,7 @@ module.exports = new UserContextCommand({ const userInfoEmbed = new EmbedBuilder({ color: colorResolver(colors.main), author: { - name: targetMember.user.tag, + name: targetMember.user.username, icon_url: targetMember.user.avatarURL({ dynamic: true }) }, description: stripIndents` diff --git a/src/handlers/commands.js b/src/handlers/commands.js index 3425945..9a6196b 100644 --- a/src/handlers/commands.js +++ b/src/handlers/commands.js @@ -731,7 +731,7 @@ const generateCommandOverviewEmbed = (commands, interaction) => { title: `Command help for ${ guild.name }`, color: colorResolver(colors.main), fields, - footer: { text: `Requested by ${ member.user.tag }` } + footer: { text: `Requested by ${ member.user.username }` } }; };