How to implement a Discord slash command?

时间:2017-12-18 05:08:32

标签: discord discord.py

I can not figure out how to implement a slash command with live "feedback" similar to /giphy, /xivdb, etc. Is there no public API for this? I am using discord.py, but I guess that does not really matter much for this question.

I would like to register a new command /mycommand and show a list of search results as the user types.

enter image description here

2 个答案:

答案 0 :(得分:8)

答案 1 :(得分:0)

这些是Discord客户端中内置的本机命令。
没有针对这些的公共API,并且实现此类目标的唯一方法是修改客户端,这违反了Discord's Terms of Service