From a09c1686dff295c68f961065ab8838d876663e81 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 27 Apr 2021 20:24:07 -0500 Subject: [PATCH] Use client.user.id instead of set id --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index e0e33e8..13cd068 100644 --- a/bot.js +++ b/bot.js @@ -63,7 +63,7 @@ client.on("message", async message => { prefix = defaultPrefix; } - if (message.content === "<@!827758580965965824>") { + if (message.content === `<@!${client.user.id}>`) { message.reply(`\nPrefix: \`${prefix}\`\nHelp: \`${prefix}help\`\nChange Prefix: \`${prefix}prefix [new prefix]\``); }