From 8ea79a5dbe87e6b4a8c829126c77641450cb7ed8 Mon Sep 17 00:00:00 2001 From: nameless Date: Thu, 30 May 2024 15:30:47 -0400 Subject: [PATCH] use display_avatar instead of avatar --- watchdog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/watchdog.py b/watchdog.py index f04b4bd..033c606 100644 --- a/watchdog.py +++ b/watchdog.py @@ -61,10 +61,10 @@ class Watchdog(commands.AutoShardedBot): joined = member.joined_at.strftime('%s') registered = member.created_at.strftime('%s') embed.set_author(name=f"User left", - icon_url=member.avatar.replace(size=64, + icon_url=member.display_avatar.replace(size=64, static_format="png") ) - embed.set_thumbnail(url=member.avatar.replace(size=1024, + embed.set_thumbnail(url=member.display_avatar.replace(size=1024, static_format="png") ) @@ -90,10 +90,10 @@ class Watchdog(commands.AutoShardedBot): joined = member.joined_at.strftime('%s') registered = member.created_at.strftime('%s') embed.set_author(name=f"User joined", - icon_url=member.avatar.replace(size=64, + icon_url=member.display_avatar.replace(size=64, static_format="png") ) - embed.set_thumbnail(url=member.avatar.replace(size=1024, + embed.set_thumbnail(url=member.display_avatar.replace(size=1024, static_format="png") )