From b248d5557f2734ed92679acb50f5f648be420466 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Fri, 19 Aug 2022 11:17:28 +0200 Subject: [PATCH] fixed admin 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 ef8bc33..bde515e 100644 --- a/website/routers/admin/index.js +++ b/website/routers/admin/index.js @@ -113,11 +113,11 @@ router.post('/bot/:d/:f', async function (req, res) { bot.save(); global.client.users.fetch(bot.owner).then(async function (user) { try { - user.send(`<@${owner}> bot ${bot.name} has been accepted by the admin.`); + user.send(`<@${user.id}> bot ${bot.name} has been accepted by the admin.`); } catch (e) { } - global.client.channels.cache.get(global.config.bot.channels.new).send(`<@${owner}> bot ${bot.name} has been accepted by the admin. View it at: https://botscord.xyz/bot/${bot.id}`); + global.client.channels.cache.get(global.config.bot.channels.new).send(`<@${user.id}> bot ${bot.name} has been accepted by the admin. View it at: https://botscord.xyz/bot/${bot.id}`); })