Table of Contents

Class RestNewsChannel

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a REST-based news channel in a guild that has the same properties as a RestTextChannel.

public class RestNewsChannel : RestTextChannel, IUpdateable, IRestMessageChannel, INewsChannel, ITextChannel, IMessageChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
Inheritance
RestNewsChannel
Implements
Inherited Members
Extension Methods

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.

Methods

FollowAnnouncementChannelAsync(ulong, RequestOptions)

Follow this channel to send messages to a target channel.

public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)

Parameters

channelId ulong
options RequestOptions

Returns

Task<ulong>

The Id of the created webhook.