-
Notifications
You must be signed in to change notification settings - Fork 14
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
This error occurs when the bot receives a lot of message. #10
Comments
Yup. It's because you're getting rate limited from the Gateway, so it sends a Payload with an error message. Will have to handle this and apply some sort of rate limit. |
I hope this problem will be solved quickly and API will grow a lot. |
Yep, since the API allows 120 requests per 60 seconds, that means you can only send 2 events per second. So I might just add a setTimeout(). However, I may set up a PriorityQueue structure and use that to handle events to prevent rate limiting. Will have to experiment. Thank you for bringing this up. |
I want you to fix the error quickly. |
Stuff like this takes time, give the man a break |
okay I'm sorry I rushed you. |
error: Uncaught TypeError: Cannot read property 'id' of undefined
let user: User = client.users.get(author.id);
^
at buildMessage (https://deno.land/x/katana/src/utils/resolvers.ts:252:44)
at TextChannel.send (https://deno.land/x/katana/src/models/channels/TextChannel.ts:57:20)
The text was updated successfully, but these errors were encountered: