Class SocketNewsChannel
Represents a WebSocket-based news channel in a guild that has the same properties as a SocketTextChannel.
Inheritance
SocketNewsChannel
Implements
Inherited Members
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketNewsChannel : SocketTextChannel, IEntity<ulong>, ISocketMessageChannel, INewsChannel, ITextChannel, IMessageChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
Remarks
warning
The SlowModeInterval property is not supported for news channels.
Properties
| Improve this Doc View SourceSlowModeInterval
Declaration
public override int SlowModeInterval { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Remarks
important
This property is not supported by this type. Attempting to use this property will result in a
Methods
| Improve this Doc View SourceFollowAnnouncementChannelAsync(ITextChannel, RequestOptions)
Follow this channel to send messages to a target channel.
Declaration
public Task<ulong> FollowAnnouncementChannelAsync(ITextChannel channel, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
ITextChannel | channel | |
RequestOptions | options |
Returns
Type | Description |
---|---|
Task<UInt64> | The Id of the created webhook. |
FollowAnnouncementChannelAsync(UInt64, RequestOptions)
Declaration
public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | channelId | |
RequestOptions | options |
Returns
Type | Description |
---|---|
Task<UInt64> |