change/explicit-ban-function-names

This commit is contained in:
SowinskiBraeden committed 2023-09-02 18:28:45 -07:00
1 parent b5f5218016
commit 1da9969410
4 files changed
+19 -8

No files matched your search

+12 -1
View File
@@ -62,5 +62,16 @@ module.exports = {
}
sendList();
}));
}
},
/*
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),
}