mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Clarify documentation of modlog.create_case() (#4389)
This commit is contained in:
parent
b11359eebb
commit
0200c2cb3f
@ -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
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user