Class ComponentInfo
Contains all the information about a component.
Inheritance
Implements
Inherited Members
Namespace: Color_Chan.Discord.Commands.Models.Info
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public class ComponentInfo : IComponentInfo
Constructors
| Improve this Doc View SourceComponentInfo(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 SourceAcknowledge
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 |
ComponentMethod
The System.Reflection.MethodInfo containing the method of the component.
Declaration
public MethodInfo ComponentMethod { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
CustomId
The custom ID of the component.
Declaration
public string CustomId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
ParentModule
The component module containing the ComponentMethod.
Declaration
public TypeInfo ParentModule { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.TypeInfo |
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> |
Type
The type of the component.
Declaration
public DiscordComponentType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordComponentType |