/[sudobot]/trunk/src/commands/moderation/MassBanCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/MassBanCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 186 by rakin, Mon Jul 29 17:28:56 2024 UTC revision 194 by rakin, Mon Jul 29 17:28:58 2024 UTC
# Line 9  import History from '../../automod/Histo Line 9  import History from '../../automod/Histo
9  import { fetchEmoji } from '../../utils/Emoji';  import { fetchEmoji } from '../../utils/Emoji';
10  import Punishment from '../../models/Punishment';  import Punishment from '../../models/Punishment';
11  import PunishmentType from '../../types/PunishmentType';  import PunishmentType from '../../types/PunishmentType';
12  import { shouldNotModerate } from '../../utils/util';  import { hasPermission, shouldNotModerate } from '../../utils/util';
13    
14  export default class MassBanCommand extends BaseCommand {  export default class MassBanCommand extends BaseCommand {
15      supportsInteractions: boolean = true;      supportsInteractions: boolean = true;
# Line 103  export default class MassBanCommand exte Line 103  export default class MassBanCommand exte
103                      try {                      try {
104                          const member = await msg.guild?.members.fetch(user.id);                          const member = await msg.guild?.members.fetch(user.id);
105    
106                            if (member && !(await hasPermission(client, member, msg, null, "You don't have permission to ban " + user.tag + ".")))
107                                break;
108                                
109                          if (member && shouldNotModerate(client, member)) {                          if (member && shouldNotModerate(client, member)) {
110                              await msg.reply({                              await msg.reply({
111                                  embeds: [                                  embeds: [

Legend:
Removed from v.186  
changed lines
  Added in v.194

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26