Search Results for

    Show / Hide Table of Contents

    Class ContextMenuInteractionCreateEventArgs

    The context menu interaction create event args.

    Inheritance
    System.Object
    System.EventArgs
    AsyncEventArgs
    DiscordEventArgs
    InteractionCreateEventArgs
    ContextMenuInteractionCreateEventArgs
    Inherited Members
    InteractionCreateEventArgs.Interaction
    DiscordEventArgs.ServiceProvider
    AsyncEventArgs.Handled
    Namespace: DisCatSharp.EventArgs
    Assembly: DisCatSharp.dll
    Syntax
    public sealed class ContextMenuInteractionCreateEventArgs : InteractionCreateEventArgs

    Constructors

    | Improve this Doc View Source

    ContextMenuInteractionCreateEventArgs(IServiceProvider)

    Initializes a new instance of the ContextMenuInteractionCreateEventArgs class.

    Declaration
    public ContextMenuInteractionCreateEventArgs(IServiceProvider provider)
    Parameters
    Type Name Description
    System.IServiceProvider provider

    The provider.

    Properties

    | Improve this Doc View Source

    TargetMessage

    The message this interaction targets, if applicable.

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

    TargetUser

    The user this interaction targets, if applicable.

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

    Type

    The type of context menu that was used. This is never ChatInput.

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

    User

    The user that invoked this interaction. Can be cast to a member if this was on a guild.

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

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems