Search Results for

    Show / Hide Table of Contents

    Class MessageInteraction<TUser>

    Represents a partial IDiscordInteraction within a message.

    Inheritance
    Object
    MessageInteraction<TUser>
    Implements
    IMessageInteraction
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public class MessageInteraction<TUser> : object, IMessageInteraction where TUser : IUser
    Type Parameters
    Name Description
    TUser

    The type of the user.

    Properties

    | Improve this Doc View Source

    Id

    Gets the snowflake id of the interaction.

    Declaration
    public ulong Id { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    Name

    Gets the name of the application command used.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Type

    Gets the type of the interaction.

    Declaration
    public InteractionType Type { get; }
    Property Value
    Type Description
    InteractionType
    | Improve this Doc View Source

    User

    Gets the TUser who invoked the interaction.

    Declaration
    public TUser User { get; }
    Property Value
    Type Description
    TUser

    Explicit Interface Implementations

    | Improve this Doc View Source

    IMessageInteraction.User

    Declaration
    IUser IMessageInteraction.User { get; }
    Returns
    Type Description
    IUser

    Implements

    IMessageInteraction

    Theme

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