This provides a better typing experience & allows the user to pass content positionally (better for user accounts) or via a keyword-argument (discord.py-compatible & good for consistency).
To-do
[ ] ChatMessage.create_thread
[ ] Messageable.create_thread
[x] User.send
[ ] Reply.reply
[ ] Reply.edit
[ ] Doc.edit
[ ] Doc.reply
[ ] DocsChannel.create_doc
[ ] ForumTopic.reply
[ ] ForumTopic.edit
[x] ForumChannel.create_topic
[ ] Announcement.reply
[ ] Announcement.edit
[ ] AnnouncementChannel.create_announcement
[ ] Media.reply
[x] ListItem.edit
This was a breaking change that changed how editing list item notes worked with this method. ListItemNote.edit should be used instead, but a new note_content can also be passed to ListItem.edit.
Primer
Currently, most methods fitting this description have a signature like this:
... Which is not great for usability. The optimal signature is seen in methods like
Messageable.send
andChatMessage.edit
:This provides a better typing experience & allows the user to pass content positionally (better for user accounts) or via a keyword-argument (discord.py-compatible & good for consistency).
To-do
ChatMessage.create_thread
Messageable.create_thread
User.send
Reply.reply
Reply.edit
Doc.edit
Doc.reply
DocsChannel.create_doc
ForumTopic.reply
ForumTopic.edit
ForumChannel.create_topic
Announcement.reply
Announcement.edit
AnnouncementChannel.create_announcement
Media.reply
ListItem.edit
ListItemNote.edit
should be used instead, but a newnote_content
can also be passed toListItem.edit
.ListItem.create_item
ListItemNote.edit
ListChannel.create_item