Replace _ with - in default command names
This commit is contained in:
parent
0a47d1929a
commit
adf28312df
@ -235,7 +235,7 @@ def new(name: PrefixType = None, *, help: str = None, aliases: AliasesType = Non
|
||||
else:
|
||||
func.__mb_get_name__ = lambda self: name
|
||||
else:
|
||||
func.__mb_get_name__ = lambda self: func.__mb_func__.__name__
|
||||
func.__mb_get_name__ = lambda self: func.__mb_func__.__name__.replace("_", "-")
|
||||
if callable(aliases):
|
||||
if len(inspect.getfullargspec(aliases).args) == 1:
|
||||
func.__mb_is_command_match__ = lambda self, val: aliases(val)
|
||||
|
Loading…
Reference in New Issue
Block a user