Interface IComponentInfo
Contains all the information about a component.
Namespace: Color_Chan.Discord.Commands.Models.Info
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface IComponentInfo
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
bool Acknowledge { get; }
Property Value
Type | Description |
---|---|
Boolean |
ComponentMethod
The System.Reflection.MethodInfo containing the method of the component.
Declaration
MethodInfo ComponentMethod { get; set; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
CustomId
The custom ID of the component.
Declaration
string CustomId { get; set; }
Property Value
Type | Description |
---|---|
String |
EditOriginalMessage
Whether or not the original message of the component should be edited with the returned response.
Declaration
bool EditOriginalMessage { get; }
Property Value
Type | Description |
---|---|
Boolean |
ParentModule
The component module containing the ComponentMethod.
Declaration
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
IEnumerable<InteractionRequirementAttribute> Requirements { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<InteractionRequirementAttribute> |
Type
The type of the component.
Declaration
DiscordComponentType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordComponentType |