This add-on enables connecting your MemberPress enabled website to your discord server. Now you can add/remove MemberPress members directly to your discord server roles, assign roles according to your member levels, unassign roles when they expire, change role when they change membership.
[27-Jul-2021 12:32:04 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /Applications/MAMP/htdocs/memberpress/wp-content/plugins/memberpress-discord/public/class-memberpress-discord-public.php on line 626
[27-Jul-2021 12:31:43 UTC] PHP Warning: Trying to access array offset on value of type null in /Applications/MAMP/htdocs/memberpress/wp-content/plugins/memberpress-discord/public/class-memberpress-discord-public.php on line 361
[27-Jul-2021 12:31:43 UTC] PHP Warning: Undefined array key 0 in /Applications/MAMP/htdocs/memberpress/wp-content/plugins/memberpress-discord/public/class-memberpress-discord-public.php on line 361
Case:
I set ALLOW non-member to YES
I set a default role.
See the screenshot the Assign default role API is being called twice.
Case: