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" # Store the roles in a string called "roles"
roles = "" roles = ""
# For each role that the user has # For each role that the user has (Skipping the first element as it's always going to be @everyone
for role in mentions: for role in mentions[1:]:
# Make sure that @everyone is not included in the list of roles # Make sure that @everyone is not included in the list of roles
if role == "<@&663651584399507476>": if role == "<@&663651584399507476>":

Loading…
Cancel
Save