Ask coding questions

← Back to all posts
discord slash commands
thinker010

When i execute my bot the discord slash commands library is not getting installed but when i do it from shell after sometime I see its deleted(idk what is happening).
pls help

Voters
natethemaker
thinker010
Comments
hotnewtop
DillonB07

Can you give us the link to your repl?
Edit your main post and add it in.

thinker010

@DillonB07 do you mean repl? But this is my main post

thinker010

@DillonB07 Sorry but there are many links which i cant share and cant put in env variables also.

DillonB07

I'm sorry, but I can't help you without viewing your code.
I don't need to see your env secrets though.

thinker010

@DillonB07 hey code seems to not give any errors now ...tnx for responding.

DillonB07

@thinker010
Glad you've fixed it(even without my help)

thinker010

@DillonB07 lol but idk wats happening it's just not giving any errors right now or never(pls).

DillonB07

@thinker010
I've already told you I can't do anything without seeing your code.
But, what discord slash commands library are you using?

thinker010

@DillonB07 from discord_slash import SlashCommand, SlashCommandOptionType, SlashContext

DillonB07

@thinker010 Have you run pip install discord_slash in the console?

thinker010

@DillonB07 multiple times in the shell

DillonB07

@thinker010
Well then, I am sorry, but I can't help you without all of the code(minus all of the .env secrets like the bot token)

thinker010

@DillonB07 there r links tht I can't put in env so I can't show

thinker010

@DillonB07 anyways it's not giving any error right now tnx