#Option

1 messages · Page 1 of 1 (latest)

heady kettle
#

    Traceback (most recent call last):
  File "c:\Users\Админ\Desktop\eco\bot.py", line 11, in <module>
    from modules.Profile import Profile
  File "c:\Users\Админ\Desktop\eco\modules\Profile.py", line 7, in <module>
    from disnake.ext.commands import Option
ImportError: cannot import name 'Option' from 'disnake.ext.commands' (C:\Users\Админ\AppData\Local\Programs\Python\Python312\Lib\site-packages\disnake\ext\commands\__init__.py)
eternal fog
#

yeah that's simply not how option is used

heady kettle
eternal fog
#

you're looking for

    async def profile(
        self,
        ctx: disnake.ApplicationContext, 
        member: Optional[disnake.Member] = commands.Param(None, name="пользователь", description="Выберите пользователя")
    ):
#

see

#

-d commands.Param