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

.say Does Not Reject When Hitting Rate Limit #341

Open
juriadams opened this issue Feb 26, 2023 · 0 comments
Open

.say Does Not Reject When Hitting Rate Limit #341

juriadams opened this issue Feb 26, 2023 · 0 comments

Comments

@juriadams
Copy link

Describe the bug

When using .say to send a message to a channel, the returned Promise is not rejected correctly when hitting a rate limit. Please also see this related issue on NOTICE/MSG_RATELIMIT.

CodeSandbox reproduction

https://codesandbox.io/s/focused-leftpad-y2p5mt?file=/src/index.js

Expected behavior

The Promise returned by chat.say() should be rejected when aNOTICE/MSG_RATELIMIT is received for the channel the message was sent in.

Screenshots

No screenshots.

Environment (please complete the following information)

  • OS: Ventura 13.2.1 (22D68)
  • Node: 18.11.0

Additional context

Please also see this related issue on NOTICE/MSG_RATELIMIT.

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

No branches or pull requests

1 participant