change/explicit-ban-function-names
This commit is contained in:
4 files changed
+19
-8
No files matched your search
+12
-1
@@ -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),
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user