Class ComponentInteractionModule
The base that should be used for all component modules.
Implements
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.Modules
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public class ComponentInteractionModule : InteractionModuleBase, IComponentInteractionModule
Properties
| Improve this Doc View SourceContext
The current context the component interaction.
Declaration
protected IComponentContext Context { get; set; }
Property Value
Type | Description |
---|---|
IComponentContext |
Methods
| Improve this Doc View SourceSetContext(IComponentContext)
Set the current IComponentContext for a component.
Declaration
public void SetContext(IComponentContext context)
Parameters
Type | Name | Description |
---|---|---|
IComponentContext | context | The new IComponentContext. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | When the given context was null. |