Added v9.1.1 change back into NitradoAPI.js

This commit is contained in:
IrPgFKS0 committed 2023-09-02 22:54:16 -07:00
1 parent f021ef0287
commit d5507e4276
1 file changed
+13 -2
+13 -2
View File
@@ -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),
}