'args' attribute of 'Command.CommandObj' seems not working #556
Labels
bug
Something is wrong with the framework
good first issue
A good place to start contributing to this project without going too deep.
Milestone
Context
Expected Behavior
command.args
returns arguments of commandCurrent Behavior
command.args
returnsNone
Failure Information (for bugs)
It seems the
args
attribute is not working.Digging into
dispatcher/filters/builtin.py
, I found nothing about setting this attribute, but after addingargs = text.split()[1]
and pass it to the construtor ofCommandObj
, it seems to work.I wonder if this is the intended behavior or am I getting it wrong?
I would be glad to open a PR if it's a mistake :)
Steps to Reproduce
Test command:
/test abc
Failure Logs
Output:
Command.CommandObj(prefix='/', command='test', mention='') None
The text was updated successfully, but these errors were encountered: