Skip to content

Commit

Permalink
Merge pull request #1320 from CatalysmsServerManager/fix-usage-of-sen…
Browse files Browse the repository at this point in the history
…d-message
  • Loading branch information
niekcandaele authored Sep 9, 2022
2 parents e03e494 + efe462a commit f4a013d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/helpers/discord/send-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
{
'content': inputs.content,
'tts': false,
'embeds': [inputs.embed.data]
'embeds': inputs.embed ? [inputs.embed.data] : undefined
}
);
sails.log.debug(`Sent a message to channel ${inputs.channelId}`, { ...response, labels: { type: 'discord' } });
Expand Down

0 comments on commit f4a013d

Please sign in to comment.