@staticmethod
async def mute_member(ctx: SlashContext, member: discord.Member, reason: str, temporary: bool=False, end_time: float=None) -> None:
    role = discord.utils.get(ctx.guild.roles, id=settings.get_value('role_muted'))
    (await member.add_roles(role, reason=reason))
    db = dataset.connect(database.get_db())
    db['mod_logs'].insert(dict(user_id=member.id, mod_id=ctx.author.id, timestamp=int(time.time()), reason=reason, type='mute'))
    if temporary:
        db['timed_mod_actions'].insert(dict(user_id=member.id, mod_id=ctx.author.id, action_type='mute', reason=reason, start_time=datetime.datetime.now(tz=datetime.timezone.utc).timestamp(), end_time=end_time, is_done=False))
    db.commit()
    db.close()
@staticmethod
async def mute_member(ctx: SlashContext, member: discord.Member, reason: str, temporary: bool=False, end_time: float=None) -> None:
    role = discord.utils.get(ctx.guild.roles, id=settings.get_value('role_muted'))
    (await member.add_roles(role, reason=reason))
    db = dataset.connect(database.get_db())
    db['mod_logs'].insert(dict(user_id=member.id, mod_id=ctx.author.id, timestamp=int(time.time()), reason=reason, type='mute'))
    if temporary:
        db['timed_mod_actions'].insert(dict(user_id=member.id, mod_id=ctx.author.id, action_type='mute', reason=reason, start_time=datetime.datetime.now(tz=datetime.timezone.utc).timestamp(), end_time=end_time, is_done=False))
    db.commit()
    db.close()