From 5f3521f45254732a419d31fbedafb4c2817d0ae9 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Sat, 29 Apr 2023 16:06:54 +0900 Subject: [PATCH] change get_members tag to nickname --- src/command/commands/get_members.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command/commands/get_members.ts b/src/command/commands/get_members.ts index ab3790b..7161117 100755 --- a/src/command/commands/get_members.ts +++ b/src/command/commands/get_members.ts @@ -35,13 +35,13 @@ export default { let text = ""; for (const member of member_data) { - let discord_tag: string; + let nickname: string; try { - discord_tag = (await interaction.client.users.fetch(member[0])).tag; + nickname = interaction.guild.members.cache.get(discord_id).nickname; } catch (e) { - discord_tag = `Deleted User#0000`; + nickname = `Deleted User`; } - text += discord_tag; + text += nickname; text += `(${discord_id})`; text += " : ";