Discord ratelimit reached
Hi, i'm getting this in the console fairly often. But i'm not really sure how to interptate it or if i need todo anything with it. Is anyone able to provide any more info?
I get that the ratelimit is reached, but not sure what todo with that.
12/12 20:44:42 | [Discord Extension] Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 10, reset: 1607805887, time now: 1607805882​
Plugins:
Discord Extention
Rustcord
DiscordCore & DiscordCoreRoles
DiscordMessages

Many Thanks
You're sending things to Discord too quickly. Not surprising since you're for some reason running three separate systems.
Really this is an issue in the Discord Extension. Every API has it's own bucket and currently the buckets are grouped by plugin and not by bot. If you have a bot for each plugin this would help alleviate the issue. Currently this is being worked on being fixed in the extension but no timeline and when that work would be available.
Thanks guys :) i had heard something was coming.

Outsmoke, yeah it's annoying but sadly not one plugin does everything i want. Certain plugins prefer Rustcord and others like DiscordCore.
I'm all up for reducing the amount if i can keep the functionality. (sorry DiscordMessages should have been DiscordGroup)

MJSU, I starrted loading the plugins in and out indvaidually (apart from those that have dependancies) It only appears to be triggered when i load up DiscordCoreRoles in. Appreciate thats still the Discord Extension not handling something right, but wanted to pass the info on.

Thanks again guys.
Yeah DiscordCoreRoles can be heavy on the API calls. I try to span them out every 2 seconds but with other plugins competing it still possible to hit the limit. In DiscordCoreRoles.json you can set the update rate to something higher like 3 - 5 seconds an see if you notice an improvement. If you have a larger server though it will take longer to process the entire list.
MJSU
Yeah DiscordCoreRoles can be heavy on the API calls. I try to span them out every 2 seconds but with other plugins competing it still possible to hit the limit. In DiscordCoreRoles.json you can set the update rate to something higher like 3 - 5 seconds an see if you notice an improvement. If you have a larger server though it will take longer to process the entire list.

Thanks MJSU. Yeah, pretty high population, though most pretty regular and roles don't change hands often at all. Would setting it to an even longer timer of a few minutes be an option? Or would that create other issues?

Minutes would be an issue because It tries to process every user when loaded. What do you use DiscordCore and Rustcord for? If DiscordCore is only used for automation I would suggest just creating a second bot that is used for that and that would probably solve the issue.
Thanks MJSU, appreciate the explaination as well. I'll make it a seperate bot.

DiscordCore for Groups & Roles
Rustcord for logging info

Thanks to both of you guys for these plugins, extremely helpful.

Hello, I recently started noticing mass disconnects on my server that coincide with the Discord Extension hitting its rate limit.  I narrowed this down to being cause by Rustcord sending too much data at once.  My server tends to have between 40-70 people online at any given time, and the in-game chat is pretty active.

I have it set up to send player chat, deaths, and vehicle spawns to a public text channel for players to see and use to chat to players in-game via discord.  I then have all other logs that rustcord sends being sent to a locked log channel for my admins and I to check in case of errors, crashes, hack attempts, etc.

Is there a way to reduce the traffic being sent to keep us under the rate limit, without turning off all the log features?

This is my config file for Rustcord (I have deleted the API Key, and channel ids for security reasons):

{
  "CustomLoggingKeywords": [],
  "FilterWords": [
    "nigger",
    "cracker",
    "queer"
  ],
  "FilteredWord": "<censored>",
  "LogExcludeGroups": [],
  "LogExcludePerms": [],
  "Apikey": "",
  "AutoReloadPlugin": true,
  "AutoReloadTime": 901,
  "EnableBotStatus": true,
  "GameChatIconSteamID": ,
  "GameChatTag": "[RUSTCORD]",
  "GameChatTagColor": "#7289DA",
  "GameChatNameColor": "#55aaff",
  "GameChatTextColor": "#ffffff",
  "LogChat": true,
  "LogJoinQuits": true,
  "LogDeaths": true,
  "LogVehicleSpawns": true,
  "LogCrateDrops": true,
  "LogUserGroups": true,
  "LogPermissions": true,
  "LogKickBans": true,
  "LogNameChanges": true,
  "LogServerCommands": true,
  "LogServerMessages": true,
  "LogF7Reports": true,
  "LogTeams": false,
  "LogRCON": false,
  "LogPluginAdminHammer": false,
  "LogPluginAdminRadar": false,
  "LogPluginBetterChatMute": true,
  "LogPluginClans": true,
  "LogPluginDiscordAuth": false,
  "LogPluginPrivateMessages": true,
  "LogPluginRaidableBases": false,
  "LogPluginSignArtist": false,
  "LogPluginVanish": false,
  "EnableCustomLogging": true,
  "ReportCommand": "report",
  "Commandprefix": "^",
  "Channels": [
    {
      "Channelid": "",
      "perms": [
        "cmd_allow",
        "cmd_players",
        "msg_join",
        "msg_quit",
        "death_pvp",
        "msg_chat",
        "msg_helispawn",
        "msg_chinookspawn",
        "msg_planespawn",
        "msg_shipspawn",
        "msg_gesture"
      ]
    },
    {
      "Channelid": "",
      "perms": [
        "game_bug",
        "msg_joinlog",
        "log_f7reports",
        "log_admingive",
        "log_kicks",
        "log_bans",
        "log_cratedrop",
        "log_supplydrop",
        "log_groups",
        "log_perms",
        "log_notes",
        "log_namechange",
        "log_console",
        "plugin_betterchatmute",
        "plugin_clans",
        "plugin_privatemessages"
      ]
    },
    {
      "Channelid": "",
      "perms": [
        "msg_serverinit"
      ]
    },
    {
      "Channelid": "",
      "perms": [
        "game_report",
        "game_bug"
      ]
    },
    {
      "Channelid": "",
      "perms": [
        "cmd_allow",
        "cmd_ban",
        "cmd_unban",
        "cmd_timeban",
        "cmd_kick",
        "cmd_mute",
        "cmd_unmute"
      ]
    }
  ],
  "Commandroles": {
    "players": [],
    "kick": [
      "Owner",
      "Co-Owner",
      "Leaders",
      "Admin",
      "Sr. Staff",
      "Jr. Staff"
    ],
    "mute": [
      "Owner",
      "Co-Owner",
      "Leaders",
      "Admin",
      "Sr. Staff",
      "Jr. Staff"
    ],
    "unmute": [
      "Owner",
      "Co-Owner",
      "Leaders",
      "Admin",
      "Sr. Staff"
    ],
    "ban": [
      "Owner",
      "Co-Owner",
      "Leaders",
      "Admin"
    ],
    "unban": [
      "Owner",
      "Co-Owner",
      "Leaders"
    ],
    "timeban": [
      "Owner",
      "Co-Owner",
      "Leaders",
      "Admin",
      "Sr. Staff"
    ]
  }
}

And this is the error that pops up each time the mass disconnects occur:

(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:20) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220238
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220239
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:21) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:22) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:22) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:22) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:22) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:22) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220240
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220241
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220242
(13:23:23) | [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 0, limit: 5, reset: 1610220204, time now: 1610220242

Any ideas or advice?

Hello!

We've been trying to set over stats to our Discord channel name, now as for the stats they're working perfectly fine.
Though, we're getting rate limited at some points.

Is there any way programatically to make it wait a second until it updates that information again?

It keeps telling us [Discord Extension] [Info]: Discord ratelimit reached. (Ratelimit info: remaining: 9, limit: 10, reset: xxxxxxxxx
And it doesn't change the channel at all.

EDIT: We're calling Channel.GetChannel, channel.name and channel.ModifyChannel

EDIT 2: I have removed DiscordStatus as a plugin just to see how it would react, and it seems to have stopped rate limiting, I'll update if need be :)

EDIT 3: Yeah, still getting rate limited, every plugin is off and it still happens, as a temporary fix I've duplicated the points where it ratelimits to still show that specific set of data.
It shows the data now on the channel, but every 2 channel updates we're still getting limited

Not Fixed Yet

nHTGzYZU8Ets9ru.jpg Sp4rK

Not Fixed Yet

It would help if you can elaborate. This issue had been resolved years ago with the 2.0 update.

Though I think at this point a new post with the console error message and the plugins you have installed would be best as this thread is very old.

i am using discord rewards plugin from chaos my bot is disconnecting 4 times a wipe due to rate limited thing. i need to change the token everytime i wipe the server.

 

I have latest discord extension and plugin too

 

DuckTales

It would help if you can elaborate. This issue had been resolved years ago with the 2.0 update.

Though I think at this point a new post with the console error message and the plugins you have installed would be best as this thread is very old.

Hey sir, i face the same problem as you

with the discord rewards plugin and the rate limit. did you fix this by any chance? and if yes, please tell me how. my bots are constantly down because i get rate limited all the time.

thank you so much!

nHTGzYZU8Ets9ru.jpg Sp4rK

i am using discord rewards plugin from chaos my bot is disconnecting 4 times a wipe due to rate limited thing. i need to change the token everytime i wipe the server.

 

I have latest discord extension and plugin too