我要查看消息.内容同时传递信息.内容=数量



如何查看新消息的消息内容


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
}

}

我试着检查消息。新消息内容

我不是100%确定你想做什么,但如果你想检查一个字符串是否是一个数字,你可以使用number . isnan ()

例如:

if (Number.isNaN(string)) {
// string IS NOT a number
} else {
// string IS a number
}

最新更新