generated from Baipyrus/DiscordJS-Template
better typing
This commit is contained in:
parent
daf3767490
commit
09f9593a5c
@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
ChannelType,
|
ChannelType,
|
||||||
|
GuildChannel,
|
||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
ChatInputCommandInteraction
|
ChatInputCommandInteraction
|
||||||
@ -90,6 +91,7 @@ export async function execute(interaction) {
|
|||||||
}
|
}
|
||||||
case 'register': {
|
case 'register': {
|
||||||
// Get channel id from user input
|
// Get channel id from user input
|
||||||
|
/** @type {GuildChannel} */
|
||||||
const { id } = options.getChannel('channel');
|
const { id } = options.getChannel('channel');
|
||||||
|
|
||||||
step = 'save';
|
step = 'save';
|
||||||
|
Loading…
Reference in New Issue
Block a user