Update WebEmbed.js

This commit is contained in:
John Marlo 2022-04-01 16:42:03 +08:00 committed by GitHub
parent f8ce147a52
commit 91a717b635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,11 +246,9 @@ class WebEmbed {
/**
* Return Message Content + Embed (if hidden, pls check content length because it has 1000+ length)
* @param {boolean} hidden Hidden Embed link
* @param {boolean} shorten Shorten link ?
* @returns {string} Message Content
*/
async toMessage(hidden = false, shorten = true) {
async toMessage() {
const arrayQuery = [];
if (this.title) {
arrayQuery.push(`title=${this.title}`);