Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ModuleNotFoundError: No module named 'discord_slash'

I’m trying to install a module called "discord_slash" and when I use it in a python file it displays the error "ModuleNotFoundError: No module named ‘discord_slash’".
I’ve tried uninstalling it and installing it again but it’s not working.
This is an example of what happens exactly

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You’re attempting to use the legacy v3 version import of the library, available here. As of 4.0, you should be using import interactions.

Based on a comment, I understand you’re watching a video from 2021, if you’d like to use a similar version you can use discord-py-slash-command 3.0.3 which is the latest release of that branch.

You can install that like this:
pip install discord-py-interactions=3.0.3

I’d highly recommend you go ahead and find a newer video guide or read their Quickstart documentation here so you can have the up to date library and features.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading