Пример #1
0
 /// <summary>
 ///     Creates a category channel with the provided name.
 /// </summary>
 /// <param name="name">The name of the new channel.</param>
 /// <param name="options">The options to be used when sending the request.</param>
 /// <exception cref="ArgumentNullException"><paramref name="name" /> is <c>null</c>.</exception>
 /// <returns>
 ///     The created category channel.
 /// </returns>
 public Task <RestCategoryChannel> CreateCategoryChannelAsync(string name, RequestOptions options = null)
 => GuildHelper.CreateCategoryChannelAsync(this, Discord, name, options);
Пример #2
0
 /// <summary>
 ///     Creates a category channel with the provided name.
 /// </summary>
 /// <param name="name">The name of the new channel.</param>
 /// <param name="func">The delegate containing the properties to be applied to the channel upon its creation.</param>
 /// <param name="options">The options to be used when sending the request.</param>
 /// <exception cref="ArgumentNullException"><paramref name="name" /> is <c>null</c>.</exception>
 /// <returns>
 ///     The created category channel.
 /// </returns>
 public Task <RestCategoryChannel> CreateCategoryChannelAsync(string name, Action <GuildChannelProperties> func = null, RequestOptions options = null)
 => GuildHelper.CreateCategoryChannelAsync(this, Discord, name, options, func);