[Commands] Adds support for non interactive use (#2746)

Adds assume_yes to context
Changes cleanup's 100+ check
Changes cog update.
This commit is contained in:
DiscordLiz
2019-05-31 05:54:27 -04:00
committed by Michael H
parent 2cb6e98092
commit e7b615d921
3 changed files with 34 additions and 26 deletions

View File

@@ -23,6 +23,7 @@ class Context(commands.Context):
"""
def __init__(self, **attrs):
self.assume_yes = attrs.pop("assume_yes", False)
super().__init__(**attrs)
self.permission_state: PermState = PermState.NORMAL