CommandDefinitionBuilder class final
Constructors
Properties
- command → CommandDeclarationBuilder
-
final
- context → CommandContextType
-
Whether the command is registered globally or scoped to a single guild.
no setter
- declaration → CommandDeclarationBuilder?
-
The declarative option tree backing this command, used to discover
autocomplete handlers.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The command's name, or
nulluntil it has been set.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
configure<
T> (String key, dynamic fn(T)) → void -
Looks up the builder declared under
key(a root command, sub-command, or group sub-command key from the loaded definition) and hands it tofnfor further, programmatic configuration. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduceHandlers(
) → List< CommandRegistration> - The handler registrations (root command and/or dotted sub-command paths) this builder produces.
-
setHandler<
T extends CommandContext> (String key, CommandHandler< T> fn) → void -
toJson(
) → Map< String, dynamic> - The Discord API payload for this command.
-
toString(
) → String -
A string representation of this object.
inherited
-
using(
File file, {PlaceholderContract? placeholder}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited