@staticmethod
async def send_muted_dm_embed(ctx: SlashContext, member: discord.Member, channel: discord.TextChannel, reason: str=None, duration: str=None) -> bool:
    if (not duration):
        duration = 'Indefinite'
    try:
        dm_channel = (await member.create_dm())
        embed = embeds.make_embed(author=False, title=f"Uh-oh, you've been muted!", description='If you believe this was a mistake, contact staff.', color=8422320)
        embed.add_field(name='Server:', value=f'[{ctx.guild}](https://discord.gg/piracy/)', inline=True)
        embed.add_field(name='Moderator:', value=ctx.author.mention, inline=True)
        embed.add_field(name='Length:', value=duration, inline=True)
        embed.add_field(name='Mute Channel:', value=channel.mention, inline=True)
        embed.add_field(name='Reason:', value=reason, inline=False)
        embed.set_image(url='https://i.imgur.com/840Q48l.gif')
        (await dm_channel.send(embed=embed))
        return True
    except discord.HTTPException:
        return False
@staticmethod
async def send_muted_dm_embed(ctx: SlashContext, member: discord.Member, channel: discord.TextChannel, reason: str=None, duration: str=None) -> bool:
    if (not duration):
        duration = 'Indefinite'
    try:
        dm_channel = (await member.create_dm())
        embed = embeds.make_embed(author=False, title=f"Uh-oh, you've been muted!", description='If you believe this was a mistake, contact staff.', color=8422320)
        embed.add_field(name='Server:', value=f'[{ctx.guild}](https://discord.gg/piracy/)', inline=True)
        embed.add_field(name='Moderator:', value=ctx.author.mention, inline=True)
        embed.add_field(name='Length:', value=duration, inline=True)
        embed.add_field(name='Mute Channel:', value=channel.mention, inline=True)
        embed.add_field(name='Reason:', value=reason, inline=False)
        embed.set_image(url='https://i.imgur.com/840Q48l.gif')
        (await dm_channel.send(embed=embed))
        return True
    except discord.HTTPException:
        return False