diff --git a/util/NitradoAPI.js b/util/NitradoAPI.js index 5462303..2689713 100644 --- a/util/NitradoAPI.js +++ b/util/NitradoAPI.js @@ -78,5 +78,16 @@ module.exports = { } await new Promise(resolve => setTimeout(resolve, retryDelay)); // Delay before retrying } - } -} \ No newline at end of file + }, + + /* + 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), + + } \ No newline at end of file