From e9ef02e8f46824d04d97fdce760b9a65bded9211 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Tue, 3 Apr 2018 23:56:53 -0700 Subject: [PATCH] Remove redundant GetCategoryAsync methods from socket entities --- .../Entities/Channels/SocketTextChannel.cs | 4 ---- .../Entities/Channels/SocketVoiceChannel.cs | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs index bf20fe863..8a9398e27 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs @@ -124,10 +124,6 @@ namespace Discord.WebSocket public Task> GetWebhooksAsync(RequestOptions options = null) => ChannelHelper.GetWebhooksAsync(this, Discord, options); - // Categories - public Task GetCategoryAsync(RequestOptions options = null) - => ChannelHelper.GetCategoryAsync(this, Discord, options); - private string DebuggerDisplay => $"{Name} ({Id}, Text)"; internal new SocketTextChannel Clone() => MemberwiseClone() as SocketTextChannel; diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs index 50f61d135..8029697fa 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs @@ -56,9 +56,6 @@ namespace Discord.WebSocket return null; } - public Task GetCategoryAsync(RequestOptions options = null) - => ChannelHelper.GetCategoryAsync(this, Discord, options); - private string DebuggerDisplay => $"{Name} ({Id}, Voice)"; internal new SocketVoiceChannel Clone() => MemberwiseClone() as SocketVoiceChannel;