-
-
Notifications
You must be signed in to change notification settings - Fork 480
Adding file and files keyword arguments to discord.Message.edit #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added edit_files and edit_multipart_helper functions
Added file and files keyword arguments into the edit function Edited docstrings for the file and files keyword arguments
Added an extra edit function with overload decorator, with file and files keyword arguments
Default value for file and files keyword argument changed from None to MISSING
state.http.edit_files -> self._state.http.edit_files
channel.id -> self.channel.id
Reedited and simplified message.py
Reedited and simplified http.py
zeffo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
EnokiUN
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just add comments to make it clear what you're doing.
Basically the same as send_files but changing route method to 'PATCH' and also handles some missing arguments. |
|
It's pretty straightforward comments aren't really necessary imo |
|
These are not to be used manually, so as Zeffo said comments are not necessary. |
BobDotCom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge the head branch into this so checks can run correctly
Head branch was pushed to by a user without write access
Summary
Added file and files keyword arguments to discord.Message.edit
file: Sequence[:class:
File]To add a new file to the message
files: List[Sequence[:class:
File]]To add new files to the message
Checklist
Note
Test it out before merging, there might be other errors.