Skip to content

Commit e0f2edf

Browse files
authored
Add retryLimit of 3 to the Discord client (#565)
Intended to avoid issues with 500 errors returned from Discord, as in #461.
1 parent 3908e00 commit e0f2edf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/bot.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class Bot {
2929

3030
validateChannelMapping(options.channelMapping);
3131

32-
this.discord = new discord.Client({ autoReconnect: true });
32+
this.discord = new discord.Client({
33+
autoReconnect: true,
34+
retryLimit: 3,
35+
});
3336

3437
this.server = options.server;
3538
this.nickname = options.nickname;

0 commit comments

Comments
 (0)