Browse Source

Fix ReadAsync for TypeReader example

pull/988/head
Hsu Still 7 years ago
parent
commit
2cf94bab35
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/commands/samples/typereader.cs

+ 1
- 1
docs/guides/commands/samples/typereader.cs View File

@@ -4,7 +4,7 @@ using Discord.Commands;


public class BooleanTypeReader : TypeReader public class BooleanTypeReader : TypeReader
{ {
public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services)
public override Task<TypeReaderResult> ReadAsync(ICommandContext context, string input, IServiceProvider services)
{ {
bool result; bool result;
if (bool.TryParse(input, out result)) if (bool.TryParse(input, out result))


Loading…
Cancel
Save