Problem with strings in a command.
Created by: Kiritsu
Make sure you familiarize yourself with our contributing guidelines.
Summary
We have a command with one unique string parameter, with or without [RemainingText] attribute. Sometimes, the command will never being fired. That happened when I tried to put a YouTube link as a parameter of the command.
Details
.NET Core 2.0, Windows 10 Enterprise 2016 LTSB Using Visual Studio 2017 v15.6.4
DSharpPlus version : v4.0.0-beta-00439
There is no error, nothing threw up. I tried to subscribe to CommandErrored
event, it's not being fired when I try the command.
Steps to reproduce
Just use this command:
[Command("Test")]
public async Task Test(CommandContext ctx, string input)
{
await ctx.RespondAsync("Fired! `" + input + "`");
}
Admitting you have the following prefix: !
Try the commands:
!test
not fired.
!test a
fired
!test "a b c"
fired
!test a b c
fired because ignoring extra arguments
!test https://www.youtube.com/watch?v=dQw4w9WgXcQ
not fired
!test <https://www.youtube.com/watch?v=dQw4w9WgXcQ>
fired
I'd like to notice that !test https://www.youtube.com/watch?v=dQw4w9WgXcQ
worked once. Then, it never fired again (restarting the bot or not). As you can see here http://prntscr.com/j1cwdc it fired once, then it never fired again.
I already tried this : Discord view : http://prntscr.com/j1cz1p Console output : https://hastebin.com/kesezepizu.css