mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 13:47:54 +00:00
Fix masterById
This commit is contained in:
@@ -11,9 +11,11 @@ if (!masterById && !masterByUsername) {
|
|||||||
config.master);
|
config.master);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isMaster = masterByUsername
|
const isMaster = masterById
|
||||||
? user => user && user.username && eq.username(user.username, config.master)
|
? user =>
|
||||||
: user => user && user.id === Number(config.master);
|
user && user.id === Number(config.master)
|
||||||
|
: user =>
|
||||||
|
user && user.username && eq.username(user.username, config.master);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isMaster,
|
isMaster,
|
||||||
|
Reference in New Issue
Block a user