Skip to content

Commit

Permalink
Fixed bug with contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Jul 2, 2018
1 parent 0576d4e commit 3e936ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/commands-example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class EchoCommand extends command.Command {

@override
run() async {
await context.message.channel.sendMessage(content: message.content);
await context.message.channel.sendMessage(content: context.message.content);
}
}

Expand All @@ -49,6 +49,6 @@ class AliasCommand extends command.Command {

@override
run() async {
await context.message.channel.sendMessage(content: message.content);
await context.message.channel.sendMessage(content: context.message.content);
}
}

0 comments on commit 3e936ca

Please sign in to comment.