From 0200c2cb3f2f08223fa2c74db6e72c03c0d5ecaf Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Wed, 2 Sep 2020 23:09:59 +0200 Subject: [PATCH] Clarify documentation of `modlog.create_case()` (#4389) --- redbot/core/modlog.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/redbot/core/modlog.py b/redbot/core/modlog.py index 0cf9af524..ba5e9135e 100644 --- a/redbot/core/modlog.py +++ b/redbot/core/modlog.py @@ -818,7 +818,9 @@ async def create_case( guild: discord.Guild The guild the action was taken in created_at: datetime - The time the action occurred at + The time the action occurred at. + If naive `datetime` object is passed, it's treated as a local time + (similarly to how Python treats naive `datetime` objects). action_type: str The type of action that was taken user: Union[discord.User, discord.Member] @@ -828,7 +830,9 @@ async def create_case( reason: Optional[str] The reason the action was taken until: Optional[datetime] - The time the action is in effect until + The time the action is in effect until. + If naive `datetime` object is passed, it's treated as a local time + (similarly to how Python treats naive `datetime` objects). channel: Optional[discord.TextChannel] The channel the action was taken in """