mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
exta info in docs about context attrs (#3151)
* exta info in docs about context attrs * changelog * slight addition for clarity
This commit is contained in:
@@ -20,6 +20,23 @@ class Context(commands.Context):
|
||||
All context passed into commands will be of this type.
|
||||
|
||||
This class inherits from `discord.ext.commands.Context`.
|
||||
|
||||
Attributes
|
||||
----------
|
||||
assume_yes: bool
|
||||
Whether or not interactive checks should
|
||||
be skipped and assumed to be confirmed.
|
||||
|
||||
This is intended for allowing automation of tasks.
|
||||
|
||||
An example of this would be scheduled commands
|
||||
not requiring interaction if the cog developer
|
||||
checks this value prior to confirming something interactively.
|
||||
|
||||
Depending on the potential impact of a command,
|
||||
it may still be appropriate not to use this setting.
|
||||
permission_state: PermState
|
||||
The permission state the current context is in.
|
||||
"""
|
||||
|
||||
def __init__(self, **attrs):
|
||||
|
||||
Reference in New Issue
Block a user