v1rbox / discox

Virbox Discord Bot community project ^_^

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<*arg> / [*arg] syntax returns empty string when no argument is given

xsnowstorm opened this issue · comments

Describe the bug
Commands that use a *arg return an empty string when the argument is not present.

To Reproduce
Steps to reproduce the behavior:

  1. Create a command with usage: [*test]
  2. Print the arguments when the command executes
  3. Run the command without any arguments
  4. [''] will be printed to the console

Expected behavior
It should be an empty array

Additional context
This causes the member type to raise an error (fixed)