cleaned up isDeveloper();
This commit is contained in:
parent
2cb9adb3da
commit
df91191cf3
1 changed files with 5 additions and 11 deletions
|
@ -19,17 +19,11 @@ class Functions {
|
||||||
|
|
||||||
// Simple check to see if someone is a developer or not
|
// Simple check to see if someone is a developer or not
|
||||||
isDeveloper (userID) {
|
isDeveloper (userID) {
|
||||||
let isDev = false;
|
if (this.client.config.ownerIDs.includes(userID)) {
|
||||||
const developers = this.client.config.ownerIDs;
|
return true;
|
||||||
|
};
|
||||||
developers.forEach(devID => {
|
return false;
|
||||||
if (devID === userID) {
|
};
|
||||||
isDev = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return isDev;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cleans output and removes sensitive information, used by eval
|
// Cleans output and removes sensitive information, used by eval
|
||||||
async clean (text) {
|
async clean (text) {
|
||||||
|
|
Loading…
Reference in a new issue