Table of Contents

Class AnnouncementGuildThread

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

Constructors

AnnouncementGuildThread(JsonChannel, RestClient)

public AnnouncementGuildThread(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
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<AnnouncementGuildThread> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildThread>

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<AnnouncementGuildThread> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildThread>

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

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

Parameters

action Action<GuildChannelOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<AnnouncementGuildThread>