Only storing roles that are not managed

pull/8/head
sgoudham 4 years ago
parent 799e5fa4ee
commit 9eb4a84f09

@ -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:

Loading…
Cancel
Save