Table of Contents

Class InviteCreateAuditLogData

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

Contains a piece of audit log data related to an invite creation.

public class InviteCreateAuditLogData : IAuditLogData
Inheritance
InviteCreateAuditLogData
Implements
Inherited Members

Properties

ChannelId

Gets the ID of the channel this invite is linked to.

public ulong ChannelId { get; }

Property Value

ulong

A ulong representing the channel snowflake identifier that the invite points to.

Code

Gets the unique identifier for this invite.

public string Code { get; }

Property Value

string

A string containing the invite code (e.g. FTqNnyS).

Creator

Gets the user that created this invite if available.

public IUser Creator { get; }

Property Value

IUser

A user that created this invite or null.

Remarks

Will be null if the user is a 'Deleted User#....' because Discord does send user data for deleted users.

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.

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.

Temporary

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

public bool Temporary { get; }

Property Value

bool

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

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 was used.