Ratelimits

Ratelimits is a Discord restriction which prevents you from performing actions in a very fast rate. Most ratelimits are on a per-channel or a per-server basis.

❗ The Most Important Ratelimits

ActionRatelimitType
Send Messages5 / 5sper channel
Delete Messages5 / 1sper channel
Add/Remove Reactions1 / 0.25sper channel
Edit Server Members10 / 10sper server
Edit Member Nickname1 / 1sper server
Edit Bot Username2 / 1hper account
Update Channels2 / 10mper account
All Actions Combined50 / 1sper account

💪 Dealing with Ratelimits

Usually Javacord takes care about these limitations for you. As a user, there's nothing you have to do, but you should at least know that ratelimits exist.

Example

The following code

// Who even needs loops?
channel.sendMessage("Ratelimit Example #1");
channel.sendMessage("Ratelimit Example #2");
channel.sendMessage("Ratelimit Example #3");
channel.sendMessage("Ratelimit Example #4");
channel.sendMessage("Ratelimit Example #5");
channel.sendMessage("Ratelimit Example #6");
channel.sendMessage("Ratelimit Example #7");
channel.sendMessage("Ratelimit Example #8");
channel.sendMessage("Ratelimit Example #9");
channel.sendMessage("Ratelimit Example #10");
channel.sendMessage("Ratelimit Example #11");
channel.sendMessage("Ratelimit Example #12");

would look like this in the client:

You can clearly see the delay between every 5 sent messages.

❌ Can I disable ratelimits?

No. Ratelimits are a limitation from Discord itself, which you cannot circumvent.