#Discord Bot Issues
1 messages · Page 1 of 1 (latest)
you need to import app_commands from discord
if you are following a youtube tutorial its probably outdated. use https://github.com/Rapptz/discord.py/tree/master/examples instead
for current version examples
i'm not following specific tutorials by the way
have you been able to get the code to run yet? bot to connect? or are you just stuck on this starting off?
this is the only error i'm getting that's preventing me from running the bot
it just started
you running the code in a virtual environment ? or is discord package installed globally?
not sure what that means
lemme see what your pip has, do pip freeze > requirements.txt it will put all installed packages to that file
ye, looks right. see https://github.com/Rapptz/discord.py/pull/9599 Rapptz mentions having a fork installed alongside.
try removing the discord package, update pip, then reinstall package
actually, that's exactly what i did
but i'll try again
also, what's a fork?
...
apparently discord wasn't installed?
huh
but it's still giving the same error after both
a github fork is a "spin off" of a repo. sometimes they are named similarly
so it was working before then stopped?
yeah, idk what changed
what python version are you running?
3.11.5
can you see if your python --version and pip --version match?
...pip says its 23.2.1 but it won't update because it's the latest version
at least that's what it says
im pretty sure its an environment issue. Try making a virtual environment and installing the packages in the venv
still not sure what that means
...i give up