async def satan(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.satan(), url) await ctx.send( file=discord.File(fp=img.image, filename=f"pixel.{img.format}"))
async def satan(self, ctx, member: Optional[Union[discord.Member, MemberID]]): """Be the Devil""" member = member or ctx.author url = member.display_avatar.url img = await self.dagpi.image_process(ImageFeatures.satan(), url) e2file = discord.File(fp=img.image, filename=f"satan.{img.format}") e = Embed(title="Satan!!!") e.set_image(url=f"attachment://satan.{img.format}") await ctx.send(embed=e, file=e2file)
async def satan( 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.satan(), url) file = discord.File(fp=img.image, filename=f"pixel.{img.format}") await ctx.send(file=file)
async def dag_satan(self, ctx: Context, *, item=None): """ Puts your image on a demon. How bad. """ meth = await self.do_dagpi(ctx, ImageFeatures.satan(), item) await self.dag_embed(ctx, meth, ctx.command.name)