浏览代码

Add 'preemptive rate limit' section

pull/988/head
Hsu Still 7 年前
父节点
当前提交
3ed6402c8b
找不到此签名对应的密钥 GPG 密钥 ID: 8601A145FDA95209
共有 1 个文件被更改,包括 11 次插入4 次删除
  1. +11
    -4
      docs/faq/basic-operations.md

+ 11
- 4
docs/faq/basic-operations.md 查看文件

@@ -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


正在加载...
取消
保存