Rate limiting

Could someone explain to me how rate limiting works? I don't want to violate the terms of service. I am currently writing my bot to automatically update messages. Fortunately, I haven't received any rate limiting warnings yet. However, my question is that the bot runs on a few hundred servers, and if all of them use the auto-refresh function, I'm afraid I'll run into problems. Furthermore, my bot occasionally sends notifications when a player reaches a new level or dies. Therefore, I am wondering whether it is acceptable to simply utilise the Discord library, as I have read that the library handels rate limiting. The image shows an example of a message. There are approximately 30 channels with 25 messages per guild that need to be constantly updated. However, if several people sign up, the message can be split into two more messages. It would be good if someone could help me with this
16 Replies
d.js toolkit
d.js toolkit4d ago
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
so that means i can update all at the same time or i need to first update channel 1 then channel 2? I was thinking to update it every min
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
and what about sending alot of messages into one channel? like this also every minute
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
no i just developed it very defensifly so i went for 1 min and as you can see i collect every event in this 1 min time window and then send a chunk
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
can you explain exactly what you mean i dont get it every container is a single message im basically batching the events in 1 min time window so i dont send like 5 messages when i can send 1
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
these are 5 messages 1 message every 1 min
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
why are u thinking im sending all at once im sending 1 message every minute containing the batch of lvl ups
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Skylife
SkylifeOP4d ago
yea i mean chunk as the container containing e.g. 5 events i received from my backend each character u see in the image is a notification from my backend i chunk them into a 1 min time frame and then I send 1 message containing 1 container containing my 5 events -> thats what i mean i chunk already so i dont send each event as a single message
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?