async def unmute_member(self, member: discord.Member, reason: str, ctx: SlashContext=None, guild: discord.Guild=None) -> None:
    guild = (guild or ctx.guild)
    moderator = (ctx.author if ctx else self.bot.user)
    role = discord.utils.get(guild.roles, id=settings.get_value('role_muted'))
    (await member.remove_roles(role, reason=reason))
    db = dataset.connect(database.get_db())
    db['mod_logs'].insert(dict(user_id=member.id, mod_id=moderator.id, timestamp=int(time.time()), reason=reason, type='unmute'))
    tempmute_entry = db['timed_mod_actions'].find_one(user_id=member.id, is_done=False)
    if tempmute_entry:
        db['timed_mod_actions'].update(dict(id=tempmute_entry['id'], is_done=True), ['id'])
    db.commit()
    db.close()
async def unmute_member(self, member: discord.Member, reason: str, ctx: SlashContext=None, guild: discord.Guild=None) -> None:
    guild = (guild or ctx.guild)
    moderator = (ctx.author if ctx else self.bot.user)
    role = discord.utils.get(guild.roles, id=settings.get_value('role_muted'))
    (await member.remove_roles(role, reason=reason))
    db = dataset.connect(database.get_db())
    db['mod_logs'].insert(dict(user_id=member.id, mod_id=moderator.id, timestamp=int(time.time()), reason=reason, type='unmute'))
    tempmute_entry = db['timed_mod_actions'].find_one(user_id=member.id, is_done=False)
    if tempmute_entry:
        db['timed_mod_actions'].update(dict(id=tempmute_entry['id'], is_done=True), ['id'])
    db.commit()
    db.close()