Skip to content

Commit b5c6d24

Browse files
authored
Update configuration for Discord integration (#1731)
1 parent da8839e commit b5c6d24

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { IProcessStreamContext } from '../../../types'
22

3-
const DISCORD_RATE_LIMIT = 10000
3+
const DISCORD_RATE_LIMIT = 100000
44
const DISCORD_RATE_LIMIT_TIME = 100 // 100 seconds
55
const REDIS_KEY = 'discord-ratelimits-requests-count'
66

services/libs/integrations/src/integrations/discord/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import processWebhookStream from './processWebhookStream'
99
const descriptor: IIntegrationDescriptor = {
1010
type: PlatformType.DISCORD,
1111
memberAttributes: DISCORD_MEMBER_ATTRIBUTES,
12-
checkEvery: 4 * 60, // 4 hours
12+
checkEvery: 12 * 60, // 12 hours
1313
generateStreams,
1414
processStream,
1515
processData,

services/libs/integrations/src/integrations/discord/processStream.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const processMembersStream: ProcessStreamHandler = async (ctx) => {
202202
guildId: data.guildId,
203203
token: getDiscordToken(ctx),
204204
page: data.page,
205-
perPage: 100,
205+
perPage: 500,
206206
},
207207
ctx,
208208
)
@@ -241,7 +241,7 @@ const processChannelStream: ProcessStreamHandler = async (ctx) => {
241241
channelId: data.channelId,
242242
token: getDiscordToken(ctx),
243243
page: data.page,
244-
perPage: 100,
244+
perPage: 500,
245245
},
246246
ctx,
247247
)

0 commit comments

Comments
 (0)