From 7dd06e2214700c3ca9af24bd13d41e1552b0815e Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Sun, 11 Jun 2023 16:42:24 +0900 Subject: [PATCH] data_to_string fix typo error on discord id --- src/functions/data_to_string.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/functions/data_to_string.ts b/src/functions/data_to_string.ts index 9d7c34f..52cfd4e 100644 --- a/src/functions/data_to_string.ts +++ b/src/functions/data_to_string.ts @@ -12,8 +12,6 @@ export async function data_to_string( let tag: string; try { const guild_user = await interaction.guild.members.fetch(discord_id); - if (guild_user) { - } const client_user = await interaction.client.users.fetch(discord_id); tag = client_user.tag.split("#")[1] != "0" @@ -27,7 +25,7 @@ export async function data_to_string( text += "- "; text += `\`${nickname}\``; text += `【\`${tag}\`】`; - text += `[${discord_id}}]`; + text += `[${discord_id}]`; text += "\n"; for (const minecraft_uuid of minecraft_uuids) {