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 getMember from '../../utils/getMember'; |
|
|
import History from '../../automod/History'; |
|
|
import { fetchEmoji } from '../../utils/Emoji'; |
|
7 |
|
|
8 |
export default class UnlockCommand extends BaseCommand { |
export default class UnlockCommand extends BaseCommand { |
9 |
supportsInteractions: boolean = true; |
supportsInteractions: boolean = true; |
26 |
channel = await <TextChannel> options.options.getChannel('channel'); |
channel = await <TextChannel> options.options.getChannel('channel'); |
27 |
} |
} |
28 |
|
|
29 |
if (options.options.getChannel('role')) { |
if (options.options.getRole('role')) { |
30 |
role = await <Role> options.options.getRole('role'); |
role = await <Role> options.options.getRole('role'); |
31 |
} |
} |
32 |
} |
} |