Solved error
This commit is contained in:
1 parent
b81b4893d1
commit
9b9599bc9b
1 file changed
+2
-2
@@ -93,11 +93,11 @@ router.post('/bot/:d/:f', async function (req, res) {
|
|||||||
|
|
||||||
global.client.users.fetch(bot.owner).then(async function (user) {
|
global.client.users.fetch(bot.owner).then(async function (user) {
|
||||||
try {
|
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) {
|
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}`);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user