【发布时间】:2019-07-19 01:30:41
【问题描述】:
如果描述大于 2048 个字符,我正在尝试解决如何将 RichEmbed 拆分为两个单独的消息。
let embed = new RichEmbed()
.setColor(cyan)
.setAuthor(`Urban Dictionary | ${word}`, image)
.setThumbnail(image)
.setDescription(stripIndents`**Definition:**
${definition || "No definition"}
**Example:**
${example || "No example"}
**Upvotes:** ${thumbs_up || 0}
**Downvotes:** ${thumbs_down || 0}
**Link:** [Link to ${word}](${permalink || "https://www.urbandictionary.com/"})`)
.setFooter(`Requested by: ${message.author.tag} || Author: ${author || "Unknown"}`, message.author.avatarURL)
.setTimestamp()
message.channel.send(embed)
提前致谢!
【问题讨论】:
标签: javascript node.js discord.js