/// <inheritdoc/> public async Task DeleteChannelAsync( ulong channelId) { var response = await httpClient.DeleteAsync( DiscordApiRoutes.Channel(channelId)) .ConfigureAwait(false); HandleErrors(response, options); }
/// <inheritdoc/> public async Task <DiscordChannelPacket> GetChannelAsync( ulong channelId) { var response = await httpClient.GetAsync( DiscordApiRoutes.Channel(channelId)) .ConfigureAwait(false); HandleErrors(response, options); return(JsonSerializer.Deserialize <DiscordChannelPacket>(response.Body, options)); }