Fix member fetching in a few places
This commit is contained in:
parent
78790627ad
commit
1e2b68119c
6 changed files with 19 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue