0
votes

I'm trying to make a (personal) bot to download all messages that have been sent inside a channel, the messages are quite a lot and I know the limit of messages you can fetch is 100 per command, doing more than this results in API abuse and could get you banned. Now let's take for example a command that returns the last 100 messages sent, an user can do that indefinite amount of times and it's not API abuse, so how many times a second can I do it for it to not be abuse?

I asked in the discord.js server but haven't gotten an answer after 3 tries and I honestly don't want to risk getting banned.

1
You get rate limited if you're doing things too quick, if you want to know how long different types of rate limits are, I suggest you make use of the rateLimit event: discord.js.org/#/docs/main/stable/class/…Syntle
AFAIK though, storing messages is against Discord's ToSSyntle
Yup seems like it's against ToS but honestly, I just need to backup messages sent in a private channel where me and a friend sent messages, I'll email discord to ask what other ways I could do thisSpecy

1 Answers

1
votes

If you do not want to get banned, you might not want to try doing this, but I've already seen users make use of webhooks in order to restore some server's messages.

From personal experience, I know your bot gets rate limited for a few seconds if you send 5 messages in less than 1-2 seconds, so I would suggest you to send at most 1 message each 1-2 seconds and see whether you get rate limited or not.

You might also need to make sure that what you will be doing isn't against Discord's ToS if you really don't want to risk getting banned.