【发布时间】:2022-12-10 22:26:28
【问题描述】:
如何查看消息。新消息的内容
client.on("interactionCreate", interaction => {
if(interaction.isCommand()){
if(interaction.commandName == "bingo"){
let min = interaction.options.getInteger("min");
let max = interaction.options.getInteger("max");
max -min;
let number = Math.floor(Math.random()*max)
let founded = false
let first_embed = new Discord.EmbedBuilder()
.setTitle("Bingo")
.setDescription(`the aim of the game is find Number between ${Discord.bold(min)} and ${Discord.bold(max)}`)
.setFooter({text:interaction.guild.name,iconURL:interaction.guild.iconURL()})
interaction.reply({embeds:[first_embed]});
while(!founded){
interaction.channel
}
}
我尝试检查新消息的消息内容
【问题讨论】:
-
你想在这里做什么?消息不清楚。另外,请尝试后再回来。
-
因为我需要知道如何在消息的同时检查消息的消息内容。内容!=数字
标签: discord.js