mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2024-10-02 20:13:13 +00:00
Fixed an exception which was breaking repeater loop
This commit is contained in:
parent
2d92424dd4
commit
2e66137f3e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue