IChatCommandComponent class Null safety

An entity that is part of a chat command tree.

You might also be interested in:

Implemented types
Implementers

Constructors

IChatCommandComponent()

Properties

aliases Iterable<String>
The aliases for this entity.
read-only
checks Iterable<AbstractCheck>
The checks that should be applied to this entity.
read-onlyinherited
children Iterable<ICommandRegisterable<IChatContext>>
A list of all the children of this group
read-onlyinherited
description String
The description of this entity.
read-only
fullName String
The full name of this command.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hasSlashCommand bool
Whether this entity has a child entity that is a slash command or has a slash command itself.
read-only
localizedDescriptions Map<Locale, String>?
The localized descriptions of this entity.
read-only
localizedNames Map<Locale, String>?
The localized names of this child. Since you cannot add descriptions to UserCommand and MessageCommand, can't set localized descriptions too.
read-onlyinherited
name String
The name of this child.
read-onlyinherited
onPostCall Stream<IChatContext>
A stream that emits contexts after the command callback is executed.
read-onlyinherited
onPreCall Stream<IChatContext>
A stream that emits contexts before the command callback is executed.
read-onlyinherited
options CommandOptions
The options to use for this entity.
read-onlyinherited
parent ICommandGroup<IContext>?
The parent of this child.
read / writeinherited
resolvedOptions CommandOptions
Get the resolvec options for this child.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addCommand(ICommandRegisterable<IChatContext> command) → void
Add a command to this group.
inherited
check(AbstractCheck check) → void
Add a check to this entity.
inherited
getCommand(StringView view) ICommand<IChatContext>?
Attempt to get a command from a string.
inherited
getOptions(CommandsPlugin commands) Iterable<CommandOptionBuilder>
Return the CommandOptionBuilders that represent this entity for slash command registration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
walkCommands() Iterable<ICommand<IChatContext>>
Returns an iterable that recursively iterates over all the ICommands in this group.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited