diff --git a/src/Discord.Net.Rest/Entities/Channels/RestVoiceChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestVoiceChannel.cs index a862f8671..ec52f0e86 100644 --- a/src/Discord.Net.Rest/Entities/Channels/RestVoiceChannel.cs +++ b/src/Discord.Net.Rest/Entities/Channels/RestVoiceChannel.cs @@ -64,21 +64,6 @@ namespace Discord.Rest public override Task CreateThreadAsync(string name, ThreadType type = ThreadType.PublicThread, ThreadArchiveDuration autoArchiveDuration = ThreadArchiveDuration.OneDay, IMessage message = null, bool? invitable = null, int? slowmode = null, RequestOptions options = null) => throw new InvalidOperationException("Cannot create a thread within a voice channel"); - /// - /// Cannot create a webhook within a voice channel. - public override Task CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null) - => throw new InvalidOperationException(); - - /// - /// Cannot get webhooks for a voice channel. - public override Task GetWebhookAsync(ulong id, RequestOptions options = null) - => throw new InvalidOperationException(); - - /// - /// Cannot get webhooks for a voice channel. - public override Task> GetWebhooksAsync(RequestOptions options = null) - => throw new InvalidOperationException(); - #endregion #region Invites diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs index 08cef7ab8..fc7fe7e41 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs @@ -104,22 +104,12 @@ namespace Discord.WebSocket /// Cannot create threads in voice channels. public override Task CreateThreadAsync(string name, ThreadType type = ThreadType.PublicThread, ThreadArchiveDuration autoArchiveDuration = ThreadArchiveDuration.OneDay, IMessage message = null, bool? invitable = null, int? slowmode = null, RequestOptions options = null) => throw new InvalidOperationException("Voice channels cannot contain threads."); + /// - /// Cannot create webhooks in voice channels. - public override Task CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null) - => throw new InvalidOperationException("Voice channels cannot contain webhooks."); - /// - /// Cannot modify text channel properties within a webhook. + /// Cannot modify text channel properties within a voice channel. public override Task ModifyAsync(Action func, RequestOptions options = null) => throw new InvalidOperationException("Cannot modify text channel properties for voice channels."); - /// - /// Cannot get webhooks for a voice channel. - public override Task GetWebhookAsync(ulong id, RequestOptions options = null) - => throw new InvalidOperationException("Cannot get webhooks for a voice channel."); - /// - /// Cannot get webhooks for a voice channel. - public override Task> GetWebhooksAsync(RequestOptions options = null) - => throw new InvalidOperationException("Cannot get webhooks for a voice channel."); + #endregion #region Invites