/// <summary> /// Creates a private channel. /// <see href="https://api.slack.com/methods/groups.create" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `groups:write` /// </param> /// <param name='validate'> /// Whether to return errors on invalid channel name instead of modifying it to /// meet the specified criteria. /// </param> /// <param name='name'> /// Name of private channel to create /// </param> public static CreateOKResponseModelModel Create(this IGroups operations, string token = default(string), bool?validate = default(bool?), string name = default(string)) { return(operations.CreateAsync(token, validate, name).GetAwaiter().GetResult()); }