コード例 #1
0
 /// <summary>
 /// Joins a channel, creating it if needed.
 /// <see href="https://api.slack.com/methods/channels.join" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `channels: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 channel to join
 /// </param>
 public static JoinOKResponse Join(this IChannels operations, string token = default(string), bool?validate = default(bool?), string name = default(string))
 {
     return(operations.JoinAsync(token, validate, name).GetAwaiter().GetResult());
 }