Class ModuleInfo
- Namespace
- HeyBox.Interactions
- Assembly
- HeyBox.Net.Interactions.dll
表示交互模块的信息。
public class ModuleInfo
- Inheritance
-
ModuleInfo
- Inherited Members
Properties
Attributes
获取此模块的属性集合。
public IReadOnlyCollection<Attribute> Attributes { get; }
Property Value
CommandService
获取底层交互服务。
public InteractionService CommandService { get; }
Property Value
ContextTypes
获取可以在其中执行此模块命令的上下文类型。
public IReadOnlyCollection<InteractionContextType> ContextTypes { get; }
Property Value
Description
获取此模块的描述。
public string? Description { get; }
Property Value
Name
获取此模块的名称。
public string Name { get; }
Property Value
Preconditions
获取此模块的前置条件集合。
public IReadOnlyCollection<PreconditionAttribute> Preconditions { get; }
Property Value
SlashCommands
获取在此模块中声明的斜线命令。
public IReadOnlyList<SlashCommandInfo> SlashCommands { get; }