You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I double checked the docs and couldn't find any useful information.
Verify Issue Source
I verified the issue was caused by Discord.Net.
Check your intents
I double checked that I have the required intents.
Description
When the sample method is invoked with a channel type Forum (IForumChannel), it throws an error "Unknown channel type".
It doesn't throw any error when used in a post inside that same Forum.
The channel is not null, I debugged it to make sure.
This is my first bot using Discord-net so I might be doing something obviously wrong ? Sorry if that's the case.
Version
3.9.0
(Also checked with 3.10.0, same issue)
Working Version
No response
Logs
System.ArgumentException
HResult=0x80070057
Message=Unknown channel type. Arg_ParamName_Name
Source=Discord.Net.Core
StackTrace:
at Discord.ChannelPermissions.All(IChannel channel)
at Discord.Permissions.ResolveChannel(IGuild guild, IGuildUser user, IGuildChannel channel, UInt64 guildPermissions)
at Discord.WebSocket.SocketGuildUser.GetPermissions(IGuildChannel channel)
at Fidobot.Controllers.CommandsController.d__1.MoveNext() in D:\Data\Projects\Fidobot\Controllers\CommandsController.cs:line 61
at Fidobot.Controllers.CommandsController.d__2.MoveNext() in D:\Data\Projects\Fidobot\Controllers\CommandsController.cs:line 96
Sample
privatestaticasyncTask<bool>DoesUserHavePerms(IGuildChannelchannel,SocketSlashCommandcmd){IGuildUseruser=(IGuildUser)cmd.User;if(user.GetPermissions(channel).ManageThreads){returntrue;}await cmd.RespondAsync("**ERROR:** You don't have the necessary permissions on this channel to execute that command.");returnfalse;}
Packages
None
The text was updated successfully, but these errors were encountered:
Check The Docs
Verify Issue Source
Check your intents
Description
When the sample method is invoked with a channel type Forum (IForumChannel), it throws an error "Unknown channel type".
It doesn't throw any error when used in a post inside that same Forum.
The channel is not null, I debugged it to make sure.
This is my first bot using Discord-net so I might be doing something obviously wrong ? Sorry if that's the case.
Version
3.9.0
(Also checked with 3.10.0, same issue)
Working Version
No response
Logs
System.ArgumentException
HResult=0x80070057
Message=Unknown channel type. Arg_ParamName_Name
Source=Discord.Net.Core
StackTrace:
at Discord.ChannelPermissions.All(IChannel channel)
at Discord.Permissions.ResolveChannel(IGuild guild, IGuildUser user, IGuildChannel channel, UInt64 guildPermissions)
at Discord.WebSocket.SocketGuildUser.GetPermissions(IGuildChannel channel)
at Fidobot.Controllers.CommandsController.d__1.MoveNext() in D:\Data\Projects\Fidobot\Controllers\CommandsController.cs:line 61
at Fidobot.Controllers.CommandsController.d__2.MoveNext() in D:\Data\Projects\Fidobot\Controllers\CommandsController.cs:line 96
Sample
Packages
None
The text was updated successfully, but these errors were encountered: