mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 23:44:51 +00:00
Fix Filters.command ignoring commands with empty prefixes
This commit is contained in:
parent
74d07c6a28
commit
c9462911cf
1 changed files with 2 additions and 1 deletions
|
|
@ -183,6 +183,7 @@ class Filters:
|
|||
prefix (``str`` | ``list``, *optional*):
|
||||
A prefix or a list of prefixes as string the filter should look for.
|
||||
Defaults to "/" (slash). Examples: ".", "!", ["/", "!", "."].
|
||||
Can be None or "" (empty string) to allow commands with no prefix at all.
|
||||
|
||||
separator (``str``, *optional*):
|
||||
The command arguments separator. Defaults to " " (white space).
|
||||
|
|
@ -214,7 +215,7 @@ class Filters:
|
|||
else {c if case_sensitive
|
||||
else c.lower()
|
||||
for c in command},
|
||||
p=set(prefix),
|
||||
p=set(prefix) if prefix else {""},
|
||||
s=separator,
|
||||
cs=case_sensitive
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue