SocketVoiceChannel options are created as generic mentionables in Interaction service
Closed this issue · 2 comments
CottageDwellingCat commented
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
Running the command results in the interaction created log being sent, but nothing else. My logLevel is debug on the service and client.
quinchs commented
@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);
}
Cenngo commented
There is, but appearently it is not working. Let me check.