/// <summary> /// Gets information about a channel. /// <see href="https://api.slack.com/methods/channels.info" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `channels:read` /// </param> /// <param name='includeLocale'> /// Set this to `true` to receive the locale for this channel. Defaults to /// `false` /// </param> /// <param name='channel'> /// Channel to get info on /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <InfoOKResponseModelModel> InfoAsync(this IChannels operations, string token = default(string), bool?includeLocale = default(bool?), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.InfoWithHttpMessagesAsync(token, includeLocale, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }