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

Message sending/role attribution very slow #2336

Closed
RedBlaze42 opened this issue Sep 6, 2019 · 3 comments
Closed

Message sending/role attribution very slow #2336

RedBlaze42 opened this issue Sep 6, 2019 · 3 comments
Labels
invalid This is not right.

Comments

@RedBlaze42
Copy link

Summary

I have found that my bot take a very long time to send messages to multiple users or assign roles to them

Reproduction Steps

Execute:
for member in guild.roles:
member.send("Test")

Expected Results

Maybe 10sec for sending 50 character messages to 100 users like when using discord.js

Actual Results

More than 3minutes

Checklist

  • [ x] I have searched the open issues for duplicates.

System Information

(Thank you for your awesome API)

@Rapptz Rapptz added the invalid This is not right. label Sep 6, 2019
@Rapptz
Copy link
Owner

Rapptz commented Sep 6, 2019

The original claim that d.js is doing this in 10 seconds for 100 people is wrong. You're being rate limited.

@Rapptz Rapptz closed this as completed Sep 6, 2019
@nexy7574
Copy link

nexy7574 commented Sep 6, 2019

Mass-DMing is also the fastest way to get your bot banned so try and avoid that ratelimit

@flapili
Copy link

flapili commented Sep 7, 2019

Maybe 10sec for sending 50 character messages to 100 users like when using discord.js

either you are wrong or then d.js doesn't handle ratelimit 🤷‍♂
I hope for d.js you are wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This is not right.
Projects
None yet
Development

No branches or pull requests

4 participants