From 2dfa420675d5e2e6658b3e569704927a6f192aa8 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 27 Jun 2020 22:19:02 +0100 Subject: [PATCH] Skipping over the first element in the array "mention" as we don't to see the @everyone role --- cogs/GetInfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/GetInfo.py b/cogs/GetInfo.py index 4e80555e..9b2192df 100644 --- a/cogs/GetInfo.py +++ b/cogs/GetInfo.py @@ -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>":