#Ratelimit
36 messages · Page 1 of 1 (latest)
You're being ratelimited.
https://discord.com/developers/docs/topics/opcodes-and-status-codes#http
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
How long is it for? And what do I do to solve it?
Are you sharing hosting (ip)?
Ratelimit
no
There are 10 shards in my bot*
old picture
Note: The commands that have a direct reply are working, but the commands that have deferReply and editReply have the problem!
What's the solution?
what are you even doing that gives you the ratelimit
I did not do any thing!
check logs, "you" (or your users?) must have done something..
so your bot just randomly gets ratelimit? and it doesn't do anything?
My bot does not shout, it is a fun bot and there are games in it, there are no spam commands or anything
Is this normal?
@lucid cedar
Is the wallet (or another using deferReply) command very long piece of code? or can you show it?
All commands with deferReply do not respond and therefore buttons, menus, or commands with deferReply!
But with a reply, they respond
I see it
Note they are working! But suddenly this happened to them
What I discovered is that this message is what appears in event debug when using deferReply
And did you check your logs to see if your commands were being abused/spammed?
Do you have any cooldown/limits for your commands?
No, I've never done cooldowns for commands before
Is it necessary to put a cooldown to reduce the ratelimit? How long is the average period between one command and the other?
@fair mountainHow can I find out the ratelimit period?
I think I already linked the docs on rate-limit from discord.
EDIT: Actually, you'd have to click on "Rate Limits" from the table I sent, here is the link tho
https://discord.com/developers/docs/topics/rate-limits
Sublimit: 173000ms
Is this the period in milliseconds?
@fair mountainIs my statement correct or not?
I'm not sure what that means tbh, but why are you focusing on that instead of figuring out how you end up getting ratelimited/banned?
I'm going to do a cooldown between every command and it takes one minute, will that solve the problem?
Do you think that would be enough?
@fair mountain I have added a system cooldown and it takes 20 seconds between every command the person uses, will this solve the ratelimits problem?