From 89d474a734f34be21137bd150a56a4c15b120e75 Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Fri, 14 Jul 2017 12:28:24 +0800 Subject: [PATCH] Added IServiceProvider --- docs/guides/commands/samples/typereader.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/commands/samples/typereader.cs b/docs/guides/commands/samples/typereader.cs index b21e6c15a..d2864a4c7 100644 --- a/docs/guides/commands/samples/typereader.cs +++ b/docs/guides/commands/samples/typereader.cs @@ -4,12 +4,12 @@ using Discord.Commands; public class BooleanTypeReader : TypeReader { - public override Task Read(CommandContext context, string input) + public override Task Read(ICommandContext context, string input, IServiceProvider services) { bool result; if (bool.TryParse(input, out result)) return Task.FromResult(TypeReaderResult.FromSuccess(result)); - - return Task.FromResult(TypeReaderResult.FromError(CommandError.ParseFailed, "Input could not be parsed as a boolean.")) + + return Task.FromResult(TypeReaderResult.FromError(CommandError.ParseFailed, "Input could not be parsed as a boolean.")); } -} \ No newline at end of file +}