Discord.js如何在嵌入内容中添加customemoji?

时间:2020-05-26 06:58:36

标签: javascript discord discord.js

<:fly:714097004367839282>当我添加它时显示:fly:如何解决?

const Embed = new Discord.MessageEmbed()
    .setColor('#16E9DE')
    .setTitle('<:fly:714097004367839282> Helo bot <:fly:714097004367839282> ')
    .setAuthor('Bot hello')
    .setDescription('<:fly:714097004367839282> Hello <:fly:714097004367839282>')
    .setThumbnail('')
    .setTimestamp()
  .setFooter('BeamKunGzMARK#3855', 'https://i.imgur.com/POZeOUa.png');

2 个答案:

答案 0 :(得分:0)

使用前,您需要获取自定义表情符号

const flyEmoji = client.emojis.cache.get('714097004367839282')
const Embed = new Discord.MessageEmbed()
    .setColor('#16E9DE')
    .setTitle(`${flyEmoji} Helo bot ${flyEmoji}`)
    .setAuthor('Bot hello')
    .setDescription(`${flyEmoji} Hello ${flyEmoji}`)
    .setTimestamp()
    .setFooter('BeamKunGzMARK#3855', 'https://i.imgur.com/POZeOUa.png');

答案 1 :(得分:0)

也需要在服务器表情符号自定义内