[Feature] Follow news channels (#2590)
* initial commit * Apply suggestions from code review --------- Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Discord.Rest;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -36,5 +37,13 @@ namespace Discord.WebSocket
|
||||
public override int SlowModeInterval
|
||||
=> throw new NotSupportedException("News channels do not support Slow Mode.");
|
||||
|
||||
/// <inheritdoc cref="INewsChannel.FollowAnnouncementChannelAsync"/>
|
||||
public Task<ulong> FollowAnnouncementChannelAsync(ITextChannel channel, RequestOptions options = null)
|
||||
=> FollowAnnouncementChannelAsync(channel.Id, options);
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)
|
||||
=> ChannelHelper.FollowAnnouncementChannelAsync(this, channelId, Discord, options);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user