WindowsAppCommunity / uwpcommunity-backend

The backend for the UWP Community website and discord server
10 stars 3 forks source link

Check if permissions need to be overridden before doing so #123

Closed BreeceW closed 2 years ago

BreeceW commented 2 years ago

Right now the bot sends 105 CHANNEL_UPDATE messages every 15 seconds. This is not good. This PR makes the bot check before overriding, so nothing is sent to the server unless it needs to be. Since I don’t control channel permissions on the test server, I am unable to test this PR other than that it now does not send CHANNEL_UPDATE messages all the time. So it will need to be tested if a channel with no permissions set gets updated correctly, and if a channel with the wrong permissions gets updated correctly.