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
jsonModelJsonChannelclientRestClient
Properties
Flags
public ChannelFlags Flags { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Methods
CreateFromJson(JsonChannel, RestClient)
public static Channel CreateFromJson(JsonChannel jsonChannel, RestClient client)
Parameters
jsonChannelJsonChannelclientRestClient
Returns
CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GoogleCloudPlatformStorageBucket>> CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties> buckets, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
bucketsIEnumerable<GoogleCloudPlatformStorageBucketProperties>propertiesRestRequestPropertiescancellationTokenCancellationToken
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
Deletes a channel.
public Task<Channel> 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<Channel> 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
ToString()
public override string ToString()
Returns
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
destinationSpan<char>charsWrittenintformatReadOnlySpan<char>providerIFormatProvider