From 2dc016d63237761c1d13e5ff623ea26188735089 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Wed, 3 May 2023 00:24:29 +0900 Subject: [PATCH] fix #3 + main login await --- src/command/commands/get_members.ts | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/commands/get_members.ts b/src/command/commands/get_members.ts index 09c34a3..1485f55 100755 --- a/src/command/commands/get_members.ts +++ b/src/command/commands/get_members.ts @@ -41,7 +41,7 @@ export default { (await interaction.guild.members.fetch(member[0])).nickname || (await interaction.client.users.fetch(member[0])).username; } catch (e) { - nickname = ``; + nickname = ` `; } let tag: string; try { diff --git a/src/main.ts b/src/main.ts index dbeee2e..451dada 100755 --- a/src/main.ts +++ b/src/main.ts @@ -42,4 +42,4 @@ client.on(Events.InteractionCreate, async (interaction) => { } }); -client.login(process.env.DISCORD_TOKEN); +await client.login(process.env.DISCORD_TOKEN);