|
@@ -561,14 +561,15 @@ namespace Discord.WebSocket |
|
|
/// Creates a new channel category in this guild. |
|
|
/// Creates a new channel category in this guild. |
|
|
/// </summary> |
|
|
/// </summary> |
|
|
/// <param name="name">The new name for the category.</param> |
|
|
/// <param name="name">The new name for the category.</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> |
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> |
|
|
/// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> |
|
|
/// <returns> |
|
|
/// <returns> |
|
|
/// A task that represents the asynchronous creation operation. The task result contains the newly created |
|
|
/// A task that represents the asynchronous creation operation. The task result contains the newly created |
|
|
/// category channel. |
|
|
/// category channel. |
|
|
/// </returns> |
|
|
/// </returns> |
|
|
public Task<RestCategoryChannel> CreateCategoryChannelAsync(string name, RequestOptions options = null) |
|
|
|
|
|
=> GuildHelper.CreateCategoryChannelAsync(this, Discord, name, options); |
|
|
|
|
|
|
|
|
public Task<RestCategoryChannel> CreateCategoryChannelAsync(string name, Action<GuildChannelProperties> func = null, RequestOptions options = null) |
|
|
|
|
|
=> GuildHelper.CreateCategoryChannelAsync(this, Discord, name, options, func); |
|
|
|
|
|
|
|
|
internal SocketGuildChannel AddChannel(ClientState state, ChannelModel model) |
|
|
internal SocketGuildChannel AddChannel(ClientState state, ChannelModel model) |
|
|
{ |
|
|
{ |
|
@@ -1069,8 +1070,8 @@ namespace Discord.WebSocket |
|
|
async Task<IVoiceChannel> IGuild.CreateVoiceChannelAsync(string name, Action<VoiceChannelProperties> func, RequestOptions options) |
|
|
async Task<IVoiceChannel> IGuild.CreateVoiceChannelAsync(string name, Action<VoiceChannelProperties> func, RequestOptions options) |
|
|
=> await CreateVoiceChannelAsync(name, func, options).ConfigureAwait(false); |
|
|
=> await CreateVoiceChannelAsync(name, func, options).ConfigureAwait(false); |
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
async Task<ICategoryChannel> IGuild.CreateCategoryAsync(string name, RequestOptions options) |
|
|
|
|
|
=> await CreateCategoryChannelAsync(name, options).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
async Task<ICategoryChannel> IGuild.CreateCategoryAsync(string name, Action<GuildChannelProperties> func, RequestOptions options) |
|
|
|
|
|
=> await CreateCategoryChannelAsync(name, func, options).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
async Task<IReadOnlyCollection<IVoiceRegion>> IGuild.GetVoiceRegionsAsync(RequestOptions options) |
|
|
async Task<IReadOnlyCollection<IVoiceRegion>> IGuild.GetVoiceRegionsAsync(RequestOptions options) |
|
|