Skip to content

Commit

Permalink
Add retryLimit of 3 to the Discord client (#565)
Browse files Browse the repository at this point in the history
Intended to avoid issues with 500 errors returned
from Discord, as in #461.
  • Loading branch information
Throne3d authored Oct 3, 2020
1 parent 3908e00 commit e0f2edf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ class Bot {

validateChannelMapping(options.channelMapping);

this.discord = new discord.Client({ autoReconnect: true });
this.discord = new discord.Client({
autoReconnect: true,
retryLimit: 3,
});

this.server = options.server;
this.nickname = options.nickname;
Expand Down

0 comments on commit e0f2edf

Please sign in to comment.