Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Nov 2, 2023
2 parents 30d74e7 + 37d960f commit 809266f
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 809266f

Please sign in to comment.