Fix discord client check for staff permission
This commit is contained in:
@@ -49,7 +49,7 @@ function doesClientHaveStaffPermission(client, requiredFlags) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let staffFlags = 0;
|
let staffFlags = 0;
|
||||||
if(isClientFromDiscord(client)) {
|
if(!isClientFromDiscord(client)) {
|
||||||
staffFlags = serverData.clients[client.index].accountData.staffFlags;
|
staffFlags = serverData.clients[client.index].accountData.staffFlags;
|
||||||
} else {
|
} else {
|
||||||
staffFlags = getDiscordUserData(client).accountData.staffFlags;
|
staffFlags = getDiscordUserData(client).accountData.staffFlags;
|
||||||
|
|||||||
Reference in New Issue
Block a user