From e0f2edf2d487603db1ee34f847ae7e234c651ff9 Mon Sep 17 00:00:00 2001 From: Edward Jones Date: Sat, 3 Oct 2020 16:35:16 -0300 Subject: [PATCH] Add retryLimit of 3 to the Discord client (#565) Intended to avoid issues with 500 errors returned from Discord, as in #461. --- lib/bot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bot.js b/lib/bot.js index 0b47638b..b05ef160 100644 --- a/lib/bot.js +++ b/lib/bot.js @@ -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;