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
JsonChannelclient
RestClient
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
jsonChannel
JsonChannelclient
RestClient
Returns
CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GoogleCloudPlatformStorageBucket>> CreateGoogleCloudPlatformStorageBucketsAsync(IEnumerable<GoogleCloudPlatformStorageBucketProperties> buckets, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
buckets
IEnumerable<GoogleCloudPlatformStorageBucketProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<Channel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<Channel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
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
destination
Span<char>charsWritten
intformat
ReadOnlySpan<char>provider
IFormatProvider