Skip to content

Commit

Permalink
Allow components-only in editMessage (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flicksie authored Jul 12, 2021
1 parent a1fc1a4 commit 97376b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,8 @@ class Client extends EventEmitter {
};
} else if(content.content !== undefined && typeof content.content !== "string") {
content.content = "" + content.content;
} else if(content.content === undefined && !content.embed && content.flags === undefined) {
return Promise.reject(new Error("No content, embed or flags"));
} else if(content.content === undefined && !content.embed && !content.components && content.flags === undefined) {
return Promise.reject(new Error("No content, embed, components or flags"));
}
if(content.content !== undefined || content.embed || content.allowedMentions) {
content.allowed_mentions = this._formatAllowedMentions(content.allowedMentions);
Expand Down

0 comments on commit 97376b2

Please sign in to comment.