Jump to content

Discord Role Syncing Issue for Players

Not a Bug 2.0.8

I already reached out via Discord and I know Amino is aware, but I'm documenting this issue here as I know this is the proper support method for purchased items here on Codefling, especially if I need to request a refund if it can't be resolved.

I may have found a bug / flaw or maybe something is just not configured right. I found in the following scenario, Discord Link does NOT sync Discord Roles to Oxide Groups:

  1. User links their accounts in-game using the /link command
  2. User is then successfully added to the specified Discord Roles outlined in the "LINKED_ROLE(S)" line item in the Bot's config.json file on Line #61
  3. User leaves the server
  4. User then gets added to ANOTHER Role in Discord while they are NOT in-game in the actual Rust server.
    1. This Discord Role is specified in the Roles to Sync (Steam : Discord) line items in the Rust Server's DiscordLinkBot.json file on Lines #2 - #6
  5. Upon connecting to the Rust server, it never sync's that "new" Discord Role to the specified Oxide Group they were added to when they were NOT in the actual Rust server.

Is this by design? (ie. Do they HAVE to be in the Rust server before being assigned ANY Discord Role? There's no sync'ing upon connect / reconnect?)

If so, that's going to throw a wrench in how we handle permissions. Appreciate you taking the time to review.

Here is a video of the issue occurring in real-time.

 

Share this comment


Link to comment

This is an impossible issue for me to tackle. 

Since it's two-way role syncing one of the ways has to be prioritized. 
In your case, you want the discord roles to be the priority.

However, here is where the issue stands.
When a user joins a server, it compares their oxide and discord roles. If they don't have a group in oxide, but have it in discord, the bot will remove it from them in discord. If they have a role in oxide but not in discord it will add it to them in discord.

Unfortunately, I cannot do that both ways because the bot does not know if the user is supposed to have the role or not.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.