Discord Right Sync Plugin Update (Username Issues)
0
209
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

1 participant


Discord Right Sync Plugin Update (Username Issues)
Discord Right Sync Plugin Update (Username Issues)

Plugin: https://github.com/opt-natter/discord-mybb-sync


I've been using this plugin successfully across many sites for a long time now with no issues whatsoever. But then Discord came along and decided that their handle/tag for usernames would be changing. This update hasn't affected me up until now where I've got my first member who has one of the new usernames without #0000 numeric handle.

I'm not an expert, pretty new in general, with the ways of code but I valiantly tried to remove the regex requiring the numeric handle.
define("DRS_DISCORD_ID_FORMAT", '.{1,32}'); //discord ID Format check NAME#0000
Which.. worked to allow them to update the profile field. And the task ran successfully without the error log issue for that specific user. BUT it didn't update their role.

And now I'm finding myself adding a temporary role for them because if I manually add the member role to their account when the task runs it removes the role from their account because it can't find their Discord ID on site.

----

Does anyone know how to update this plugin to a working plugin again? That will work for users still on the old tags (name#0000) and users who have upgraded to the new username style.


https://community.mybb.com/thread-238443.html

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.

Forum Jump:


Users browsing this thread:
1 Guest(s)