SlashCommandOptionType.user
doesn't work
#1120
Labels
unconfirmed bug
A bug report that needs triaging
SlashCommandOptionType.user
doesn't work
#1120
Summary
SlashCommandOptionType.user
doesn't workReproduction Steps
I tried to make a slash command containing the
SlashCommandOptionType.user
type, and there it started making trouble. I've triedOption(pycord.Member)
too, with exact the same result.Minimal Reproducible Code
Expected Results
The bot starts
Actual Results
Traceback (most recent call last):
File "/var/global/justmorebot/main.py", line 383, in
async def kick_user_command(interaction: pycord.Interaction, member: pycord.SlashCommandOptionType.user):
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/bot.py", line 822, in decorator
result = command(**kwargs)(func)
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/commands/core.py", line 1457, in decorator
return cls(func, **attrs)
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/commands/core.py", line 590, in init
self.options: List[Option] = self._parse_options(params)
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/commands/core.py", line 638, in _parse_options
option = Option(option, "No description provided")
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/commands/options.py", line 124, in init
_type = SlashCommandOptionType.from_datatype(input_type)
File "/home/heroclay/.local/lib/python3.8/site-packages/discord/enums.py", line 654, in from_datatype
if datatype.name in ["Member", "User"]:
AttributeError: 'str' object has no attribute 'name'
Intents
guild_reactions, messages, bans, guilds
System Information
#1
SMP Thu Apr 22 16:18:59 MSK 2021Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: