繁体   English   中英

?avatar 命令发送两次

[英]?avatar command is sending twice

该命令运行良好,但是它做了这个烦人的事情,它发送了两次嵌入

    
    @commands.command()
    async def avatar(self, ctx, *, member: discord.Member=None):
        if not member: 
            member = ctx.message.author 
        favatar = discord.Embed(title=f"{member.name}'s avatar", color=0x000000)
        favatar.set_footer(text=f"Requested by {ctx.author.name}#{ctx.author.discriminator}")

        favatar.set_image(url='{}'.format(member.avatar_url))
        await ctx.send(embed = favatar)
        await ctx.message.delete()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM