JaredScar / Badger_Discord_API

A FiveM API Script [created by Badger]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord rate limit

Dennis-NL opened this issue · comments

commented

Badger sends to many requests to the Discord API resulting in a rate limit.

script:Badger_Discor] [Badger_Perms] ERROR: Code 200 was not reached... Returning false. [Member Data NOT FOUND] DETAILS: Error - Too many requests, you hit the Discord rate limit. https://discord.com/developers/docs/topics/rate-limits

commented

If you are using the built-in caching system, there shouldn't be a reason for this resource to hit the Discord request limit. However, excessive calling of a function from another script, with a loop for example, might trigger it.

commented

I'm using DiscordACEperms.
Everytime someone joins the server it start checking the roles. Thus hitting the rate limit

commented

How is this an issue? You hitting the rate limit is not a valid issue. This resource implements caching for a reason. Utilize it.

Rate limit does not work. Atleas not with 200 players.
Continously erroring in the console, players not getting their roles etc