Table of Contents

Struct SocketInviteInfo

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents information for an invite.

public struct SocketInviteInfo
Inherited Members

Properties

ChannelId

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

public readonly ulong? ChannelId { get; }

Property Value

ulong?

A ulong representing the channel snowflake identifier that the invite points to; null if not specified.

Code

Gets the unique identifier for this invite.

public readonly string Code { get; }

Property Value

string

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

CreatorId

Gets the id of the user created this invite.

public readonly ulong? CreatorId { get; }

Property Value

ulong?

MaxAge

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

public readonly int? MaxAge { get; }

Property Value

int?

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

MaxUses

Gets the max number of uses this invite may have.

public readonly 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 specified.

Temporary

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

public readonly bool? Temporary { get; }

Property Value

bool?

true if users accepting this invite will be removed from the guild when they log off, false if not; null if not specified.