Closed ReenigneArcher closed 4 months ago
This is, strictly speaking, intentional; Option
is defined as such
def __init__(self, input_type: InputType = str, /, description: str | None = None, **kwargs)
The slash /
in the args forces input_type
to be positional only - you cannot use it as a kwarg, as it can only be the first argument of Option
, if you choose to specify it.
Summary
string returned for slash commands when using
Option/input_type
Reproduction Steps
Create slash command with
Option
andinput_type
fields.Minimal Reproducible Code
Expected Results
Get a
discord.Member
object when usinginput_type
in theOption
constructor.Actual Results
Got a string value.
Intents
discord.Intents.all()
System Information
python -m discord -v C:\Users...\support-bot\venv\Lib\site-packages\discord__main__.py:33: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources
Checklist
Additional Context
No response