Added v9.1.1 change back into NitradoAPI.js
This commit is contained in:
1 file changed
+13
-2
+13
-2
@@ -78,5 +78,16 @@ module.exports = {
|
||||
}
|
||||
await new Promise(resolve => setTimeout(resolve, retryDelay)); // Delay before retrying
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/*
|
||||
Allows more explicit function names outside this file;
|
||||
i.e BanPlayer() & UnbanPlayer() that both call to the
|
||||
parent function HandlePlayerBan() rather than write
|
||||
two whole different functions for each.
|
||||
*/
|
||||
|
||||
BanPlayer: async (client, gamertag) => module.exports.HandlePlayerBan(client, gamertag, true),
|
||||
UnbanPlayer: async (client, gamertag) => module.exports.HandlePlayerBan(client, gamertag, false),
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user