mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Docs] Adds self recommendation to cog_data_path (#2539)
This change adds the help text of "If calling from a command or method of your cog, this should be self." from `bundled_data_path` to `cog_data_path`. This bit of text can help people who are unsure of what a "cog instance" is to understand how to use `cog_data_path`.
This commit is contained in:
parent
de7d08ee75
commit
14a2f98418
@ -112,7 +112,8 @@ def cog_data_path(cog_instance=None, raw_name: str = None) -> Path:
|
|||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
cog_instance
|
cog_instance
|
||||||
The instance of the cog you wish to get a data path for.
|
The instance of the cog you wish to get a data path for.
|
||||||
|
If calling from a command or method of your cog, this should be ``self``.
|
||||||
raw_name : str
|
raw_name : str
|
||||||
The name of the cog to get a data path for.
|
The name of the cog to get a data path for.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user