I am making a discord bot in python. At one point in coding the bot, it stopped updating, it kept using old code. Then I realized the bot never stopped. I kicked it and reinvited it, but the problem did not go away.
Does anybody know why?
Kicking will not fix it, it's a problem some code compliers may have, or just the concurrent running version is still running.
Editors like sublime can do this problem if the existing program has not been stopped.
This can be easily fixed by going back into Discord's developer portal and "regenerate token". After this, update with the same new token in your code with running the bot token. This will force terminate any builds running.
Discord.py bot stays active even after code is stopped