From 9eb4a84f09e22c2165e93ffa6f73d1836db54bf9 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 10 Aug 2020 02:52:26 +0100 Subject: [PATCH] Only storing roles that are not managed --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index e37931a4..d7f378c4 100644 --- a/settings.py +++ b/settings.py @@ -246,7 +246,7 @@ def extensions(): async def storeRoles(pool, target, ctx, member): """Storing User Roles within Database""" - role_ids = ", ".join([str(r.id) for r in target.roles]) + role_ids = ", ".join([str(r.id) for r in target.roles if not r.managed]) # Setup up pool connection and cursor async with pool.acquire() as conn: