From 27c6db607f38fdefd752c97533187a48509bbf70 Mon Sep 17 00:00:00 2001 From: Cool aid <84676543+cool-aid-man@users.noreply.github.com> Date: Thu, 2 Nov 2023 00:26:45 +0530 Subject: [PATCH 1/3] Update objects.py --- tags/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/objects.py b/tags/objects.py index d1fff310..19a7e052 100644 --- a/tags/objects.py +++ b/tags/objects.py @@ -263,7 +263,7 @@ async def get_info(self, ctx: commands.Context) -> discord.Embed: if self.guild_id: e.set_author(name=ctx.guild, icon_url=ctx.guild.icon.url) else: - e.set_author(name=ctx.me, icon_url=ctx.me.avatar_url) + e.set_author(name=ctx.me, icon_url=ctx.me.avatar.url) return e async def send_info(self, ctx: commands.Context) -> discord.Message: From 3f6ab37cbf38e7841b9e250af073d86a377ca6a8 Mon Sep 17 00:00:00 2001 From: Cool aid <84676543+cool-aid-man@users.noreply.github.com> Date: Thu, 2 Nov 2023 20:58:50 +0530 Subject: [PATCH 2/3] [Tags] fix member avatar url Oh yes right when the bot doesn't have pfp Co-authored-by: Lemon Rose <78662983+japandotorg@users.noreply.github.com> --- tags/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/objects.py b/tags/objects.py index 19a7e052..07bbb99c 100644 --- a/tags/objects.py +++ b/tags/objects.py @@ -263,7 +263,7 @@ async def get_info(self, ctx: commands.Context) -> discord.Embed: if self.guild_id: e.set_author(name=ctx.guild, icon_url=ctx.guild.icon.url) else: - e.set_author(name=ctx.me, icon_url=ctx.me.avatar.url) + e.set_author(name=ctx.me, icon_url=ctx.me.display_avatar.url) return e async def send_info(self, ctx: commands.Context) -> discord.Message: From d8cb31b8a0f9aee1a0f5916f6c54082ca48f416a Mon Sep 17 00:00:00 2001 From: Cool aid <84676543+cool-aid-man@users.noreply.github.com> Date: Thu, 2 Nov 2023 21:10:37 +0530 Subject: [PATCH 3/3] Update objects.py --- tags/objects.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tags/objects.py b/tags/objects.py index 07bbb99c..8092d174 100644 --- a/tags/objects.py +++ b/tags/objects.py @@ -140,9 +140,7 @@ async def run(self, seed_variables: dict, **kwargs) -> tse.Response: cooldown_key=self.cooldown_key, **kwargs, ) - if cog.async_enabled: - return await output - return output + return await output if cog.async_enabled else output async def update_config(self) -> None: if self._real_tag: