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