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:
parent
ae1080fc54
commit
8115e3959e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user