python - 如何插入带有 discord.py 和 discord.ext.commands 的按钮?
问题描述
请记住,这不是 discord-py-slash-commands,只是 discord.py 模块。也不是反应按钮。我想创建交互按钮。任何人都可以帮忙吗?请帮忙!!
@bot.command()
async def buttons(ctx):
... # the button (interactive) goes here
解决方案
当前版本的 discord.py 无法做到这一点。它将在处于 beta 测试阶段的 v2.0 中提供。
推荐阅读
- typescript - VS Code 中类似 WebStorm 的 TypeScript 方法覆盖
- java - 如何使用 Java 计算给定字符串的子字符串中的总元音?
- flutter - 如何在 Firestore 中过滤特定文档的 Stream 客户端?
- google-apps-script - 我如何告诉应用脚本“进入下面的行”?
- javascript - 如何将所有文件 SRC 属性值重命名为小写?
- jquery - 如何添加到可与分页一起使用的表头动态数据行?
- java - 使用另一个类的方法的片段问题,Android Studio
- pandas - ImportError:DLL 加载失败:找不到指定的模块
- c# - Unity 3D 中的玩家移动
- java - 如何在 java swing 应用程序的按钮中运行一个类