From 89c89cf4dd01ab57247a74f4f35dc4d1a0ac86c6 Mon Sep 17 00:00:00 2001 From: tignear Date: Tue, 10 Aug 2021 01:33:09 +0900 Subject: [PATCH] fix ready message --- ping-pong/javascript/discord.js-v12/src/index.js | 2 +- ping-pong/typescript/discord.js-v12/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ping-pong/javascript/discord.js-v12/src/index.js b/ping-pong/javascript/discord.js-v12/src/index.js index c0c21fc..ec8b201 100644 --- a/ping-pong/javascript/discord.js-v12/src/index.js +++ b/ping-pong/javascript/discord.js-v12/src/index.js @@ -30,7 +30,7 @@ client.on("message", (message) => { }); client.once("ready", () => { const clientUser = client.user; - console.log(`Logged in as: ${clientUser.tag}#${clientUser.tag}`); + console.log(`Logged in as: ${clientUser.tag}`); console.log( `Invite Link: https://discord.com/api/oauth2/authorize?client_id=${clientUser.id}&permissions=${permissions.bitfield}&scope=bot` ); diff --git a/ping-pong/typescript/discord.js-v12/src/index.ts b/ping-pong/typescript/discord.js-v12/src/index.ts index eb23672..cf0d589 100644 --- a/ping-pong/typescript/discord.js-v12/src/index.ts +++ b/ping-pong/typescript/discord.js-v12/src/index.ts @@ -32,7 +32,7 @@ client.once("ready", () => { // Client#userがnullになるのはready以前のみに限られるため // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const clientUser = client.user!; - console.log(`Logged in as: ${clientUser.tag}#${clientUser.tag}`); + console.log(`Logged in as: ${clientUser.tag}`); console.log( `Invite Link: https://discord.com/api/oauth2/authorize?client_id=${clientUser.id}&permissions=${permissions.bitfield}&scope=bot` );