From fa51f0a86f3497ee9e05ebb845787ee94357baf9 Mon Sep 17 00:00:00 2001 From: Mihail Gribkov <61027276+Misha-133@users.noreply.github.com> Date: Sat, 2 Mar 2024 01:06:46 +0300 Subject: [PATCH] Fix optional param being non-optional (#2869) --- .../Entities/Channels/INewsChannel.cs | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Channels/INewsChannel.cs b/src/Discord.Net.Core/Entities/Channels/INewsChannel.cs index b3c9fe8e07..7a94ac83bc 100644 --- a/src/Discord.Net.Core/Entities/Channels/INewsChannel.cs +++ b/src/Discord.Net.Core/Entities/Channels/INewsChannel.cs @@ -1,18 +1,17 @@ using System.Threading.Tasks; -namespace Discord +namespace Discord; + +/// +/// Represents a generic news channel in a guild that can send and receive messages. +/// +public interface INewsChannel : ITextChannel { /// - /// Represents a generic news channel in a guild that can send and receive messages. + /// Follow this channel to send messages to a target channel. /// - public interface INewsChannel : ITextChannel - { - /// - /// Follow this channel to send messages to a target channel. - /// - /// - /// The Id of the created webhook. - /// - Task FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options); - } + /// + /// The Id of the created webhook. + /// + Task FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null); }