From 9b9599bc9bc385cf996603d3999d11f639b35243 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:16:30 +0200 Subject: [PATCH] Solved error --- website/routers/admin/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/routers/admin/index.js b/website/routers/admin/index.js index bde515e..2e41f9a 100644 --- a/website/routers/admin/index.js +++ b/website/routers/admin/index.js @@ -93,11 +93,11 @@ router.post('/bot/:d/:f', async function (req, res) { global.client.users.fetch(bot.owner).then(async function (user) { try { - user.send(`<@${owner}> bot ${bot.name} has been rejected by the admin. With the reason: ${req.body.reason}`); + user.send(`<@${user.id}> bot ${bot.name} has been rejected by the admin. With the reason: ${req.body.reason}`); } catch (e) { } - global.client.channels.cache.get(global.config.bot.channels.new).send(`<@${owner}> bot ${bot.name} has been rejected by the admin. With the reason: ${req.body.reason}`); + global.client.channels.cache.get(global.config.bot.channels.new).send(`<@${user.id}> bot ${bot.name} has been rejected by the admin. With the reason: ${req.body.reason}`); })