Skip to content

Commit fe7fca6

Browse files
authored
Added extra edit function with overload decorator
Added an extra edit function with overload decorator, with file and files keyword arguments
1 parent 3557874 commit fe7fca6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

discord/message.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,22 @@ async def edit(
11561156
*,
11571157
content: Optional[str] = ...,
11581158
embed: Optional[Embed] = ...,
1159+
file: Optional[File] = ...,
1160+
attachments: List[Attachment] = ...,
1161+
suppress: bool = ...,
1162+
delete_after: Optional[float] = ...,
1163+
allowed_mentions: Optional[AllowedMentions] = ...,
1164+
view: Optional[View] = ...,
1165+
) -> Message:
1166+
...
1167+
1168+
@overload
1169+
async def edit(
1170+
self,
1171+
*,
1172+
content: Optional[str] = ...,
1173+
embed: Optional[Embed] = ...,
1174+
files: Optional[List[File]] = ...,
11591175
attachments: List[Attachment] = ...,
11601176
suppress: bool = ...,
11611177
delete_after: Optional[float] = ...,
@@ -1170,6 +1186,7 @@ async def edit(
11701186
*,
11711187
content: Optional[str] = ...,
11721188
embeds: List[Embed] = ...,
1189+
file: File = ...,
11731190
attachments: List[Attachment] = ...,
11741191
suppress: bool = ...,
11751192
delete_after: Optional[float] = ...,

0 commit comments

Comments
 (0)