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
JsonChannelclient
RestClient
Properties
Users
public IReadOnlyDictionary<ulong, User> Users { get; }
Property Value
Methods
CreateFromJson(JsonChannel, RestClient)
public static DMChannel CreateFromJson(JsonChannel jsonModel, RestClient client)
Parameters
jsonModel
JsonChannelclient
RestClient
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<DMChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<DMChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken