Table of Contents

Class RestInviteMetadata

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents additional information regarding the REST-based invite object.

public class RestInviteMetadata : RestInvite, IUpdateable, IInviteMetadata, IInvite, IEntity<string>, IDeletable
Inheritance
RestInviteMetadata
Implements
Inherited Members

Properties

CreatedAt

Gets when this invite was created.

public DateTimeOffset? CreatedAt { get; }

Property Value

DateTimeOffset?

A DateTimeOffset representing the time of which the invite was first created.

IsTemporary

Gets a value that indicates whether the invite is a temporary one.

public bool IsTemporary { get; }

Property Value

bool

true if users accepting this invite will be removed from the guild when they log off; otherwise false.

MaxAge

Gets the time (in seconds) until the invite expires.

public int? MaxAge { get; }

Property Value

int?

An int representing the time in seconds until this invite expires; null if this invite never expires.

MaxUses

Gets the max number of uses this invite may have.

public int? MaxUses { get; }

Property Value

int?

An int representing the number of uses this invite may be accepted until it is removed from the guild; null if none is set.

Uses

Gets the number of times this invite has been used.

public int? Uses { get; }

Property Value

int?

An int representing the number of times this invite has been used.