2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 05:37:59 +00:00

Fix masterById

This commit is contained in:
GingerPlusPlus 2019-01-28 12:25:17 +01:00
parent ae1080fc54
commit 8115e3959e

View File

@ -11,9 +11,11 @@ if (!masterById && !masterByUsername) {
config.master);
}
const isMaster = masterByUsername
? user => user && user.username && eq.username(user.username, config.master)
: user => user && user.id === Number(config.master);
const isMaster = masterById
? user =>
user && user.id === Number(config.master)
: user =>
user && user.username && eq.username(user.username, config.master);
module.exports = {
isMaster,