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
Traceback (most recent call last):
File "C:\Users\Jérémie\Documents\GitHub\pycord\thing.py", line 23, in <module>
class BasicText(FlagConverter):
File "C:\Users\Jérémie\Documents\GitHub\pycord\thing.py", line 24, in BasicText
text: str = flag(aliases=["t", "-t"])
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jérémie\Documents\GitHub\pycord\discord\ext\commands\flags.py", line 136, in flag
return Flag(
^^^^^
TypeError: Flag.__init__() got an unexpected keyword argument 'name'
Intents
n/a
System Information
Python v3.11.9-final
py-cord v2.6.1-final
aiohttp v3.10.10
system info: Windows 10 10.0.26120
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
I will open a pr to fix this.
The text was updated successfully, but these errors were encountered:
Summary
With python 3.11+, using
Flag
results in aTypeError
about unexpected__init__
argumentsReproduction Steps
discord.commands.ext.flag
Minimal Reproducible Code
Expected Results
The bot to run.
Actual Results
Intents
n/a
System Information
Checklist
Additional Context
I will open a pr to fix this.
The text was updated successfully, but these errors were encountered: