1 |
import { BanOptions, CommandInteraction, GuildMember, Interaction, Message, User } from 'discord.js'; |
import { BanOptions, CommandInteraction, Message, User, Permissions } from 'discord.js'; |
2 |
import BaseCommand from '../../utils/structures/BaseCommand'; |
import BaseCommand from '../../utils/structures/BaseCommand'; |
3 |
import DiscordClient from '../../client/Client'; |
import DiscordClient from '../../client/Client'; |
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'; |
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 { fetchEmojiStr } from '../../utils/Emoji'; |
import { fetchEmojiStr } from '../../utils/Emoji'; |
14 |
|
|
15 |
export default class TempBanCommand extends BaseCommand { |
export default class TempBanCommand extends BaseCommand { |
16 |
supportsInteractions: boolean = true; |
supportsInteractions: boolean = true; |
17 |
|
permissions = [Permissions.FLAGS.BAN_MEMBERS]; |
18 |
|
|
19 |
constructor() { |
constructor() { |
20 |
super('tempban', 'moderation', []); |
super('tempban', 'moderation', []); |
168 |
meta: { |
meta: { |
169 |
days: banOptions.days, |
days: banOptions.days, |
170 |
time |
time |
171 |
} |
}, |
172 |
|
createdAt: new Date() |
173 |
}); |
}); |
174 |
|
|
175 |
const timeouts = getTimeouts(); |
const timeouts = getTimeouts(); |