5 |
import InteractionOptions from '../../types/InteractionOptions'; |
import InteractionOptions from '../../types/InteractionOptions'; |
6 |
import MessageEmbed from '../../client/MessageEmbed'; |
import MessageEmbed from '../../client/MessageEmbed'; |
7 |
import getUser from '../../utils/getUser'; |
import getUser from '../../utils/getUser'; |
|
import History from '../../automod/History'; |
|
8 |
import Punishment from '../../models/Punishment'; |
import Punishment from '../../models/Punishment'; |
9 |
import PunishmentType from '../../types/PunishmentType'; |
import PunishmentType from '../../types/PunishmentType'; |
10 |
import { shouldNotModerate, hasPermission } from '../../utils/util'; |
import { shouldNotModerate, hasPermission } from '../../utils/util'; |
142 |
createdAt: new Date() |
createdAt: new Date() |
143 |
}); |
}); |
144 |
|
|
145 |
await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined); |
// await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined); |
146 |
} |
} |
147 |
catch (e) { |
catch (e) { |
148 |
await msg.reply({ |
await msg.reply({ |