javascript - 如何让我的机器人包含我所说的删除命令
问题描述
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”,嵌入中的部分会说“你好”。
解决方案
推荐阅读
- firebase - 访问 Firestore 集合
- python - Selenium - 查找 h1 和 p 文本的文章
- asp.net - 如何从数据表 gridData 绑定中修复 checkmarx 存储的 XSS 问题
- xamarin - 需要在不调用 xamarin.forms 中的 Every catch 内的 save log 方法的情况下全局存储已处理的异常
- html - 格式化 HTML 丢失的驱动器
- jquery - 来自对象的数据集以创建图表
- hibernate - Hibernate:如何解决循环问题
- java - Java 抽象类方法
- java - 如何通过手动bean进行依赖注入?
- r - 突出显示整行而不是单元格