async def hitler(self, ctx, author: discord.Member = None): await ctx.trigger_typing() author1 = author if author1 is None: author1 = ctx.author url = str( author1.avatar_url_as(format="png", static_format="png", size=1024)) img = await self.bot.dagp.image_process(ImageFeatures.hitler(), url) file = discord.File(fp=img.image, filename=f"pixel.{img.format}") await ctx.reply(file=file)
async def hitler(self, ctx, member: Optional[Union[discord.Member, MemberID]]): """Hail Hitler""" member = member or ctx.author url = member.display_avatar.url img = await self.dagpi.image_process(ImageFeatures.hitler(), url) e2file = discord.File(fp=img.image, filename=f"hitler.{img.format}") e = Embed(title="Worse than Hitler!!!") e.set_image(url=f"attachment://hitler.{img.format}") await ctx.send(embed=e, file=e2file)
async def hitler( 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.hitler(), url) file = discord.File(fp=img.image, filename=f"pixel.{img.format}") await ctx.send(file=file)
async def dag_hitler(self, ctx: Context, *, item=None): """ Hmm, What's this? """ meth = await self.do_dagpi(ctx, ImageFeatures.hitler(), item) await self.dag_embed(ctx, meth, ctx.command.name)