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