Fix member fetching in a few places

This commit is contained in:
Dragory 2019-05-02 08:21:11 +03:00
parent 78790627ad
commit 1e2b68119c
6 changed files with 19 additions and 19 deletions

View file

@ -1079,7 +1079,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
// Verify we can act on each of the users specified
for (const userId of args.userIds) {
const member = this.guild.members.get(userId);
const member = this.guild.members.get(userId); // TODO: Get members on demand?
if (member && !this.canActOn(msg.member, member)) {
this.sendErrorMessage(msg.channel, "Cannot massban one or more users: insufficient permissions");
return;