有一个带有多个参数的命令

Have a command with multiple arguments

<Command("add")>
Public Async Function cmdAdd(<Remainder> ByVal num1 As Integer, <Remainder> ByVal num2 As Integer) As Task

    Dim sum = num1 + num2
    Dim user = Context.User
    Dim channel = Context.Channel

    Await channel.SendMessageAsync($"{user.Mention} the sum of the two specified numbers are {sum}")

End Function

不一定是我的命令,但我想知道如何使命令具有多个参数。如果我删除 之后的所有内容,它会起作用,但一旦我添加另一个参数,它就不起作用。

现在阅读了相关文档并了解了 Remainder 属性的作用(你应该在发布问题之前完成),很明显你不应该在所有在这个上下文中,但是,在你应该使用它的上下文中,你应该只在最后一个参数上使用它。