Table of Contents

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

IReadOnlyCollection<Attribute>

CommandService

获取底层交互服务。

public InteractionService CommandService { get; }

Property Value

InteractionService

ContextTypes

获取可以在其中执行此模块命令的上下文类型。

public IReadOnlyCollection<InteractionContextType> ContextTypes { get; }

Property Value

IReadOnlyCollection<InteractionContextType>

Description

获取此模块的描述。

public string? Description { get; }

Property Value

string

Name

获取此模块的名称。

public string Name { get; }

Property Value

string

Preconditions

获取此模块的前置条件集合。

public IReadOnlyCollection<PreconditionAttribute> Preconditions { get; }

Property Value

IReadOnlyCollection<PreconditionAttribute>

SlashCommands

获取在此模块中声明的斜线命令。

public IReadOnlyList<SlashCommandInfo> SlashCommands { get; }

Property Value

IReadOnlyList<SlashCommandInfo>