async def get_role_from_db(self, setting, guild):
    async with self.bot.db.execute('SELECT role_id FROM roles WHERE setting = ? AND guild_id = ?', [setting, int(guild.id)]) as cursor:
        role_id = (await cursor.fetchone())
    return discord.utils.get(guild.roles, id=int(role_id[0]))
async def get_role_from_db(self, setting, guild):
    async with self.bot.db.execute('SELECT role_id FROM roles WHERE setting = ? AND guild_id = ?', [setting, int(guild.id)]) as cursor:
        role_id = (await cursor.fetchone())
    return discord.utils.get(guild.roles, id=int(role_id[0]))