fix (rroles): Off by one error in maximum.

This commit is contained in:
2021-11-07 15:05:05 +02:00
parent 4c21160b31
commit db6cc078db

View File

@@ -272,7 +272,7 @@ class ReactionRoleMessage:
# Fetch the number of applicable roles the user has
roleids = set(reaction.data.roleid for reaction in self.reactions)
member_roleids = set(role.id for role in member.roles)
if len(roleids.intersection(member_roleids)) > maximum:
if len(roleids.intersection(member_roleids)) >= maximum:
# Notify the user
embed = discord.Embed(
title="Maximum group roles reached!",