Skip to content

Commit

Permalink
fix app name sometimes not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsbjorn committed Oct 7, 2023
1 parent cd1dc3c commit d45a443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordstreams/discordstreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ async def make_embed(self, start_time: Optional[datetime] = None) -> discord.Emb

details_msg = (
""
+ (f"**{activity.name}**\n" if activity.details else "")
+ (f"**{activity.name}**\n" if activity.details or activity.state else "")
+ (f"{activity.details}\n" if activity.details else "")
+ (f"{activity.state}\n" if activity.state else "")
+ (f"{_('Started ')} {discord.utils.format_dt(start, 'R')}\n" if start else "")
+ (f"{discord.utils.format_dt(start, 'R')}\n" if start else "")
+ (f"{_('Ends ')} {discord.utils.format_dt(end, 'R')}\n" if end else "")
)
except AttributeError:
Expand Down

0 comments on commit d45a443

Please sign in to comment.