Skipping over the first element in the array "mention" as we don't to see the @everyone role

pull/2/head
sgoudham 4 years ago
parent e92e115cb8
commit 2dfa420675

@ -34,8 +34,8 @@ class GetInfo(commands.Cog):
# Store the roles in a string called "roles"
roles = ""
# For each role that the user has
for role in mentions:
# For each role that the user has (Skipping the first element as it's always going to be @everyone
for role in mentions[1:]:
# Make sure that @everyone is not included in the list of roles
if role == "<@&663651584399507476>":

Loading…
Cancel
Save