Skip to content

Commit

Permalink
fix(discord): unset image on offline stream
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Sep 11, 2022
1 parent c2d6505 commit 7c34645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/discord.ts
Expand Up @@ -131,7 +131,7 @@ class Discord extends Integration {
.setColor(color)
// Set the main content of the embed
.setDescription(description)
.setImage(`https://static-cdn.jtvnw.net/previews-ttv/live_user_${broadcasterUsername}-1920x1080.jpg?${Date.now()}`)
.setImage(isOnline ? `https://static-cdn.jtvnw.net/previews-ttv/live_user_${broadcasterUsername}-1920x1080.jpg?${Date.now()}`: null)
.setThumbnail(isOnline ? profileImageUrl : null)
.setFooter({ text: prepare('integrations.discord.announced-by') + ' - https://www.sogebot.xyz' });
}
Expand Down

0 comments on commit 7c34645

Please sign in to comment.