Table of Contents

Class MediaForumGuildChannel

Namespace
NetCord
Assembly
NetCord.dll

Represents a media channel, which is a specialized ForumGuildChannel.

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

Constructors

MediaForumGuildChannel(JsonChannel, ulong, RestClient)

Represents a media channel, which is a specialized ForumGuildChannel.

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

Parameters

jsonModel JsonChannel
guildId ulong
client RestClient

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Deletes a channel.

public Task<MediaForumGuildChannel> 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<MediaForumGuildChannel>

GetAsync(RestRequestProperties?, CancellationToken)

Retrieves a channel by its ID.

public Task<MediaForumGuildChannel> 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<MediaForumGuildChannel>

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

Modifies a guild channel's properties.

public Task<MediaForumGuildChannel> 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<MediaForumGuildChannel>