cogs/color/management.py
async def on_guild_role_delete(self, role):
        """Removes a role from a color if user deletes it"""
        db.guilds.update_one(
            {"_id": role.guild.id, "colors.role": role.id},
            {"$set": {"colors.$.role": None, "colors.$.members": []}}
        )
Removes a role from a color if user deletes it
Removes a role from a color if user deletes it
Removes a role from a color if user deletes it
async def on_guild_role_delete(self, role):
        db.guilds.update_one(
            {"_id": role.guild.id, "colors.role": role.id},
            {"$set": {"colors.$.role": None, "colors.$.members": []}}
        )
async def on_guild_role_delete ( self , role ) : db . guilds . update_one ( { "_id" : role . guild . id , "colors.role" : role . id } , { "$set" : { "colors.$.role" : None , "colors.$.members" : [ ] } } )
Removes a role from a color if user deletes it
Removes a role from a color if user deletes it
"""Removes a role from a color if user deletes it"""
self
role