Skip to content
Sign upLog in
Is it possible to use slash commands on replit when coding a python Discord bot?
Profile icon

I am coding a Discord Bot in Python. I have my bot up and running but I would like to upgrade it so that I can use slash (/) commands. However, even the most simple code fails because whenever I try from discord_slash import SlashCommand I get the following error:

Traceback (most recent call last): File "", line 5, in <module> from discord_slash import SlashCommand ModuleNotFoundError: No module named 'discord_slash'

Since there is no terminal for me to use pip install I don't know how to solve this as all articles I've found online indicate that this should work. Likewise, I've found that when it doesn't the fix seems to be to re-install discord using pip. Does anyone know if this can be fixed? or is this a limitation of replit?

You are viewing a single comment. View All
Answered by xfinnbar [earned 5 cycles]
View Answer
Profile icon

You have to look for another one. died and then got resurrected so depending on what fork you are using you would probably have to use different packages. You can always google that error too: