pycord: discord.ForumChannel Bug
Summary
discord.ForumChannel not showing Forum Channels
Reproduction Steps
https://docs.pycord.dev/en/master/api/models.html#discord.ForumChannel
Minimal Reproducible Code
@slash_command()
async def forum(self, ctx, forum: discord.Option(discord.ForumChannel, "..")):
print(forum)
print(forum.category)
Expected Results
Showing Forum Channels
Actual Results
Not Showing Forum Channels
Intents
All
System Information
- Python v3.11.1-final
- py-cord v2.3.2-final
- aiohttp v3.8.3
- system info: Windows 10 10.0.19045
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
Credits to : zReaxrYT#1799 for finding the Bug.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (8 by maintainers)
Also bear in mind ForumChannels came way after this was implemented, adding support for it shouldn’t be too hard so I’ll look into that within the next hour or so.
try
discord.SlashCommandOptionType.channel, channel_types=[discord.ChannelType.forum]You’re meant to use the
channel_typesargument indiscord.Option.Though I fully understand the confusion:
channel_typesoverrides the option type channel.It’s also not working with
async def forum(self, ctx, forum: discord.Option(discord.ForumChannel)):norasync def forum(self, ctx, forum: discord.ForumChannel)is working either. I mean, go ahead and test it yourself.