From 243c3689c2abdcf2e3d9b777facb1416fed36fff Mon Sep 17 00:00:00 2001 From: ThatKev <65928584+thatkev@users.noreply.github.com> Date: Sat, 20 Jul 2024 11:21:49 +0930 Subject: [PATCH 1/3] Use subtext markdown for embed.toString() --- src/util/builder/embedBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/builder/embedBuilder.js b/src/util/builder/embedBuilder.js index 00c038c8a..b64f2d51a 100644 --- a/src/util/builder/embedBuilder.js +++ b/src/util/builder/embedBuilder.js @@ -203,7 +203,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; } From a7affa2bf69613b6546c39de31095d99e18c7c2a Mon Sep 17 00:00:00 2001 From: ThatKev <65928584+thatkev@users.noreply.github.com> Date: Sun, 21 Jul 2024 09:31:02 +0930 Subject: [PATCH 2/3] Update embedBuilder.js --- test/util/builder/embedBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/builder/embedBuilder.js b/test/util/builder/embedBuilder.js index 293c576a1..8a93236e0 100644 --- a/test/util/builder/embedBuilder.js +++ b/test/util/builder/embedBuilder.js @@ -284,7 +284,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" ); }); }); From c8f6c958b61703bf6d794c12a9fcd651abdd7f44 Mon Sep 17 00:00:00 2001 From: ThatKev <65928584+thatkev@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:17:53 +0930 Subject: [PATCH 3/3] prettier --- test/util/builder/embedBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/builder/embedBuilder.js b/test/util/builder/embedBuilder.js index 08177e7f6..637976256 100644 --- a/test/util/builder/embedBuilder.js +++ b/test/util/builder/embedBuilder.js @@ -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\n-# footer" + "## title\n\ndescription\n\n**field**:\nfieldValue\n-# footer", ); }); });