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> /// <summary>
/// Syncs the permission with the channel's parent (category). /// Syncs the permission with the channel's parent (category).
/// </summary> /// </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(); var args = new GuildChannelProperties();
func(args); func(args);
var apiArgs = new ModifyGuildChannelParams
var apiArgs = new API.Rest.ModifyGuildChannelParams
{ {
Name = args.Name, Name = args.Name,
Position = args.Position, Position = args.Position,
CategoryId = args.CategoryId CategoryId = args.CategoryId
}; };
if (args.SyncWithParent.IsSpecified && args.SyncWithParent.Value)
if (args.SyncWithCategory.IsSpecified && args.SyncWithCategory.Value)
{ {
var categoryChannel = await channel.GetCategoryAsync().ConfigureAwait(false); var categoryChannel = await channel.GetCategoryAsync().ConfigureAwait(false);
if (categoryChannel != null) if (categoryChannel != null)


Loading…
Cancel
Save