【发布时间】:2021-11-24 03:42:45
【问题描述】:
我想像这样发送一个短暂的回复
带有不和谐按钮
我的尝试
client.on('clickButton', async (button) => {
if (button.id === 'openTicket') {
await button.reply.defer();
await button.message.channel.send('Done', {ephemeral: true});
}
});
【问题讨论】:
-
您能给我们看一张您尝试命令和响应的图像吗? (也可能在 if 语句中切换两行?)
-
如果你使用的是 v13.1.0 你试过
.send({content: 'Done', ephemeral: true})
标签: node.js discord discord.js discord-buttons