#πŸ”’ Cannot import name 'SlashCommandOptionType'

35 messages Β· Page 1 of 1 (latest)

edgy peak
#

ImportError: cannot import name 'SlashCommandOptionType' from 'discord.enums' (C:\Users\hu7t4\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\enums.py)

abstract bluffBOT
#

@edgy peak

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

edgy peak
#

everytime i try and run the bot it tells me that

#

and idk how to fix it

old moss
#

its integrated with dpy now

edgy peak
#

@old moss

#

this is my script

#

someone please help

old moss
#

the imports dont exist

#

they’ve been merged with the main dpy library

edgy peak
#

so i cant use the bot anymore?

old moss
#

whats commands.Option supposed to be?

muted sluice
#

nvm it's supposed to be from discord import Option not discord.commands

edgy peak
#

@muted sluice i did pip list

old moss
muted sluice
#

and only reinstall py-cord

muted sluice
muted sluice
#

implement the code in your way

#

dont juts copy paste and expect it to work magically

abstract bluffBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.