Skip to content

Commit

Permalink
Merge pull request #62 from thatkev/patch-1
Browse files Browse the repository at this point in the history
Use subtext markdown for embed.toString()
  • Loading branch information
Starman3787 authored Sep 14, 2024
2 parents 23408c7 + c8f6c95 commit 4816ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/builder/embedBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class Embed {
? `**${this.fields[i].name}**:\n${this.fields[i].value}\n`
: `${this.fields[i].value}\n`;

string += this.footer ? this.footer.text : "";
string += this.footer ? `-# ${this.footer.text}` : "";

return string;
}
Expand Down
2 changes: 1 addition & 1 deletion test/util/builder/embedBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe("Embed", function () {
embed.setAuthor("author");
embed.addField("field", "fieldValue");
expect(embed.toString()).to.equal(
"## title\n\ndescription\n\n**field**:\nfieldValue\nfooter",
"## title\n\ndescription\n\n**field**:\nfieldValue\n-# footer",
);
});
});
Expand Down

0 comments on commit 4816ca3

Please sign in to comment.