Clarify documentation of modlog.create_case() (#4389)

This commit is contained in:
jack1142 2020-09-02 23:09:59 +02:00 committed by GitHub
parent b11359eebb
commit 0200c2cb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -818,7 +818,9 @@ async def create_case(
guild: discord.Guild guild: discord.Guild
The guild the action was taken in The guild the action was taken in
created_at: datetime 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 action_type: str
The type of action that was taken The type of action that was taken
user: Union[discord.User, discord.Member] user: Union[discord.User, discord.Member]
@ -828,7 +830,9 @@ async def create_case(
reason: Optional[str] reason: Optional[str]
The reason the action was taken The reason the action was taken
until: Optional[datetime] 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] channel: Optional[discord.TextChannel]
The channel the action was taken in The channel the action was taken in
""" """