RadBlueDawg / Squire-Discord-Bot

MIT License
0 stars 0 forks source link

Update Squire to Discord.py v2.0.1 #25

Closed RadBlueDawg closed 1 year ago

RadBlueDawg commented 1 year ago

Squire responds to DMed commands, but won't respond to commands sent from servers. I think Discord updated their API or something.

RadBlueDawg commented 1 year ago

https://discord.com/developers/docs/intro

RadBlueDawg commented 1 year ago

Discord is pushing bot developers toward their new Interactions API, which doesn't require access to Message Content like the old command system did. On September 1st, they removed the automatic access to message content (they say this is only supposed to affect Verified apps, but clearly that's not the case). The temp patch is to just give Squire the message content permissions he needs, but I'll probably want to migrate him over to the new Interactions API.

https://support-dev.discord.com/hc/en-us/articles/4404772028055

RadBlueDawg commented 1 year ago

This is going to require a python update as well (discory.py 2.0 dropped Python 3.7 https://discordpy.readthedocs.io/en/stable/migrating.html)

RadBlueDawg commented 1 year ago

Okay, giving Squire the "access to message content" permission and restarting the bot did fix the issue. This feels more like a bandaid than anything else. I think Squire still needs to be updated to the new Discord API.

RadBlueDawg commented 1 year ago

A full rewrite of Squire using the Interactions API has been pushed to the v2.0 update branch