You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- // Input:
- // !echo Coffee Cake
-
- // Output:
- // Coffee Cake
- [Command("echo")]
- public Task EchoRemainderAsync([Remainder]string text) => ReplyAsync(text);
-
- // Output:
- // CommandError.BadArgCount
- [Command("echo-hassle")]
- public Task EchoAsync(string text) => ReplyAsync(text);
-
- // The message would be seen as having 5 parameters, while the method
- // only accepts one. Wrapping the message in quotes solves this.
- // This way, the system knows the entire message is to be parsed as a
- // single String.
- // e.g.
- // !echo "Coffee Cake"
|