mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
parent
df5cfabfe5
commit
153f4d20f1
1
changelog.d/3151.docs.rst
Normal file
1
changelog.d/3151.docs.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Document additional attributes in Context
|
||||||
@ -20,6 +20,23 @@ class Context(commands.Context):
|
|||||||
All context passed into commands will be of this type.
|
All context passed into commands will be of this type.
|
||||||
|
|
||||||
This class inherits from `discord.ext.commands.Context`.
|
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):
|
def __init__(self, **attrs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user