Browse Source

breaking workaround, revert ChannelId to ulong

This is a workaround to prevent this PR from being a breaking
change. Reverts the type of GuildUserProperties#ChannelId to a
ulong from a ulong?. Guild Users may no longer be kicked by
setting this property to null, but setting
GuildUserProperties#Channel should still work.
pull/1311/head
Chris Johnston 6 years ago
parent
commit
bf2e988f31
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs

+ 2
- 2
src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs View File

@@ -67,11 +67,11 @@ namespace Discord
/// </remarks> /// </remarks>
public Optional<IVoiceChannel> Channel { get; set; } public Optional<IVoiceChannel> Channel { get; set; }
/// <summary> /// <summary>
/// Moves a user to a voice channel. If <c>null</c>, this user will be disconnected from their current voice channel.
/// Moves a user to a voice channel. Set <see cref="Channel"/> to <c>null</c> to disconnect this user from their current voice channel.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work. /// This user MUST already be in a <see cref="IVoiceChannel"/> for this to work.
/// </remarks> /// </remarks>
public Optional<ulong?> ChannelId { get; set; }
public Optional<ulong> ChannelId { get; set; } // TODO: v3 breaking change, change ChannelId to ulong? to allow for kicking users from voice
} }
} }

Loading…
Cancel
Save