diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketNewsChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketNewsChannel.cs index 3052fc82a..f84c35cae 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketNewsChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketNewsChannel.cs @@ -9,6 +9,11 @@ namespace Discord.WebSocket /// /// Represents a WebSocket-based news channel in a guild that has the same properties as a . /// + /// + /// + /// Most of the properties and methods featured may not be supported due to the nature of the channel. + /// + /// [DebuggerDisplay(@"{DebuggerDisplay,nq}")] public class SocketNewsChannel : SocketTextChannel { @@ -22,31 +27,61 @@ namespace Discord.WebSocket entity.Update(state, model); return entity; } + /// + /// + /// + /// This property is not supported by this type. Attempting to use this property will result in a . + /// + /// public override int SlowModeInterval - { - get { throw new NotSupportedException("News channels do not support Slow Mode."); } - } + => throw new NotSupportedException("News channels do not support Slow Mode."); + /// + /// + /// + /// This method is not supported by this type. Attempting to use this method will result in a . + /// + /// public override Task AddPermissionOverwriteAsync(IRole role, OverwritePermissions permissions, RequestOptions options = null) - { - throw new NotSupportedException("News channels do not support Overwrite Permissions."); - } + => throw new NotSupportedException("News channels do not support Overwrite Permissions."); + /// + /// + /// + /// This method is not supported by this type. Attempting to use this method will result in a . + /// + /// public override Task AddPermissionOverwriteAsync(IUser user, OverwritePermissions permissions, RequestOptions options = null) - { - throw new NotSupportedException("News channels do not support Overwrite Permissions."); - } + => throw new NotSupportedException("News channels do not support Overwrite Permissions."); + /// + /// + /// + /// This property is not supported by this type. Attempting to use this property will result in a . + /// + /// public override IReadOnlyCollection PermissionOverwrites => throw new NotSupportedException("News channels do not support Overwrite Permissions."); + /// + /// + /// + /// This method is not supported by this type. Attempting to use this method will result in a . + /// + /// public override Task SyncPermissionsAsync(RequestOptions options = null) - { - throw new NotSupportedException("News channels do not support Overwrite Permissions."); - } + => throw new NotSupportedException("News channels do not support Overwrite Permissions."); + /// + /// + /// + /// This method is not supported by this type. Attempting to use this method will result in a . + /// + /// public override Task RemovePermissionOverwriteAsync(IRole role, RequestOptions options = null) - { - throw new NotSupportedException("News channels do not support Overwrite Permissions."); - } + => throw new NotSupportedException("News channels do not support Overwrite Permissions."); + /// + /// + /// + /// This method is not supported by this type. Attempting to use this method will result in a . + /// + /// public override Task RemovePermissionOverwriteAsync(IUser user, RequestOptions options = null) - { - throw new NotSupportedException("News channels do not support Overwrite Permissions."); - } + => throw new NotSupportedException("News channels do not support Overwrite Permissions."); } }