#unresolved reference discord_slash
1 messages · Page 1 of 1 (latest)
which... docs are you following?
discord slash is v3 stuff
thats your problem
its been eons since ipy was just an extension to add slash commands to dpy
you should either be using the latest dpy (2.0+), which has its own slash commands, or check out the docs for our thing in the pinned post in this channel
We've detected that you're mixing discord.py and interactions.py code together - do not do this, and only use one for your bots.
Why?
- Both interactions.py and discord.py are full Discord Python libraries that cover the entirety of the Discord API. It's redundant to use both, as they can do the same things.
- While the two can do the same things, how they do is drastically different from each other. For example, despite being named the same,
interactions.Clientis very different fromdiscord.Client, not just in implementation but in their core design. There's no way to make the two work together because of this because of this - code from one won't be understood by the other. - Relating to the above two points, using both at the same time will lead to errors.
While the decision of which library is up to you, it's important to only use one. As for us, as of our latest versions, we cover everything discord.py offers while boasting a better, simplier, more developer friendly experience when making bots. Take a look at the documentation and the discord.py migration guide if you're interested!
(ignore the first paragraph)
i mean, if you install that and use the old pip package which is... somewhere
we dont help out with old versions though
Then read the docs mentioned here to migrate everything
isnt it pip install discord-py-interactions?