Search Results for

    Show / Hide Table of Contents

    Class ComponentInfo

    Contains all the information about a component.

    Inheritance
    System.Object
    ComponentInfo
    Implements
    IComponentInfo
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Commands.Models.Info
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public class ComponentInfo : IComponentInfo

    Constructors

    | Improve this Doc View Source

    ComponentInfo(String, DiscordComponentType, MethodInfo, TypeInfo, Boolean, Boolean)

    Initializes a new instance of SlashCommandInfo.

    Declaration
    public ComponentInfo(string customId, DiscordComponentType type, MethodInfo componentMethod, TypeInfo parentModule, bool acknowledge, bool editOriginalMessage)
    Parameters
    Type Name Description
    System.String customId

    The custom id of the component.

    DiscordComponentType type

    The type of the component.

    System.Reflection.MethodInfo componentMethod

    The method of the component.

    System.Reflection.TypeInfo parentModule

    The parent module of the component.

    System.Boolean acknowledge

    Whether or not the component interaction should be automatically acknowledge to prevent the token from turning inactive after 3 seconds.

    System.Boolean editOriginalMessage

    Whether or not the original message of the component should be edited with the returned response.

    Properties

    | Improve this Doc View Source

    Acknowledge

    Whether or not the component interaction should be automatically acknowledge to prevent the token from turning inactive after 3 seconds.

    Declaration
    public bool Acknowledge { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ComponentMethod

    The System.Reflection.MethodInfo containing the method of the component.

    Declaration
    public MethodInfo ComponentMethod { get; set; }
    Property Value
    Type Description
    System.Reflection.MethodInfo
    | Improve this Doc View Source

    CustomId

    The custom ID of the component.

    Declaration
    public string CustomId { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    EditOriginalMessage

    Whether or not the original message of the component should be edited with the returned response.

    Declaration
    public bool EditOriginalMessage { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ParentModule

    The component module containing the ComponentMethod.

    Declaration
    public TypeInfo ParentModule { get; set; }
    Property Value
    Type Description
    System.Reflection.TypeInfo
    | Improve this Doc View Source

    Requirements

    A System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttributes containing all the requirements to execute the component.

    Declaration
    public IEnumerable<InteractionRequirementAttribute> Requirements { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<InteractionRequirementAttribute>
    | Improve this Doc View Source

    Type

    The type of the component.

    Declaration
    public DiscordComponentType Type { get; set; }
    Property Value
    Type Description
    DiscordComponentType

    Implements

    IComponentInfo
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX