Fixed HandleCommand Error message

if (!result.IsSuccess)
    await msg.Channel.SendMessageAsync(result.ErrorReason);
}
msg -> context
This commit is contained in:
Evan Sours
2016-12-03 17:02:08 -07:00
committed by GitHub
parent d8c0f0aa4c
commit dd9ae6e870

View File

@@ -50,7 +50,7 @@ public class Program
// rather an object stating if the command executed succesfully)
var result = await commands.ExecuteAsync(context, argPos, map);
if (!result.IsSuccess)
await msg.Channel.SendMessageAsync(result.ErrorReason);
await context.Channel.SendMessageAsync(result.ErrorReason);
}
}
}