At the commented line, add any parameter that's a proper substring of any of the valid parameters (ex. auto of autocomplete, channel of channel_types):
...
#[command(
"channel" = "seemingly any literal goes here" // where should've been "channel_types"
)]
...
Compile the following snippet in an appropriate namespace.
Expected Behaviour
The macros should throw a compile time error regarding invalid parameters in the command attribute of the CreateCommand and CommandModel macros.
Actual Behaviour
There are no errors being thrown during compilation time, and the invalid parameters are silently ignored in runtime.
Steps to Reproduce
auto
ofautocomplete
,channel
ofchannel_types
):Expected Behaviour
The macros should throw a compile time error regarding invalid parameters in the
command
attribute of theCreateCommand
andCommandModel
macros.Actual Behaviour
There are no errors being thrown during compilation time, and the invalid parameters are silently ignored in runtime.
Additional Info
twilight-interactions
Version:v0.15.0