Search Results for

    Show / Hide Table of Contents

    Class InviteCreateAuditLogData

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

    Inheritance
    Object
    InviteCreateAuditLogData
    Implements
    IAuditLogData
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class InviteCreateAuditLogData : object, IAuditLogData

    Properties

    | Improve this Doc View Source

    ChannelId

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

    Declaration
    public ulong ChannelId { get; }
    Property Value
    Type Description
    UInt64

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

    | Improve this Doc View Source

    Code

    Gets the unique identifier for this invite.

    Declaration
    public string Code { get; }
    Property Value
    Type Description
    String

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

    | Improve this Doc View Source

    Creator

    Gets the user that created this invite if available.

    Declaration
    public IUser Creator { get; }
    Property Value
    Type Description
    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.

    | Improve this Doc View Source

    MaxAge

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

    Declaration
    public int MaxAge { get; }
    Property Value
    Type Description
    Int32

    An representing the time in seconds until this invite expires.

    | Improve this Doc View Source

    MaxUses

    Gets the max number of uses this invite may have.

    Declaration
    public int MaxUses { get; }
    Property Value
    Type Description
    Int32

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

    | Improve this Doc View Source

    Temporary

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

    Declaration
    public bool Temporary { get; }
    Property Value
    Type Description
    Boolean

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

    | Improve this Doc View Source

    Uses

    Gets the number of times this invite has been used.

    Declaration
    public int Uses { get; }
    Property Value
    Type Description
    Int32

    An representing the number of times this invite was used.

    Implements

    IAuditLogData

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2