Browse Source

Rename to SyncWithCategory

pull/1016/head
Hsu Still 7 years ago
parent
commit
0fb4e1c71e
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Channels/GuildChannelProperties.cs
  2. +2
    -2
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Channels/GuildChannelProperties.cs View File

@@ -33,6 +33,6 @@ namespace Discord
/// <summary>
/// Syncs the permission with the channel's parent (category).
/// </summary>
public Optional<bool> SyncWithParent { get; set; }
public Optional<bool> SyncWithCategory { get; set; }
}
}

+ 2
- 2
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -26,13 +26,13 @@ namespace Discord.Rest
{
var args = new GuildChannelProperties();
func(args);
var apiArgs = new ModifyGuildChannelParams
var apiArgs = new API.Rest.ModifyGuildChannelParams
{
Name = args.Name,
Position = args.Position,
CategoryId = args.CategoryId
};
if (args.SyncWithParent.IsSpecified && args.SyncWithParent.Value)
if (args.SyncWithCategory.IsSpecified && args.SyncWithCategory.Value)
{
var categoryChannel = await channel.GetCategoryAsync().ConfigureAwait(false);
if (categoryChannel != null)


Loading…
Cancel
Save