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