File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
services/libs/integrations/src/integrations/discord Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { IProcessStreamContext } from '../../../types'
2
2
3
- const DISCORD_RATE_LIMIT = 10000
3
+ const DISCORD_RATE_LIMIT = 100000
4
4
const DISCORD_RATE_LIMIT_TIME = 100 // 100 seconds
5
5
const REDIS_KEY = 'discord-ratelimits-requests-count'
6
6
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import processWebhookStream from './processWebhookStream'
9
9
const descriptor : IIntegrationDescriptor = {
10
10
type : PlatformType . DISCORD ,
11
11
memberAttributes : DISCORD_MEMBER_ATTRIBUTES ,
12
- checkEvery : 4 * 60 , // 4 hours
12
+ checkEvery : 12 * 60 , // 12 hours
13
13
generateStreams,
14
14
processStream,
15
15
processData,
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ const processMembersStream: ProcessStreamHandler = async (ctx) => {
202
202
guildId : data . guildId ,
203
203
token : getDiscordToken ( ctx ) ,
204
204
page : data . page ,
205
- perPage : 100 ,
205
+ perPage : 500 ,
206
206
} ,
207
207
ctx ,
208
208
)
@@ -241,7 +241,7 @@ const processChannelStream: ProcessStreamHandler = async (ctx) => {
241
241
channelId : data . channelId ,
242
242
token : getDiscordToken ( ctx ) ,
243
243
page : data . page ,
244
- perPage : 100 ,
244
+ perPage : 500 ,
245
245
} ,
246
246
ctx ,
247
247
)
You can’t perform that action at this time.
0 commit comments