Browse Source

Add 'preemptive rate limit' section

pull/988/head
Hsu Still 7 years ago
parent
commit
3ed6402c8b
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      docs/faq/basic-operations.md

+ 11
- 4
docs/faq/basic-operations.md View File

@@ -49,9 +49,9 @@ various types of channels.
## How can I get the guild from a message?

There are 2 ways to do this. You can do either of the following,
1. Cast the user as an [IGuildUser] and use its [IGuild] property.
2. Cast the channel as an [IGuildChannel] and use
its [IGuild] property.
1. Cast the user as an [IGuildUser] and use its [IGuild] property.
2. Cast the channel as an [IGuildChannel] and use its [IGuild] property.

## How do I add hyperlink text to an embed?

@@ -73,6 +73,14 @@ implement [IEmote] and are valid options.

[AddReactionAsync]: xref:Discord.IUserMessage.AddReactionAsync*

## What is a "preemptive rate limit?"

A preemptive rate limit is Discord.NET's way of telling you to slow
down before you get hit by the real rate limit. Hitting a real rate
limit might prevent your entire client from sending any requests for
a period of time. This is calculated based on the HTTP header
returned by a Discord response.

## Why am I getting so many preemptive rate limits when I try to add more than one reactions?

This is due to how HTML header works, mistreating
@@ -84,7 +92,6 @@ reactions.

Unfortunately, not at the moment. See [#401](https://github.com/RogueException/Discord.Net/issues/401).


[IChannel]: xref:Discord.IChannel
[ICategoryChannel]: xref:Discord.ICategoryChannel
[IGuildChannel]: xref:Discord.IGuildChannel


Loading…
Cancel
Save