34f2fb36b1
Added MessageReference.resolved attribute to get replied to message
2020-11-27 02:24:39 -05:00
1014bfcb63
Allow MessageReference to be constructible by users
2020-11-27 01:08:52 -05:00
bd6ab93348
Code cleanup involving enums and message replies
2020-11-27 00:32:08 -05:00
d1cb30cccf
Implement discord.Message.reply
2020-11-26 23:19:00 -05:00
f174365d33
Ensure member key is not overwritten by author key in MESSAGE_UPDATE
...
This also coerces the older message to take the member data from the
newer message so the types are not incompatible.
Fix #5999
2020-11-23 06:02:27 -05:00
344cb96c5d
Add sticker support
2020-11-23 05:09:20 -05:00
a40e20fa38
Use Hashable mixin for Message
2020-10-16 22:46:08 -04:00
93fa46713a
Fix and add documentation
2020-09-23 03:19:35 -04:00
37c5c583f2
Add support for message_reference on Message object
2020-09-23 02:29:03 -04:00
a183c4f752
Completely update member references from message inner members.
...
Fixes #5819
2020-09-17 02:45:53 -04:00
39aa08ab93
Added __eq__ to Message
2020-09-04 08:42:31 -04:00
891531fac0
Fixed a typo in message unpinning docs
2020-08-05 21:44:11 -04:00
ec3c3eb4c6
Update message references in AutoShardedConnectionState
...
Fixes #5133
2020-07-25 09:59:40 -04:00
e971e2f16c
Allow more methods to set an audit log reason
2020-06-30 23:35:42 -04:00
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
2020-06-28 03:45:58 -04:00
de7c96333c
Update Message.system_content join strings to be up to date.
...
Fixes #4211
2020-06-27 03:45:27 -04:00
a22d38d004
Add spoiler keyword argument to Attachment.to_file
2020-05-23 21:56:40 -04:00
66c6be50d8
Prepare for the discord.com domain rename
2020-05-23 21:44:30 -04:00
6e8d538f09
add support for allowed_mentions with message edit
2020-05-10 16:48:31 -04:00
1f73e18bc6
Make use_cached keyword only
2020-05-03 01:58:52 -04:00
c424d82f74
Add versionadded to Attachment.to_file use_cached param
2020-05-02 19:57:48 -04:00
08e20910e6
Edit message publish documentation
2020-04-14 03:24:46 -04:00
c2d5c2e118
Add use_cached to Attachment.to_file
2020-04-04 03:03:20 -04:00
af6a5efa53
Fix crashes when Message.guild is Object
2020-02-16 21:52:20 -05:00
1451f790a0
Explicitly check for guild object
2020-01-26 14:43:10 +01:00
6f9793fe5e
Fixes and improvements for v1.3 documentation
...
* 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
2020-01-22 23:55:05 -05:00
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
4cf02c9461
Update attachment documentation for width/height applying to videos too
2020-01-20 00:10:37 -05:00
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
a1d41f16d8
Document NotFound exception raise in message deletion endpoints
2020-01-18 21:37:06 -05:00
87f9dcff9c
Add support for clearing a specific reaction.
...
Closes #2440
2020-01-17 19:53:28 -05:00
195b5188e8
Add Attachment.to_file to easily send an attachment.
...
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`.
2020-01-03 20:42:45 -05:00
fdab6e464f
Remove unnecessary pass using regex in Message.clean_content
...
The utils.escape_mentions should deal with it
2019-12-25 04:19:27 -05:00
6794bdaac5
Use discord.utils.escape_mentions as last step of
...
discord.Message.clean_content
2019-12-25 04:13:10 -05:00
9c6a121644
Implement discord.MessageFlags
...
Refactor flags placement and use it for suppression.
2019-12-20 20:56:40 -05:00
ecff52a7e8
Document the exception-suppressing behaviour of Message.delete
...
This is already documented for Messageable.send's delete_after kwarg.
PR #2481
2019-12-17 23:36:19 -05:00
a6f61dcbde
Fix all deprecation warnings for 3.8
2019-11-20 02:30:19 -05:00
15f0b000e1
Move PartialEmoji over to a new namespace to avoid circular imports
2019-11-20 00:50:19 -05:00
5022aa5a0b
Fix broken versionadded in Message.is_system()
2019-09-10 21:10:58 -04:00
1488957a6f
Add Message.is_system to more intuitively filter system messages.
2019-08-27 04:13:46 -04:00
da4bb0610c
Add CHANNEL_FOLLOW_ADD Message Type
...
Add documentation for MessageType.channel_follow_add
Add versionchanged to new MessageType attr
Add system_content for new MessageType
2019-08-27 04:05:03 -04:00
bbc50c92d0
Add upgraded Member to Message.mentions in case of no cache.
2019-07-10 04:51:27 -04:00
5c1b239b47
Different method of upgrading user instances
2019-07-10 01:23:38 -04:00
70e62e8fe4
Fix regression where Message.edited_at would not update during edits
2019-07-05 23:52:47 -04:00
0cca3ca5c6
Add support for suppressing embeds.
2019-06-29 20:26:47 -04:00
f84219c2b2
Improve performance of parsing MESSAGE_UPDATE and MESSAGE_CREATE events
...
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
2019-06-07 22:18:01 -04:00
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
5dce3410e6
Add support for new message types related to premium guilds.
2019-06-04 18:30:47 -04:00
2cd6d771ec
Make __repr__ slightly more detailed and add a few missing ones.
...
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.
2019-05-26 02:32:47 -04:00
ab6dd2a27a
Add note for Message.tts
...
Fix #2186
2019-05-25 06:17:52 -04:00