mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user