From bf2e988f3144c05889e726b4f4057eb6d758048d Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Thu, 30 May 2019 13:48:39 -0700 Subject: [PATCH] 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. --- src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs b/src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs index e7203a426..8f2d2111e 100644 --- a/src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs +++ b/src/Discord.Net.Core/Entities/Users/GuildUserProperties.cs @@ -67,11 +67,11 @@ namespace Discord /// public Optional Channel { get; set; } /// - /// Moves a user to a voice channel. If null, this user will be disconnected from their current voice channel. + /// Moves a user to a voice channel. Set to null to disconnect this user from their current voice channel. /// /// /// This user MUST already be in a for this to work. /// - public Optional ChannelId { get; set; } + public Optional ChannelId { get; set; } // TODO: v3 breaking change, change ChannelId to ulong? to allow for kicking users from voice } }