Skip to content

Commit 482bb80

Browse files
committed
fix(discord): fix error during announce without message
1 parent e0ee34b commit 482bb80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/integrations/discord.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class Discord extends Integration {
333333
if (broadcasterType !== '') {
334334
embed.addField(prepare('webpanel.subscribers'), String(stats.value.currentSubscribers), true);
335335
}
336-
message.edit({ embeds: [embed] });
336+
message.edit({ embeds: [embed], content: null });
337337
}
338338
} catch (e: any) {
339339
warning(`Discord embed couldn't be changed to offline - ${e.message}`);
@@ -383,7 +383,7 @@ class Discord extends Integration {
383383
}
384384
// Send the embed to the same channel as the message
385385
const message = await (channel as DiscordJs.TextChannel).send({
386-
content: this.onlineAnnounceMessage,
386+
content: this.onlineAnnounceMessage.length > 0 ? this.onlineAnnounceMessage : null,
387387
embeds: [embed],
388388
});
389389
this.embedMessageId = message.id;

0 commit comments

Comments
 (0)