小编Ice*_*God的帖子

如何将普通文本和嵌入到同一条消息中?不和谐.js

所以我想将嵌入文本和普通文本放在一条消息中。我想我已经看到了,但如果不可能的话,你可以在评论中说出来。

我尝试了一些可能很愚蠢的方法(我是编码新手)。这是我尝试的方法:

if (msg.startsWith(among + 'wiki')) {
 wikipog = message.content.slice(7);
 var embed = new Discord.MessageEmbed()
  .setTitle(':globe_with_meridians: Among Us Wiki :globe_with_meridians:')
  .setDescription('Down below is the page you asked for!')
  .addField(
   'If an image shows up down below, that means your page exists!',
   '\u200B'
  )
  .addField('\u200b', field)
  .setColor(color)
  .setFooter(footer);
 message.channel.send(embed, `https://among-us.fandom.com/wiki/${wikipog}`);
}
Run Code Online (Sandbox Code Playgroud)

先感谢您!

(顺便说一句,我知道我可以只执行两个 message.channel.send(),但这会发送两个 ping/通知)

javascript node.js discord.js

4
推荐指数
1
解决办法
7425
查看次数

标签 统计

discord.js ×1

javascript ×1

node.js ×1