Browse Source

Merge pull request #479 from AntiTcb/patch-1

Unparsed -> Remainder in example.
tags/1.0-rc
Christopher F GitHub 8 years ago
parent
commit
fbc32b3dc4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/samples/module.cs

+ 2
- 2
docs/guides/samples/module.cs View File

@@ -7,7 +7,7 @@ public class Info : ModuleBase
{
// ~say hello -> hello
[Command("say"), Summary("Echos a message.")]
public async Task Say([Unparsed, Summary("The text to echo")] string echo)
public async Task Say([Remainder, Summary("The text to echo")] string echo)
{
// ReplyAsync is a method on ModuleBase
await ReplyAsync(echo);
@@ -39,4 +39,4 @@ public class Sample : ModuleBase
var userInfo = user ?? Context.Client.CurrentUser;
await ReplyAsync($"{userInfo.Username}#{userInfo.Discriminator}");
}
}
}

Loading…
Cancel
Save