cleanse / discord-hypertext
此包已被废弃且不再维护。作者建议使用 https://github.com/teamreflex/DiscordPHP 包。
Discord客户端(http://discordapp.com)的非官方PHP API包装器。
dev-master
2016-04-15 10:29 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ^6.1
Requires (Dev)
- vlucas/phpdotenv: ^2.0.1
This package is not auto-updated.
Last update: 2022-02-01 12:52:32 UTC
README
#Discord需要一个WebSocket连接。请考虑使用 https://github.com/teamreflex/DiscordPHP
discord-hypertext
Discord客户端(http://discordapp.com)的非官方PHP API包装器。
我们当前版本为1.2。这个版本有一些重大变更,可能会破坏您的旧代码。
变更
- 添加了新的token选项以进行身份验证。
- 登录路由已限流,因此请缓存登录令牌。
$discord->token() - 提及现在在您使用
<@userid>时自动创建。
入门
需求
- PHP >= 5.5.9
- Composer
安装
要安装,请运行以下命令(假设composer已添加到您的PATH)
composer require cleanse/discord-hypertext
这将安装当前master分支。