slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.69k stars 1.14k forks source link

feat: Add support for parsing AppRateLimited events #1308

Closed nemuvski closed 3 months ago

nemuvski commented 3 months ago

The code changes in this commit add support for parsing AppRateLimited events in the ParseEvent function. This allows the application to handle rate-limited events from the Slack API.

Ref: https://api.slack.com/apis/events-api#rate-limiting

Pull Request Guidelines

These are recommendations for pull requests. They are strictly guidelines to help manage expectations.

PR preparation

Run make pr-prep from the root of the repository to run formatting, linting and tests.

Should this be an issue instead
API changes

Since API changes have to be maintained they undergo a more detailed review and are more likely to require changes.

Examples of API changes that do not meet guidelines: