Beispiel #1
0
 /// <summary>
 /// Invites a user to a channel.
 /// <see href="https://api.slack.com/methods/channels.invite" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `channels:write`
 /// </param>
 /// <param name='user'>
 /// User to invite to channel.
 /// </param>
 /// <param name='channel'>
 /// Channel to invite user to.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <InviteOKResponse> InviteAsync(this IChannels operations, string token = default(string), string user = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.InviteWithHttpMessagesAsync(token, user, channel, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }