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
JsonChannelclient
RestClient
Properties
ApplicationId
public ulong? ApplicationId { get; }
Property Value
IconHash
public string? IconHash { get; }
Property Value
Managed
public bool Managed { get; }
Property Value
Name
public string Name { get; }
Property Value
OwnerId
public ulong OwnerId { get; }
Property Value
Methods
AddUserAsync(ulong, GroupDMChannelUserAddProperties, RestRequestProperties?, CancellationToken)
public Task AddUserAsync(ulong userId, GroupDMChannelUserAddProperties groupDMChannelUserAddProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulonggroupDMChannelUserAddProperties
GroupDMChannelUserAddPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<GroupDMChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteUserAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteUserAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(RestRequestProperties?, CancellationToken)
public Task<GroupDMChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAsync(Action<GroupDMChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<GroupDMChannel> ModifyAsync(Action<GroupDMChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GroupDMChannelOptions>properties
RestRequestPropertiescancellationToken
CancellationToken