Beispiel #1
0
        public Task <DestroyChannelResponse> DestroyChannel(string channelId)
        {
            if (channelId == null)
            {
                throw new ArgumentNullException(nameof(channelId));
            }

            return(_rest.Delete <DestroyChannelResponse>(Endpoints.Channel(channelId)));
        }
Beispiel #2
0
        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));
        }