Context class Null safety
Contains data about a command's execution context.
- Implementers
Constructors
- Context({required CommandsPlugin commands, required IGuild? guild, required ITextChannel channel, required IMember? member, required IUser user, required Command command, required INyxx client})
- Construct a new Context
Properties
- arguments ↔ Iterable
-
The list of arguments parsed from this context.
late, final
- channel → ITextChannel
-
The channel in which this context was executed.
final
- client → INyxx
-
The INyxx client from which this command was dispatched
final
- command → Command
-
The command triggered in this context.
final
- commands → CommandsPlugin
-
The CommandsPlugin that triggered this context's execution.
final
- guild → IGuild?
-
The IGuild in which this context was executed, if any.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- member → IMember?
-
The member that triggered this context's execution, if any. [...]
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- user → IUser
-
The user that triggered this context's execution.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
respond(
MessageBuilder builder, {bool private = false}) → Future< IMessage> - Send a response to the command. This is the same as send but it references the original command. [...]
-
send(
MessageBuilder builder) → Future< IMessage> -
Send a message to this context's channel.
@Deprecated('Use context.respond(), or context.channel.sendMessage() instead')
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited