DiscordPHP: Discord::updatePresence() not working
I don’t know is this a bug or I configured it wrong, but why Discord::updatePresence()
is not working with my Discord bot? I want to set the status but it didn’t worked. So what’s the issue?
Any help would be appreciated!
NOTE: Code is available below. Just extract the archive to open the code. The commands()
function is working. I’ve replaced the token to <TOKEN>
for privacy reasons.
Code —> Code.zip
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (11 by maintainers)
The problem seems to be in your code, you try to create two instances of your bot. That wil not work.
You must only create one bot instance and use this in your functions
//EDIT Also you must run the loop after all other stuff is loaded The PresenceUpdate works also only if the bot is “ready”
try this:
@Kygekraqmak