Class SocketNewsChannel
Represents a WebSocket-based news channel in a guild that has the same properties as a SocketTextChannel.
public class SocketNewsChannel : SocketTextChannel, ISocketMessageChannel, INewsChannel, ITextChannel, IMessageChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
- Inheritance
-
SocketNewsChannel
- Implements
- Inherited Members
- Extension Methods
Remarks
warning
The SlowModeInterval property is not supported for news channels.
Properties
SlowModeInterval
Gets the current slow-mode delay for this channel.
public override int SlowModeInterval { get; }
Property Value
- int
An int representing the time in seconds required before the user can send another message;
0
if disabled.
Remarks
important
This property is not supported by this type. Attempting to use this property will result in a NotSupportedException.
Methods
FollowAnnouncementChannelAsync(ITextChannel, RequestOptions)
Follow this channel to send messages to a target channel.
public Task<ulong> FollowAnnouncementChannelAsync(ITextChannel channel, RequestOptions options = null)
Parameters
channel
ITextChanneloptions
RequestOptions
Returns
FollowAnnouncementChannelAsync(ulong, RequestOptions)
Follow this channel to send messages to a target channel.
public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)
Parameters
channelId
ulongoptions
RequestOptions