BUG FIX: Fixed a double posting bug where the bot will post a thread twice when the first post in a moderated thread gets approved.
BUG FIX: Fixed a bug where on some browsers, user role sync relations will not properly apply a default value for the sync direction on managed roles. You will have to click "save" in your admin CP settings once to apply this fix.
You can now sync "managed" roles from Discord to XenForo. A managed role, is a role automatically assigned on a Discord server by a bot; such as boosters or Twitch subscribers. Even on Discord, you can not manually assign these roles to users; so the sync direction is D->XF only. I do not have any managed roles on my servers, so I have no way to test this feature. It is working theoretically. If you have any issues, let me know.
The roles list in the admin CP options is now ordered properly.
BUG FIX: fixed a bug where the addon would spam the error log if Discord reported zero users online on a server and the online count bubble was enabled.
BUG FIX: fixed a bug related to caching and the Widgetbot embed.
When posting messages to Discord, their rate limits only allow 5 posts per second. So if XenRio tried to post new streams, and there were more than 5 streams, many streams would get lost. I've added a small delay per post, so that all streams get posted.
Over time, the cached data for connected accounts gets lost. This is EXPECTED BEHAVIOR, as outlined by XenForo staff here. However, because of a bug, instead of showing "unknown account" or "account associated", this addon's connected account would show an empty #. This bug is now fixed and will instead show "account associated", in order to prevent confusion.
Because of the confusion caused by the bug above, some intrepid admins felt the need to go into their databases and try to manually fix the missing information. In the process, they may have ended up deleting entries from the connected accounts table. Doing so, actually ends up breaking XenForo's connected account system and makes it impossible for the user to disassociate their account from Discord. In response to this, I have implemented a workaround that will force a cache reset and disassociate the account properly.
This update continues with the normalization and standardization which began in the last update. However, this update is a bit trickier. In this version, the connected account provider has been changed from discord to ewr_discord. This will prevent collisions with other addons...
This is a pretty significant update. Lots of database and variable names have been changed.
Prefixes have been added to database columns added by this addon.
Serialized data has been converted to JSON arrays as per new specifications.
As I already stated, lots of variables have been changed. This is to comply with official XenForo resource standards which were set in place after the initial creation of this addon. These standards were created to prevent resource collisions and other possible issues. Until this update, this addon has never complied with these standards.
Many of the files in this addon have been updated to reflect these changes. I may have missed something. I tested everything on my forum, as well as possible issues with disabling the addon, and everything seems to be working okay.