Table of Contents

Class GroupDMChannel

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

Constructors

GroupDMChannel(JsonChannel, RestClient)

public GroupDMChannel(JsonChannel jsonModel, RestClient client)

Parameters

jsonModel JsonChannel
client RestClient

Properties

ApplicationId

public ulong? ApplicationId { get; }

Property Value

ulong?

IconHash

public string? IconHash { get; }

Property Value

string

Managed

public bool Managed { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

OwnerId

public ulong OwnerId { get; }

Property Value

ulong

Methods

AddUserAsync(ulong, GroupDMChannelUserAddProperties, RestRequestProperties?, CancellationToken)

public Task AddUserAsync(ulong userId, GroupDMChannelUserAddProperties groupDMChannelUserAddProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

userId ulong
groupDMChannelUserAddProperties GroupDMChannelUserAddProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

DeleteAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<GroupDMChannel>

DeleteUserAsync(ulong, RestRequestProperties?, CancellationToken)

public Task DeleteUserAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

userId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

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

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<GroupDMChannel>

ModifyAsync(Action<GroupDMChannelOptions>, RestRequestProperties?, CancellationToken)

public Task<GroupDMChannel> ModifyAsync(Action<GroupDMChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<GroupDMChannelOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<GroupDMChannel>