MessageContext class Null safety

Represents a Context triggered by a message sent in a text channel.



MessageContext({required CommandsPlugin commands, required IGuild? guild, required ITextChannel channel, required IMember? member, required IUser user, required Command command, required INyxx client, required String prefix, required IMessage message, required String rawArguments})
Construct a new MessageContext


arguments Iterable
The list of arguments parsed from this context.
late, final, inherited
channel ITextChannel
The channel in which this context was executed.
final, inherited
client INyxx
The INyxx client from which this command was dispatched
final, inherited
command Command
The command triggered in this context.
final, inherited
commands CommandsPlugin
The CommandsPlugin that triggered this context's execution.
final, inherited
guild IGuild?
The IGuild in which this context was executed, if any.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
member IMember?
The member that triggered this context's execution, if any. [...]
final, inherited
message IMessage
The IMessage that triggered this context's execution.
prefix String
The prefix that triggered this context's execution.
rawArguments String
The raw String that was used to parse this context's arguments, i.e the messages content with prefix and command Command.fullName stripped.
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, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
respond(MessageBuilder builder, {bool mention = true, 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 instead'), inherited
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]