discordrb icon indicating copy to clipboard operation
discordrb copied to clipboard

Wrong rate_limit_per_user interval for Channel

Open Dakurei opened this issue 3 years ago • 4 comments

For some unknown reason I was banned from the development Discord server, so I come to make the request directly here ...

The interval does not correspond at all to the official documentation, preventing to set a cooldown of more than 2 minutes. https://github.com/shardlab/discordrb/blob/dc27fe18463da3ccfd0f0266030aa7ad51b2c2b9/lib/discordrb/data/channel.rb#L350

The value should be 21600 instead of 120 screenshot

Thanks in advance for the modification!

Dakurei avatar Aug 24 '22 13:08 Dakurei

More than happy to update this

@Dakurei can you join our server and give me your user ID so I can look into that for you? https://discord.gg/Mz2hm8Vw

swarley avatar Aug 24 '22 14:08 swarley

Nevermind, I found your case and unbanned you from the Discord API server 🙂

swarley avatar Aug 24 '22 14:08 swarley

Thanks a lot !

Dakurei avatar Aug 24 '22 17:08 Dakurei

I made the modification, and I took the occasion to fix the test that was failing.

Normally it should be good, I'll let you check and merge it when you have the opportunity 👍

Dakurei avatar Aug 24 '22 17:08 Dakurei