Return a blank array rather than null if DownloadMessages does not have permissions.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user