Make command parameter non-optional

This commit is contained in:
Dan 2018-04-10 15:04:31 +02:00
parent 9165c7f591
commit 3b028698f7

View File

@ -32,7 +32,7 @@ class Filters:
text = build("Text", lambda _, m: bool(m.text and not m.text.startswith("/"))) text = build("Text", lambda _, m: bool(m.text and not m.text.startswith("/")))
@staticmethod @staticmethod
def command(command: str or list = list()): def command(command: str or list):
return build( return build(
"Command", "Command",
lambda _, m: bool( lambda _, m: bool(