mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Core] Improve regionalformat docstrings (#5055)
* [Docs] Update regionalformat docs * [Core] Improve regionalformat docstrings
This commit is contained in:
parent
e124ae3c11
commit
439033ea28
@ -2736,7 +2736,7 @@ set globalregionalformat
|
|||||||
|
|
||||||
**Description**
|
**Description**
|
||||||
|
|
||||||
Changes bot's regional format. This is used for formatting date, time and numbers.
|
Changes the bot's regional format. This is used for formatting date, time and numbers.
|
||||||
|
|
||||||
``language_code`` can be any language code with country code included, e.g. ``en-US``, ``de-DE``, ``fr-FR``, ``pl-PL``, etc.
|
``language_code`` can be any language code with country code included, e.g. ``en-US``, ``de-DE``, ``fr-FR``, ``pl-PL``, etc.
|
||||||
Leave ``language_code`` empty to base regional formatting on bot's locale.
|
Leave ``language_code`` empty to base regional formatting on bot's locale.
|
||||||
@ -3055,7 +3055,7 @@ set regionalformat
|
|||||||
|
|
||||||
**Description**
|
**Description**
|
||||||
|
|
||||||
Changes bot's regional format in this server. This is used for formatting date, time and numbers.
|
Changes the bot's regional format in this server. This is used for formatting date, time and numbers.
|
||||||
|
|
||||||
``language_code`` can be any language code with country code included, e.g. ``en-US``, ``de-DE``, ``fr-FR``, ``pl-PL``, etc.
|
``language_code`` can be any language code with country code included, e.g. ``en-US``, ``de-DE``, ``fr-FR``, ``pl-PL``, etc.
|
||||||
Leave ``language_code`` empty to base regional formatting on bot's locale in this server.
|
Leave ``language_code`` empty to base regional formatting on bot's locale in this server.
|
||||||
|
|||||||
@ -2789,7 +2789,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def globalregionalformat(self, ctx: commands.Context, language_code: str = None):
|
async def globalregionalformat(self, ctx: commands.Context, language_code: str = None):
|
||||||
"""
|
"""
|
||||||
Changes bot's regional format. This is used for formatting date, time and numbers.
|
Changes the bot's regional format. This is used for formatting date, time and numbers.
|
||||||
|
|
||||||
`language_code` can be any language code with country code included, e.g. `en-US`, `de-DE`, `fr-FR`, `pl-PL`, etc.
|
`language_code` can be any language code with country code included, e.g. `en-US`, `de-DE`, `fr-FR`, `pl-PL`, etc.
|
||||||
Leave `language_code` empty to base regional formatting on bot's locale.
|
Leave `language_code` empty to base regional formatting on bot's locale.
|
||||||
@ -2831,7 +2831,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
@checks.guildowner_or_permissions(manage_guild=True)
|
@checks.guildowner_or_permissions(manage_guild=True)
|
||||||
async def regionalformat(self, ctx: commands.Context, language_code: str = None):
|
async def regionalformat(self, ctx: commands.Context, language_code: str = None):
|
||||||
"""
|
"""
|
||||||
Changes bot's regional format in this server. This is used for formatting date, time and numbers.
|
Changes the bot's regional format in this server. This is used for formatting date, time and numbers.
|
||||||
|
|
||||||
`language_code` can be any language code with country code included, e.g. `en-US`, `de-DE`, `fr-FR`, `pl-PL`, etc.
|
`language_code` can be any language code with country code included, e.g. `en-US`, `de-DE`, `fr-FR`, `pl-PL`, etc.
|
||||||
Leave `language_code` empty to base regional formatting on bot's locale in this server.
|
Leave `language_code` empty to base regional formatting on bot's locale in this server.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user