Table of Contents

Class ApplicationGuildChannel

Namespace
NetCord
Assembly
NetCord.dll

Represents an application channel.

public class ApplicationGuildChannel : TextGuildChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
Inheritance
ApplicationGuildChannel
Implements
Inherited Members

Constructors

ApplicationGuildChannel(JsonChannel, ulong, RestClient)

Represents an application channel.

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

Parameters

jsonModel JsonChannel
guildId ulong
client RestClient

Properties

ApplicationId

The bound application's ID.

public ulong? ApplicationId { get; }

Property Value

ulong?

Remarks

null when the bound application has been removed from the guild.

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

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

Parameters

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<ApplicationGuildChannel>

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

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

Parameters

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<ApplicationGuildChannel>

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

Modifies a guild channel's properties.

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

Parameters

action Action<GuildChannelOptions>

An action delegate used to configure the updated channel options.

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task<ApplicationGuildChannel>