Table of Contents

Class AnnouncementGuildChannel

Namespace
NetCord
Assembly
NetCord.dll
public class AnnouncementGuildChannel : TextGuildChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
Inheritance
AnnouncementGuildChannel
Implements
Inherited Members

Constructors

AnnouncementGuildChannel(JsonChannel, ulong, RestClient)

public AnnouncementGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)

Parameters

jsonModel JsonChannel
guildId ulong
client RestClient

Methods

CrosspostMessageAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<RestMessage> CrosspostMessageAsync(ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

messageId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestMessage>

DeleteAsync(RestRequestProperties?, CancellationToken)

public Task<AnnouncementGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildChannel>

FollowAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<FollowedChannel> FollowAsync(ulong webhookChannelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

webhookChannelId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<FollowedChannel>

GetAsync(RestRequestProperties?, CancellationToken)

public Task<AnnouncementGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildChannel>

ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)

public Task<AnnouncementGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<GuildChannelOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildChannel>