【问题标题】:Discord.js componentsDiscord.js 组件
【发布时间】:2021-07-02 22:16:29
【问题描述】:

我想知道是否有一种方法可以在 discord.js 上的频道中发送组件,我知道还有其他用于按钮的库,但我想知道一种发送此处包含的任何组件的方法:https://discord.com/developers/docs/interactions/message-components有什么办法吗?

我已经尝试过“选择菜单”的示例,但似乎 discordjs 无法将“组件”识别为属性/在“.send({})”中忽略它们

This is what I mean by "ignores components" since if I send that it will just send the content but not the actual component

【问题讨论】:

    标签: node.js discord components


    【解决方案1】:

    我找到了解决方案,目前这仅在 discord.js 开发分支中可用。版本 13 将具有此功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-07
      • 1970-01-01
      • 2021-12-12
      • 2021-04-30
      • 2017-10-30
      • 2021-06-21
      • 2018-11-24
      • 2021-12-03
      相关资源
      最近更新 更多