Skip to content

Commit

Permalink
Fix FinderUtil role finding
Browse files Browse the repository at this point in the history
Since roles can be mentioned (by people with at-everyone perms) even if they aren't mentionable, this check to make sure a role was mentionable will likely just get in the way and cause unwanted behavior.
  • Loading branch information
jagrosh committed Mar 23, 2020
1 parent 0ca299f commit a650853
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -730,7 +730,7 @@ public static List<Role> findRoles(String query, Guild guild)
if(roleMention.matches())
{
Role role = guild.getRoleById(roleMention.group(1));
if(role!=null && role.isMentionable())
if(role!=null)
return Collections.singletonList(role);
}
else if(DISCORD_ID.matcher(query).matches())
Expand Down

0 comments on commit a650853

Please sign in to comment.