data_to_string fix typo error on discord id
This commit is contained in:
parent
b1864dd262
commit
7dd06e2214
|
@ -12,8 +12,6 @@ export async function data_to_string(
|
||||||
let tag: string;
|
let tag: string;
|
||||||
try {
|
try {
|
||||||
const guild_user = await interaction.guild.members.fetch(discord_id);
|
const guild_user = await interaction.guild.members.fetch(discord_id);
|
||||||
if (guild_user) {
|
|
||||||
}
|
|
||||||
const client_user = await interaction.client.users.fetch(discord_id);
|
const client_user = await interaction.client.users.fetch(discord_id);
|
||||||
tag =
|
tag =
|
||||||
client_user.tag.split("#")[1] != "0"
|
client_user.tag.split("#")[1] != "0"
|
||||||
|
@ -27,7 +25,7 @@ export async function data_to_string(
|
||||||
text += "- ";
|
text += "- ";
|
||||||
text += `\`${nickname}\``;
|
text += `\`${nickname}\``;
|
||||||
text += `【\`${tag}\`】`;
|
text += `【\`${tag}\`】`;
|
||||||
text += `[${discord_id}}]`;
|
text += `[${discord_id}]`;
|
||||||
|
|
||||||
text += "\n";
|
text += "\n";
|
||||||
for (const minecraft_uuid of minecraft_uuids) {
|
for (const minecraft_uuid of minecraft_uuids) {
|
||||||
|
|
Loading…
Reference in a new issue