better typing

This commit is contained in:
Baipyrus 2024-04-29 10:30:39 +02:00
parent daf3767490
commit 09f9593a5c

View File

@ -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';