Skip to content

Commit

Permalink
Update embedBuilder.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Sep 15, 2024
1 parent a11ac23 commit a991120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/builder/embedBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Embed {
* @public
*/
setDescription(text) {
if (!text)
if (typeof text !== "string")
throw new TypeError("GLUON: Embed description must be provided.");

this.description =
Expand Down

0 comments on commit a991120

Please sign in to comment.