Table of Contents

Class Channel

Namespace
NetCord
Assembly
NetCord.dll
public abstract class Channel : ClientEntity, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IEntity, ISpanFormattable, IFormattable
Inheritance
Channel
Implements
Derived
Inherited Members

Constructors

Channel(JsonChannel, RestClient)

protected Channel(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Properties

Flags

public ChannelFlags Flags { get; }

Property Value

ChannelFlags

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Methods

CreateFromJson(JsonChannel, RestClient)

public static Channel CreateFromJson(JsonChannel jsonChannel, RestClient client)

Parameters

jsonChannel JsonChannel
client RestClient

Returns

Channel

CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties>, RestRequestProperties?, CancellationToken)

public Task<IReadOnlyList<GoogleCloudPlatformStorageBucket>> CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties> buckets, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

buckets IEnumerable<GoogleCloudPlatformStorageBucketProperties>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IReadOnlyList<GoogleCloudPlatformStorageBucket>>

DeleteAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<Channel>

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<Channel>

ToString()

public override string ToString()

Returns

string

TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)

public override bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)

Parameters

destination Span<char>
charsWritten int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool