Skip to content

Commit

Permalink
Fix optional param being non-optional (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Misha-133 authored Mar 1, 2024
1 parent 2787db3 commit fa51f0a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/Discord.Net.Core/Entities/Channels/INewsChannel.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
using System.Threading.Tasks;

namespace Discord
namespace Discord;

/// <summary>
/// Represents a generic news channel in a guild that can send and receive messages.
/// </summary>
public interface INewsChannel : ITextChannel
{
/// <summary>
/// Represents a generic news channel in a guild that can send and receive messages.
/// Follow this channel to send messages to a target channel.
/// </summary>
public interface INewsChannel : ITextChannel
{
/// <summary>
/// Follow this channel to send messages to a target channel.
/// </summary>
/// <returns>
/// The Id of the created webhook.
/// </returns>
Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options);
}
/// <returns>
/// The Id of the created webhook.
/// </returns>
Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null);
}

0 comments on commit fa51f0a

Please sign in to comment.