Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tags] fix member avatar url. #34

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tags/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -263,7 +261,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:
Expand Down
Loading