~riderius/riderius-cogs

169d49913ed2a0855ceb69cf7024eac452475d8f — riderius 11 months ago 110b8da main
Stat: add requester avatar to footer

Signed-off-by: riderius <riderius.help@gmail.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M Stat/stat.py
M Stat/stat.py => Stat/stat.py +2 -2
@@ 39,8 39,8 @@ class Stat(commands.Cog):
        stat.add_field(name="Joined at:", value=joined_at)

        if ctx.message.author.nick:
            stat.set_footer(text=f"Request by {ctx.message.author} aka {ctx.message.author.nick} | {ctx.message.author.id}")
            stat.set_footer(text=f"Request by {ctx.message.author} aka {ctx.message.author.nick} | {ctx.message.author.id}", icon_url=avatar_url)
        else:
            stat.set_footer(text=f"Request by {ctx.message.author} | {ctx.message.author.id}")
            stat.set_footer(text=f"Request by {ctx.message.author} | {ctx.message.author.id}", icon_url=ctx.message.author.avatar_url)

        await ctx.send(embed=stat)