aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix crashes when Message.guild is ObjectRapptz2020-02-161-2/+2
|
* Explicitly check for guild objectMerlintor2020-01-261-1/+2
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-0/+6
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-3/+3
|
* Update attachment documentation for width/height applying to videos tooRapptz2020-01-201-2/+2
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Document NotFound exception raise in message deletion endpointsRapptz2020-01-181-0/+2
|
* Add support for clearing a specific reaction.Rapptz2020-01-171-0/+43
| | | | Closes #2440
* Add Attachment.to_file to easily send an attachment.Rapptz2020-01-031-0/+27
| | | | | | | | | | | | | | | The first thing someone will ask when someone sees this method is "Why doesn't `send` just accept `Attachment`?". This question is fair but it has an issue: exception propagation becomes confusing. When we save a file and write it to memory an HTTP request is sent similar to other API calls. Like all HTTP requests, these can fail. Since these requests denote failure using HTTPException, if it were to originate within `send` then it becomes confusing to know whether the attachment saving itself failed or whether the sending failed. For that reason, and to keep in-line with only 1 type of HTTP call per method, it doesn't make sense for `send` to support `Attachment`.
* Remove unnecessary pass using regex in Message.clean_contentRapptz2019-12-251-12/+1
| | | | The utils.escape_mentions should deal with it
* Use discord.utils.escape_mentions as last step ofMichael H2019-12-251-1/+4
| | | | discord.Message.clean_content
* Implement discord.MessageFlagsNCPlayz2019-12-201-4/+34
| | | | Refactor flags placement and use it for suppression.
* Document the exception-suppressing behaviour of Message.deleteIo Mintz2019-12-171-1/+1
| | | | | This is already documented for Messageable.send's delete_after kwarg. PR #2481
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-1/+1
|
* Move PartialEmoji over to a new namespace to avoid circular importsRapptz2019-11-201-1/+2
|
* Fix broken versionadded in Message.is_system()Steve C2019-09-101-1/+1
|
* Add Message.is_system to more intuitively filter system messages.Rapptz2019-08-271-0/+7
|
* Add CHANNEL_FOLLOW_ADD Message TypeDice2019-08-271-0/+3
| | | | | | | | Add documentation for MessageType.channel_follow_add Add versionchanged to new MessageType attr Add system_content for new MessageType
* Add upgraded Member to Message.mentions in case of no cache.Rapptz2019-07-101-5/+9
|
* Different method of upgrading user instancesRapptz2019-07-101-0/+3
|
* Fix regression where Message.edited_at would not update during editsRapptz2019-07-051-0/+3
|
* Add support for suppressing embeds.Rapptz2019-06-291-6/+19
|
* Improve performance of parsing MESSAGE_UPDATE and MESSAGE_CREATE eventsRapptz2019-06-071-21/+67
| | | | | | | | Embed edits are no longer special cased in the dispatch code, which could lead to on_message_edit being called more often than it used to be called. I am not sure on the general impact on that being removed. Fixes #2195
* Improve documentationNCPlayz2019-06-071-16/+14
|
* Add support for new message types related to premium guilds.Rapptz2019-06-041-0/+12
|
* Make __repr__ slightly more detailed and add a few missing ones.Rapptz2019-05-261-1/+4
| | | | | | This includes raw events (which didn't have any) and a few other types that were missing them. Upon review some more useful fields were added to the repr output which would be more useful during debugging.
* Add note for Message.ttsRapptz2019-05-251-0/+2
| | | | Fix #2186
* Fix pluralization errors in various filesEhren Julien-Neitzert2019-05-231-2/+2
| | | | | * Replaced instances of 'return an' with 'returns an' * fixed pluralization errors
* Proper location of versionaddedRapptz2019-04-291-2/+2
|
* Add read method to attachment objectsVexs2019-04-291-2/+37
| | | | Refactor save to use new read method
* Make Message.ack an actual coroutine function.Rapptz2019-04-201-2/+2
|
* Add versionchanged to Message.deleteRapptz2019-04-181-0/+3
|
* Add delay kwarg to message.delete()Vexs2019-04-181-10/+19
| | | | Refactor delete_after kwargs to use new delay kwarg
* Add support for <:name:id> format for adding reactionsVexs2019-04-171-1/+3
| | | | Adjust FAQ to match.
* Internal consistency with message related HTTPClient methodsRapptz2019-04-141-5/+5
|
* Missing a word in Attachment.saveRapptz2019-04-081-2/+2
|
* Add note about escape_markdown in Message.clean_contentRapptz2019-04-061-0/+6
| | | | Fix #1911
* Fix Attachment.save wording nit.Rapptz2019-04-061-3/+4
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-1/+1
| | | | | | | | | | | Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997
* Organise documentationNCPlayz2019-03-191-5/+5
|
* Support path-like objects in Attachment.save.Rapptz2019-03-131-5/+6
| | | | Fix #1958
* Expose Embed.from_data as Embed.from_dictRapptz2019-03-131-1/+1
| | | | This is a breaking change.
* Revert default parameter use_cached of Attachment.save back to False.Rapptz2019-03-101-1/+1
| | | | Fix #1973
* Have use_cached=True by default for Attachment.save.Rapptz2019-03-061-8/+8
| | | | Also touch up the documentation a bit.
* Added cached saving for attachmentsMaku2019-03-061-3/+9
| | | | Updated docstring
* Update Member.joined_at on MESSAGE_CREATE and document it can be None.Rapptz2019-02-271-1/+16
| | | | Fixes #1638
* Manually calculate millisceond epoch rather than bitshiftingslice2019-02-151-4/+6
| | | | Implementation by Danny.
* Fix system_content returning incorrect join messagesslice2019-02-151-4/+6
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Add support for spoiler attachments.Rapptz2018-12-141-0/+4
|