From 4d96b4abe8e60170e8e46115f301968cb1074d61 Mon Sep 17 00:00:00 2001 From: John Marlo Date: Fri, 1 Apr 2022 18:20:58 +0800 Subject: [PATCH] Fix title and description --- src/structures/WebEmbed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/WebEmbed.js b/src/structures/WebEmbed.js index 23558f3..f71b1f9 100644 --- a/src/structures/WebEmbed.js +++ b/src/structures/WebEmbed.js @@ -251,10 +251,10 @@ class WebEmbed { async toMessage() { const arrayQuery = []; if (this.title) { - arrayQuery.push(`title=${this.title}`); + arrayQuery.push(`title=${encodeURIComponent(this.title)}`); } if (this.description) { - arrayQuery.push(`description=${this.description}`); + arrayQuery.push(`description=${encodeURIComponent(this.description)}`); } if (this.url) { arrayQuery.push(`url=${encodeURIComponent(this.url)}`);