Skip to content

Commit

Permalink
stop returning if content is blank but embed exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-taxiera committed Mar 31, 2018
1 parent 1871897 commit bb35adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bot.on('messageCreate', async (msg) => {
if (command.name === 'help') params = commands
command.run({ params, bot, msg })
.then(({ content, embed, delay = 10000 }) => {
if (!content) return
if (!content && !embed) return
if (embed) {
content = msg.author.mention + ' ' + content
return msg.channel.createMessage({ content, embed })
Expand Down

0 comments on commit bb35adf

Please sign in to comment.