fixed admin error
This commit is contained in:
1 parent
5de09054ef
commit
b248d5557f
1 file changed
+2
-2
@@ -113,11 +113,11 @@ router.post('/bot/:d/:f', async function (req, res) {
|
|||||||
bot.save();
|
bot.save();
|
||||||
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 accepted by the admin.`);
|
user.send(`<@${user.id}> bot ${bot.name} has been accepted by the admin.`);
|
||||||
}
|
}
|
||||||
catch (e) {
|
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}`);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user