Skip to content

Commit da8839e

Browse files
authored
Change rate limit configuration for Discord (#1730)
1 parent fa2817f commit da8839e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/libs/integrations/src/integrations/discord/api/handleRateLimit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { IProcessStreamContext } from '../../../types'
22

3-
const DISCORD_RATE_LIMIT = 100
4-
const DISCORD_RATE_LIMIT_TIME = 1 // 1 second
5-
const REDIS_KEY = 'discord-request-count'
3+
const DISCORD_RATE_LIMIT = 10000
4+
const DISCORD_RATE_LIMIT_TIME = 100 // 100 seconds
5+
const REDIS_KEY = 'discord-ratelimits-requests-count'
66

77
export const getRateLimiter = (ctx: IProcessStreamContext) => {
88
return ctx.getRateLimiter(DISCORD_RATE_LIMIT, DISCORD_RATE_LIMIT_TIME, REDIS_KEY)

0 commit comments

Comments
 (0)