Fix optional param being non-optional (#2869)

This commit is contained in:
Mihail Gribkov
2024-03-02 01:06:46 +03:00
committed by GitHub
parent 2787db3eaa
commit fa51f0a86f

View File

@@ -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);
}