You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue caused by add_role command, which tries to get list of roles from bot, then add new role to this list and then replace_roles with the new list.
But managed role is not yet on the list when add_role is running, so replace_role tries to replace list of role with Bot role only, and Managed role is not replaceable.
Quick and dirty fix is to add 5 seconds sleep before assigning roles to bot.
Or think of something more beautiful :D
When adding bot with permissions (Discord-Managed role,
&permissions=int
) bot's role not assign with errorBut on adding bot without predefined role/permissions (without
&permissions=int
arg in URL), role assigns normallyBot has access to manage roles
The text was updated successfully, but these errors were encountered: