【问题标题】:Discord.JS - Embed is not appearingDiscord.JS - 嵌入未出现
【发布时间】:2021-08-30 18:40:01
【问题描述】:

当我执行“?help”时,帮助命令不会显示,我也没有收到任何错误,只是无法弄清楚为什么它没有出现,请帮助。

let embed = new discord.MessageEmbed()
  
    .setTitle("Haunt Bot Commands")
  
    .setDescription('Utility: ?invite | ?support | ?prefix | ?avatar | ?info | ?whois',
                    'Query: ?calculate | ?anime',
                    'Moderation: ?kick | ?ban | ?mute | ?warn | ?purge | ?warnings',
                    'Economy: ?bal | ?daily | ?roll | ?bet | ?give',
                    'Music: ?play | ?np | ?lyrics | ?pause | ?search | ?queue | ?skip | ?vol',
                    'Fun: ?kiss | ?hug | ?pat | ?slap | ?wink | ?cuddle',
                    'NSFW: ?neko | ?foxgirl')
  
    .setThumbnail(bot.user.avatarURL({dynamic:true, size: 1024}))
    .setFooter("Thank you so much for choosing Haunt, it means the world to me! <3")
    .setColor("#78d7fa")
    
    return message.noMentionReply(embed);

}

【问题讨论】:

    标签: discord discord.js bots


    【解决方案1】:

    消息对象上没有“noMentionReply”函数,除非你在某处定义了它。如果您打算使用函数,只需执行“noMentionReply(embed)”

    【讨论】:

      【解决方案2】:

      什么是“noMentionReply”?你从哪里得到那个的?我很确定正确的功能是

      message.channel.send(message);
      
       let embed = new discord.MessageEmbed()
        .setTitle("Haunt Bot Commands")
        .setDescription('Utility: ?invite | ?support | ?prefix | ?avatar | ?info | ?whois',
                      'Query: ?calculate | ?anime',
                      'Moderation: ?kick | ?ban | ?mute | ?warn | ?purge | ?warnings',
                      'Economy: ?bal | ?daily | ?roll | ?bet | ?give',
                      'Music: ?play | ?np | ?lyrics | ?pause | ?search | ?queue | ?skip | ?vol',
                      'Fun: ?kiss | ?hug | ?pat | ?slap | ?wink | ?cuddle',
                      'NSFW: ?neko | ?foxgirl')
        .setThumbnail(bot.user.avatarURL({dynamic:true, size: 1024}))
        .setFooter("Thank you so much for choosing Haunt, it means the world to me! <3")
        .setColor("#78d7fa")
      
       message.channel.send(embed);
      }
      

      【讨论】:

        猜你喜欢
        • 2020-10-18
        • 2020-11-15
        • 2021-01-04
        • 2021-02-07
        • 2022-08-03
        • 2021-11-01
        • 2020-12-05
        • 2021-07-23
        • 2020-07-14
        相关资源
        最近更新 更多