Return a blank array rather than null if DownloadMessages does not have permissions.

This commit is contained in:
RogueException
2015-11-21 16:29:56 -04:00
parent aadaeb556e
commit c36820f6af

View File

@@ -251,7 +251,7 @@ namespace Discord
} }
catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.Forbidden){ } //Bad Permissions catch (HttpException ex) when (ex.StatusCode == HttpStatusCode.Forbidden){ } //Bad Permissions
} }
return null; return new Message[0];
} }
private Task MessageQueueLoop() private Task MessageQueueLoop()