Discord Fixed Multiple Groups

Hi,

When a user is in two usergroups, and each usergroup is in a different role; the user is placed into only one of the roles, not both.

I would appreciate a fix to this as soon as possible; I have just purchased the addon and everything else works smoothly.
 
After abit of troubleshooting, a friend has provided the fix below for Helper.php - I'd appreciate it if you could push this as an update to your product.
Code:
foreach($userGroups as $userGroup)
            {
               $ids = $this->getDiscordRolesByGroup($userGroup);
               if (is_array($ids))
               {
                   $roleIds = array_merge($roleIds, $ids);
               }
               else
               {
                   $roleIds[] = $ids;
               }
            }
 
I'll look in to this and merge it in to the add-on. Thanks!

Apologies for the delayed response, I've been out of town for a few days.
 
Back
Top