|
|
@ -258,12 +258,9 @@ async def storeRoles(target, ctx, member):
|
|
|
|
print(cur.rowcount, f"{len(role_ids)} Roles Added For User {member} in {ctx.guild.name}")
|
|
|
|
print(cur.rowcount, f"{len(role_ids)} Roles Added For User {member} in {ctx.guild.name}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def clearRoles(ctx, member):
|
|
|
|
async def clearRoles(ctx, member, pool):
|
|
|
|
"""Clear the roles when the user has been unmuted"""
|
|
|
|
"""Clear the roles when the user has been unmuted"""
|
|
|
|
|
|
|
|
|
|
|
|
# Setup pool
|
|
|
|
|
|
|
|
pool = await connection(db.loop)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Setup up pool connection and cursor
|
|
|
|
# Setup up pool connection and cursor
|
|
|
|
async with pool.acquire() as conn:
|
|
|
|
async with pool.acquire() as conn:
|
|
|
|
async with conn.cursor() as cur:
|
|
|
|
async with conn.cursor() as cur:
|
|
|
|