Table of Contents

Class DMChannel

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

Constructors

DMChannel(JsonChannel, RestClient)

public DMChannel(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Properties

Users

public IReadOnlyDictionary<ulong, User> Users { get; }

Property Value

IReadOnlyDictionary<ulong, User>

Methods

CreateFromJson(JsonChannel, RestClient)

public static DMChannel CreateFromJson(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Returns

DMChannel

DeleteAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<DMChannel>

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<DMChannel>