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
jsonModelJsonChannelguildIdulongclientRestClient
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
Deletes a channel.
public Task<MediaForumGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.
Returns
GetAsync(RestRequestProperties?, CancellationToken)
Retrieves a channel by its ID.
public Task<MediaForumGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.
Returns
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
actionAction<GuildChannelOptions>An action delegate used to configure the updated channel options.
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.