docs: September 2019 Documentation Update (#1379)
* docs: adjust wording of ActivityType.Watching enum Adjusts the xmldoc summary wording of the ActivityType.Watching enum to fix a wording issue. * Add D.NET Logo to Open Graph meta tags * Update DescriptionGenerator ...And update color to suit the logo better * Disable smooth scrolling due to user complaints * Remove unnecessary spacing in sideaffix * Update footer version * Remove featherlight plugin As it is unnecessary and can break image tags * Adjust wordings regarding safe-handling of secrets * Fix formatting for first bot token sample * Add badges to homepage * Minor wording fixes on terminal * Update to higher quality PNG * Add Discord.Net.Example in sln for build validation * Clarify all instances of IAsnycEnumerable * Clarify overridden props in SocketNewsChannel * Add returns and params docs for SyncPermissionsAsync * Remove/fix invalid XMLdoc strings * Remove AppVeyor and add GitHub badge
This commit is contained in:
@@ -9,6 +9,11 @@ namespace Discord.WebSocket
|
||||
/// <summary>
|
||||
/// Represents a WebSocket-based news channel in a guild that has the same properties as a <see cref="SocketTextChannel"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <note type="warning">
|
||||
/// Most of the properties and methods featured may not be supported due to the nature of the channel.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
|
||||
public class SocketNewsChannel : SocketTextChannel
|
||||
{
|
||||
@@ -22,31 +27,61 @@ namespace Discord.WebSocket
|
||||
entity.Update(state, model);
|
||||
return entity;
|
||||
}
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This property is not supported by this type. Attempting to use this property will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This method is not supported by this type. Attempting to use this method will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This method is not supported by this type. Attempting to use this method will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This property is not supported by this type. Attempting to use this property will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
public override IReadOnlyCollection<Overwrite> PermissionOverwrites
|
||||
=> throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This method is not supported by this type. Attempting to use this method will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This method is not supported by this type. Attempting to use this method will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// <note type="important">
|
||||
/// This method is not supported by this type. Attempting to use this method will result in a <see cref="NotSupportedException"/>.
|
||||
/// </note>
|
||||
/// </remarks>
|
||||
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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user