mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 06:05:22 +00:00
@@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'development') {
|
||||
|
||||
module.exports = bot;
|
||||
|
||||
// Otherwise the bot can't ban on reaching max warns due to botInfo not being available to get its admin ID
|
||||
// Elsewhere the bot can't ban on reaching max warns due to botInfo not being available to get its admin ID
|
||||
Object.defineProperty(bot.context, "botInfo", {
|
||||
get () { return bot.botInfo; }
|
||||
})
|
||||
|
Reference in New Issue
Block a user