Am receiving an error when trying to run a command saying 'ctx is a required argument that is missing'. [Python, discord.py]
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Luau
--
Chapters
00:00 Am Receiving An Error When Trying To Run A Command Saying 'Ctx Is A Required Argument That Is Mi
01:06 Answer 1 Score 1
02:05 Accepted Answer Score 1
02:16 Thank you
--
Full question
https://stackoverflow.com/questions/6362...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #discord #bots #discordpy
#avk47
ANSWER 1
Score 1
The problem seemed to be my IDE. I ran my code in repl and it worked perfectly. Repl automatically installed all the modules. So the issue I think is likely to have been either my installations and imports running on pycharm conflicting with eachother or my pycharm version being outdated since I had not updated it in quite some time. PyCharm had been telling me that the version which I was on being outdated had some bugs with pip...
Anyway, in case anyone else has a similar issue I would recommend to try run your code in repl or some other IDE as the issue in this case was not my code but rather the setup. If you are encountering the same issue on a different IDE I would recommend repl as you do not have to install anything to your computer. Repl is entirely on the cloud and will only install and import what is necessary. And you should probably update the IDE which you already have. I hope I could help anyone else with a similar issue as I could find no solutions online, but I hope I could change this.
ACCEPTED ANSWER
Score 1
you should try re-installing discord.py, also make sure to put the following at the top:
from discord.ext import commands
import discord