Note that some functionality mentioned as being included in the 2.8.4 release was not actually included so this release resolves that.
- Use password field for bot token and client secret values in the admin panel.
- Add a per-server "Kick user if they are no longer in allowed user groups" flag.
- Fix old sync long entries not being pruned as expected.
- When modifying the XenForo user-group to Discord role mappings, only trigger a re-sync for the affected server to avoid excessive API calls.
- Harden function to get Discord server mapping.
- Fix group sync position tracking not being displayed correctly.
- Include additional contextual information when sending a notification to Discord. The content of these messages can be customised by editing the "nfDiscord_notice.*" phrases.
- Fix per-server join announcements not being sent if the channel is on another server.
- Fix "Join pending" not displaying correctly for relevant servers when the user refreshes the "Connected accounts" page.
- Fix XF=>Discord sync logic could fail if the announcement channel was not set.
Version 2.7.7
- Add initial support for cross-posting content to Discord forum channels.
Version 2.7.6
- If a DM from the site to a user fails due to a lack of permissions, disable the feature and send a site alert.
- Cache server object to reduce database queries.
- Add option to log when Discord rate limits are being hit.
- Add option to log when Discord is hitting permission failures.
- Adjust retry times to avoid clock skew.
- Fix the wrong user being linked to a conversation DM.
- Other assorted API wrapper code improvements.
- Improve tracking of the nf_discord_account_connected flag.
- Ensure the Discord queue is dequeued on add-on uninstall.
- Fix error when trying to access the users API endpoint.
- Fix error when there is a queued job but the API is unavailable.
- Fix "Kick from Discord server on dissociation" not working as expected.
- Fix "Enable syncing of XenForo bans with Discord bans" being ignored when a ban was deleted.
Version 2.7.4
- Fix missing route for associated groups.
Version 2.7.3
- Add widget to display current number of online users in a specified Discord server.
- Minor improvements and cleanup for syncing.
- Improve PHP 8.1 compatibility when all Discord servers have been disabled.
- Track account being connected to Discord within user change log.
- Fix error during upgrade when no valid Discord servers are setup.
- Fix bad default for xf_forum table when add-on is disabled.
- Add option for additional servers to be disabled.
- Add option to kick users based on user group membership.
- Add option to kick users when they disassociate from Discord.
- When viewing server details, display current permissions for the bot user to aid troubleshooting.
- Various improvements to sync process and error handling.
- Adjust column types for various columns to account for older MySQL versions.
- Fix "Include replies made to threads" option not being set.
- Fix "Enable syncing of XenForo bans with Discord bans" was not respected.
- Fix new/re-opened report notifications being flipped.
- Fix an issue where syncing with users in a paid Discord role would silently fail.
- Add support for Tickets add-on.
- Add an option for users to disable alerts from being sent to their Discord DMs.
- Add an option for users to disable conversation notifications from being sent to their Discord DMs.
- Add an option for admins to apply registration defaults for Discord alert and conversation notifications.
- Force global namespace for functions which are known to be optimizable to bytecode in php, or known global functions to avoid a current namespace lookup for the function.
- When sending a notification to Discord, include the author's avatar if they have one.
- Handle cases where opt out value may be nulled out.
Version 2.5.1
- Add support for announcement channels so notifications can be cross-posted to them.
Version 2.5.0
- Strip extraneous characters from mirrored alert messages
- Require XenForo 2.2+.
- Require PHP 7.2+.
- Require Standard Library.
- Confirm support for XF 2.2.0.
- Harden various template modifications.
- Remove user from server roles when they disassociate or get banned.
Version 2.4.0
- Fix an issue preventing new thread reply notifications from being sent to Discord.
- Add the ability to automatically add users to your Discord server when they first associate their account.
- Switch API and other URLs from discordapp.com to discord.com. This is in line with Discord's recently announced endpoint migration that will come in to effect on November 7, 2020.
- Bump PHP version requirement to 7.2.0 or greater.
- Bump XenForo version requirement to 2.1.0 or greater.
- Other assorted code improvements and clean-up.