mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
allow sending an embed without {embeds:[]}
This commit is contained in:
parent
0d3b8ce64e
commit
eaff3db775
1 changed files with 1 additions and 0 deletions
|
@ -2,5 +2,6 @@ module.exports.editOrReply = function(context, message, disableReference = false
|
|||
// Apply message_reference
|
||||
if(!message.message_reference && !disableReference) message.reference = true
|
||||
if(!message.allowedMentions) message.allowedMentions = {parse: [], repliedUser: false}
|
||||
if(!message.content && !message.embed && !message.embeds && !message.components) return context.editOrReply({embeds: [message]})
|
||||
return context.editOrReply(message)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue