4 |
import CommandOptions from '../../types/CommandOptions'; |
import CommandOptions from '../../types/CommandOptions'; |
5 |
import InteractionOptions from '../../types/InteractionOptions'; |
import InteractionOptions from '../../types/InteractionOptions'; |
6 |
import MessageEmbed from '../../client/MessageEmbed'; |
import MessageEmbed from '../../client/MessageEmbed'; |
|
import getUser from '../../utils/getUser'; |
|
|
import History from '../../automod/History'; |
|
7 |
import { fetchEmoji } from '../../utils/Emoji'; |
import { fetchEmoji } from '../../utils/Emoji'; |
8 |
import Punishment from '../../models/Punishment'; |
import Punishment from '../../models/Punishment'; |
9 |
import PunishmentType from '../../types/PunishmentType'; |
import PunishmentType from '../../types/PunishmentType'; |
128 |
guild_id: msg.guild!.id, |
guild_id: msg.guild!.id, |
129 |
mod_id: msg.member!.user.id, |
mod_id: msg.member!.user.id, |
130 |
mod_tag: (msg.member!.user as User).tag, |
mod_tag: (msg.member!.user as User).tag, |
131 |
reason: banOptions.reason ?? undefined |
reason: banOptions.reason ?? undefined, |
132 |
|
createdAt: new Date() |
133 |
}); |
}); |
134 |
|
|
135 |
await msg.guild!.bans.create(user, banOptions); |
await msg.guild!.bans.create(user, banOptions); |