Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DiscordPHP and DiscordPHP-Slash to community resources #2441

Merged
merged 3 commits into from Jan 4, 2021

Conversation

davidcole1340
Copy link
Contributor

@davidcole1340 davidcole1340 commented Jan 1, 2021

DiscordPHP has returned from the dead and most (all?) of the latest features have been implemented.

The rate-limit system was approved back in 2016 but has been revamped to handle rate-limit buckets which were not present back then. This includes halting all requests on a 429 and attempting to bundle requests together to predict rate-limits.

The current rate-limit handling can be found here:

All notable features are implemented including the REST and WebSocket APIs as well as sending/receiving voice.

--

Also added the DiscordPHP-Slash library to community resources. Allows users to register commands with the Discord servers as well as a script that can be served to listen for interactions sent to the endpoint.

Rate-limiting logic for DiscordPHP-Slash is limited to halting all requests on a 429 response:

Since all HTTP requests are related to registering commands I don't forsee any rate-limit issues because the library is synchronous.

@typpo typpo merged commit 74d8607 into discord:master Jan 4, 2021
@davidcole1340 davidcole1340 deleted the libraries/discordphp branch April 29, 2021 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants