/// <summary> /// Leaves a channel. /// <see href="https://api.slack.com/methods/channels.leave" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `channels:write` /// </param> /// <param name='channel'> /// Channel to leave /// </param> public static LeaveOKResponse Leave(this IChannels operations, string token = default(string), string channel = default(string)) { return(operations.LeaveAsync(token, channel).GetAwaiter().GetResult()); }