概述
discordpy-slash旨在简化在discord.py Discord机器人中实施斜杠命令的过程。 您只需要做很少甚至不需要重写现有命令的方法即可工作。 该库可能存在错误,如果发现任何错误,请提出问题。
我该如何安装?
在Linux和Mac上运行此命令pip3 install discordpy-slash ,或者如果您在Windows上,请pip install discordpy-slash
如何将其实施到我的机器人中?
您所要做的就是使用一个函数sync_all_commands . This will sync all commands to discord and will start listening for interactions and respond to them. It is recommended to put this in an . This