private async Task <Webhook[]> FetchChannelWebhooks(ulong channelId) { try { return(await _rest.GetChannelWebhooks(channelId)); } catch (HttpRequestException e) { _logger.Warning(e, "Error occurred while fetching webhook list"); // This happens sometimes when Discord returns a malformed request for the webhook list // Nothing we can do than just assume that none exist. return(new Webhook[0]); } }