data_to_string fix typo error on discord id

This commit is contained in:
kdh8219 2023-06-11 16:42:24 +09:00
parent b1864dd262
commit 7dd06e2214
Signed by: kdh8219
GPG key ID: 9B901BE907D1862E

View file

@ -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) {