Browse Source

Removed un-needed comments.

pull/1530/head
Matt Smith 5 years ago
parent
commit
02b83babfa
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs
  2. +0
    -1
      src/Discord.Net.WebSocket/Entities/Messages/SocketUserMessage.cs

+ 0
- 1
src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs View File

@@ -152,7 +152,6 @@ namespace Discord.Rest
/// <exception cref="InvalidOperationException">This operation may only be called on a <see cref="RestNewsChannel"/> channel.</exception>
public async Task CrosspostAsync(RequestOptions options = null)
{
// Validate that the channel is of type RestNewsChannel
if (!(Channel is RestNewsChannel))
{
throw new InvalidOperationException("Publishing (crossposting) is only valid in news channels.");


+ 0
- 1
src/Discord.Net.WebSocket/Entities/Messages/SocketUserMessage.cs View File

@@ -152,7 +152,6 @@ namespace Discord.WebSocket
/// <exception cref="InvalidOperationException">This operation may only be called on a <see cref="SocketNewsChannel"/> channel.</exception>
public async Task CrosspostAsync(RequestOptions options = null)
{
// Validate that the channel is of type SocketNewsChannel
if (!(Channel is SocketNewsChannel))
{
throw new InvalidOperationException("Publishing (crossposting) is only valid in news channels.");


Loading…
Cancel
Save