mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 11:15:05 +00:00
Rename devId to devIds in config
This commit is contained in:
1 parent
97881f7331
commit
bc238d919d
5 files changed
+12
-19
No files matched your search
@@ -1,10 +1,10 @@
|
||||
export default function isDev(devList : any, authorID : any){
|
||||
import { Snowflake } from "discord.js";
|
||||
|
||||
export default function isDev(devIDs : any[], authorID : Snowflake){
|
||||
let response = false;
|
||||
Object.keys(devList).forEach(function(oneDev) {
|
||||
let devID = devList[oneDev];
|
||||
for (const devID of devIDs){
|
||||
if(authorID == devID){
|
||||
response = true;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user