async def angel(self, ctx, member: discord.Member = None):
     await ctx.trigger_typing()
     if member is None:
         member = ctx.author
     url = str(
         member.avatar_url_as(format="png", static_format="png", size=1024))
     img = await self.bot.dagp.image_process(ImageFeatures.angel(), url)
     await ctx.send(
         file=discord.File(fp=img.image, filename=f"pixel.{img.format}"))
Exemple #2
0
    async def angel(self, ctx, member: Optional[Union[discord.Member,
                                                      MemberID]]):
        """Be an Angel"""
        member = member or ctx.author

        url = member.display_avatar.url
        img = await self.dagpi.image_process(ImageFeatures.angel(), url)
        e2file = discord.File(fp=img.image, filename=f"angel.{img.format}")
        e = Embed(title="Our dear Angel!")
        e.set_image(url=f"attachment://angel.{img.format}")
        await ctx.send(embed=e, file=e2file)
 async def angel(
     self,
     ctx,
     thing: typing.Union[discord.Member, discord.PartialEmoji,
                         discord.Emoji, str] = None,
 ):
     async with ctx.channel.typing():
         url = await self.get_url(ctx, thing)
     img = await dagpi.image_process(ImageFeatures.angel(), url)
     file = discord.File(fp=img.image, filename=f"pixel.{img.format}")
     await ctx.send(file=file)
Exemple #4
0
 async def dag_angel(self, ctx: Context, *, item=None):
     """
     Puts your image on an angel. How nice.
     """
     meth = await self.do_dagpi(ctx, ImageFeatures.angel(), item)
     await self.dag_embed(ctx, meth, ctx.command.name)