Table of Contents

Class RestInvite

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class RestInvite : IInvite, IJsonModel<JsonRestInvite>
Inheritance
RestInvite
Implements
Inherited Members

Constructors

RestInvite(JsonRestInvite, RestClient)

public RestInvite(JsonRestInvite jsonModel, RestClient client)

Parameters

jsonModel JsonRestInvite
client RestClient

Properties

ApproximatePresenceCount

public int? ApproximatePresenceCount { get; }

Property Value

int?

ApproximateUserCount

public int? ApproximateUserCount { get; }

Property Value

int?

Channel

public Channel? Channel { get; }

Property Value

Channel

Code

public string Code { get; }

Property Value

string

CreatedAt

public DateTimeOffset? CreatedAt { get; }

Property Value

DateTimeOffset?

ExpiresAt

public DateTimeOffset? ExpiresAt { get; }

Property Value

DateTimeOffset?

Guild

public RestGuild? Guild { get; }

Property Value

RestGuild

GuildScheduledEvent

public GuildScheduledEvent? GuildScheduledEvent { get; }

Property Value

GuildScheduledEvent

Inviter

public User? Inviter { get; }

Property Value

User

MaxAge

public int? MaxAge { get; }

Property Value

int?

MaxUses

public int? MaxUses { get; }

Property Value

int?

StageInstance

public StageInstance? StageInstance { get; }

Property Value

StageInstance

TargetApplication

public Application? TargetApplication { get; }

Property Value

Application

TargetType

public InviteTargetType? TargetType { get; }

Property Value

InviteTargetType?

TargetUser

public User? TargetUser { get; }

Property Value

User

Temporary

public bool? Temporary { get; }

Property Value

bool?

Type

public InviteType Type { get; }

Property Value

InviteType

Uses

public int? Uses { get; }

Property Value

int?

Methods

DeleteGuildAsync(RestRequestProperties?, CancellationToken)

public Task<RestInvite> DeleteGuildAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestInvite>

GetGuildAsync(bool, bool, ulong?, RestRequestProperties?, CancellationToken)

public Task<RestInvite> GetGuildAsync(bool withCounts = false, bool withExpiration = false, ulong? guildScheduledEventId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

withCounts bool
withExpiration bool
guildScheduledEventId ulong?
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestInvite>