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
JsonChannelguildId
ulongclient
RestClient
Methods
CrosspostMessageAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> CrosspostMessageAsync(ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
messageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<AnnouncementGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
FollowAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<FollowedChannel> FollowAsync(ulong webhookChannelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookChannelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<AnnouncementGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<AnnouncementGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildChannelOptions>properties
RestRequestPropertiescancellationToken
CancellationToken