【发布时间】:2021-12-09 12:27:39
【问题描述】:
我正在使用 Discord.js v13.2。准备好后,我需要发送消息。我可以发送短信,但没有出现按钮,所以我想我没有正确发送参数。
client.once("ready", async () => {
const button = new MessageButton()
.setLabel("Go To Site")
.setStyle("blue")
.setCustomId("btn-go-to-site");
const helpChannel = await client.channels.fetch(channelID);
helpChannel.send('Welcome to Site', button);
});
【问题讨论】:
-
你使用的是什么版本的 discord.js?
-
@MrMythical 我正在使用:“discord.js”:“^13.2.0”
标签: javascript discord discord.js