首页 > 解决方案 > 如何让我的机器人包含我所说的删除命令

问题描述

if (message.content.includes("<poll")) {
let embed = new DiscordMessage.Embed()
.setTitle(`Poll In ${message.guild.name}`)
.setDescription(the args that were in the other part of the command)
.setColor('RANDOM')
message.channel.send(embed);
}

我试图让它在我放置“命令另一部分中的参数”的位置显示如下:如果我说“<poll hello”,嵌入中的部分会说“你好”。

标签: javascriptdiscorddiscord.js

解决方案


推荐阅读