Class SocketInviteCreateAuditLogData
Contains a piece of audit log data related to an invite creation.
public class SocketInviteCreateAuditLogData : ISocketAuditLogData, IAuditLogData
- Inheritance
-
SocketInviteCreateAuditLogData
- Implements
- Inherited Members
Properties
ChannelId
Gets the ID of the channel this invite is linked to.
public ulong ChannelId { get; }
Property Value
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 Cacheable<SocketUser, RestUser, IUser, ulong>? Creator { get; }
Property Value
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
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; }