From 2e66137f3ee7a47911aa3e5aba7592f9abc1fd55 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 21 Sep 2021 20:28:37 +0200 Subject: [PATCH] Fixed an exception which was breaking repeater loop --- src/NadekoBot/Modules/Utility/Services/RepeaterService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Utility/Services/RepeaterService.cs b/src/NadekoBot/Modules/Utility/Services/RepeaterService.cs index 33b776e74..08c8245ef 100644 --- a/src/NadekoBot/Modules/Utility/Services/RepeaterService.cs +++ b/src/NadekoBot/Modules/Utility/Services/RepeaterService.cs @@ -218,7 +218,7 @@ where ((guildid >> 22) % {_creds.TotalShards}) == {_client.ShardId};") var channel = _client.GetChannel(repeater.ChannelId) as ITextChannel; if (channel is null) - channel = await _client.Rest.GetChannelAsync(repeater.ChannelId) as ITextChannel; + try { channel = await _client.Rest.GetChannelAsync(repeater.ChannelId) as ITextChannel; } catch { } if (channel is null) {