From 3e936ca5dde0967e2d081b753a15053e17429aeb Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Mon, 2 Jul 2018 07:33:38 +0200 Subject: [PATCH] Fixed bug with contexts --- example/commands-example.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/commands-example.dart b/example/commands-example.dart index 0b4a8a2c3..e87e0f2c1 100644 --- a/example/commands-example.dart +++ b/example/commands-example.dart @@ -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); } } @@ -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); } }