Bot class
What the server knows about a bot in a channel.
Constructors
-
Bot({required String nick, required String? id, required bool from_config, required List<
BotCommand> commands}) -
const
-
Bot.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
commands
→ List<
BotCommand> -
The commands it offers.
final
- from_config → bool
-
True when an operator configured this bot, rather than it registering itself.
Only a configured bot may claim a privileged command name. A bot that registered itself has
those names stripped, so it cannot shadow
operoridentify.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The identifier the server gave it.
final
- nick → String
-
The bot's nick.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited