Discord-Net-Labs/Discord.Net-Labs

SocketVoiceChannel options are created as generic mentionables in Interaction service

Closed this issue · 2 comments

the command

[SlashCommand("channel-type", "channel types")]
public async Task ChannelType(
	[Summary("channel", "the channel")]
	SocketVoiceChannel channel)
{
	await Context.Interaction.RespondAsync(channel.Name);
}

gets registered in discord with the mentionable type; appearing as
image
Running the command results in the interaction created log being sent, but nothing else. My logLevel is debug on the service and client.

@Cenngo Is there any automated ChannelType delimiter in the parameter builders? It would make sense to do interface checks like

if(type is IVoiceChannel)
{
    channelTypes.Add(ChannelType.Voice);
}

There is, but appearently it is not working. Let me check.