public Task <DestroyChannelResponse> DestroyChannel(string channelId) { if (channelId == null) { throw new ArgumentNullException(nameof(channelId)); } return(_rest.Delete <DestroyChannelResponse>(Endpoints.Channel(channelId))); }
public Task <EditChannelResponse> EditChannel(string channelId, string name = null, string topic = null) { if (channelId == null) { throw new ArgumentNullException(nameof(channelId)); } var request = new EditChannelRequest { Name = name, Topic = topic }; return(_rest.Patch <EditChannelResponse>(Endpoints.Channel(channelId), request)); }