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; |
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: [ |