Rapptz
3b172b9f34
Completely update member references from message inner members.
...
Fixes #5819
2020-09-28 06:06:35 -04:00
ELginas
891531fac0
Fixed a typo in message unpinning docs
2020-08-05 21:44:11 -04:00
Rapptz
ec3c3eb4c6
Update message references in AutoShardedConnectionState
...
Fixes #5133
2020-07-25 09:59:40 -04:00
Nadir Chowdhury
e971e2f16c
Allow more methods to set an audit log reason
2020-06-30 23:35:42 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
2020-06-28 03:45:58 -04:00
Rapptz
de7c96333c
Update Message.system_content join strings to be up to date.
...
Fixes #4211
2020-06-27 03:45:27 -04:00
Zomatree
a22d38d004
Add spoiler keyword argument to Attachment.to_file
2020-05-23 21:56:40 -04:00
Rapptz
66c6be50d8
Prepare for the discord.com domain rename
2020-05-23 21:44:30 -04:00
StarrFox
6e8d538f09
add support for allowed_mentions with message edit
2020-05-10 16:48:31 -04:00
Rapptz
1f73e18bc6
Make use_cached keyword only
2020-05-03 01:58:52 -04:00
Josh
c424d82f74
Add versionadded to Attachment.to_file use_cached param
2020-05-02 19:57:48 -04:00
Kowlin
08e20910e6
Edit message publish documentation
2020-04-14 03:24:46 -04:00
Maku
c2d5c2e118
Add use_cached to Attachment.to_file
2020-04-04 03:03:20 -04:00
Rapptz
af6a5efa53
Fix crashes when Message.guild is Object
2020-02-16 21:52:20 -05:00
Merlintor
1451f790a0
Explicitly check for guild object
2020-01-26 14:43:10 +01:00
Harmon
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
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
2020-01-21 03:47:56 -05:00
Rapptz
4cf02c9461
Update attachment documentation for width/height applying to videos too
2020-01-20 00:10:37 -05:00
Rapptz
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz
a1d41f16d8
Document NotFound exception raise in message deletion endpoints
2020-01-18 21:37:06 -05:00
Rapptz
87f9dcff9c
Add support for clearing a specific reaction.
...
Closes #2440
2020-01-17 19:53:28 -05:00
Rapptz
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
Rapptz
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
Michael H
6794bdaac5
Use discord.utils.escape_mentions as last step of
...
discord.Message.clean_content
2019-12-25 04:13:10 -05:00
NCPlayz
9c6a121644
Implement discord.MessageFlags
...
Refactor flags placement and use it for suppression.
2019-12-20 20:56:40 -05:00
Io Mintz
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
Rapptz
a6f61dcbde
Fix all deprecation warnings for 3.8
2019-11-20 02:30:19 -05:00
Rapptz
15f0b000e1
Move PartialEmoji over to a new namespace to avoid circular imports
2019-11-20 00:50:19 -05:00
Steve C
5022aa5a0b
Fix broken versionadded in Message.is_system()
2019-09-10 21:10:58 -04:00
Rapptz
1488957a6f
Add Message.is_system to more intuitively filter system messages.
2019-08-27 04:13:46 -04:00
Dice
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
Rapptz
bbc50c92d0
Add upgraded Member to Message.mentions in case of no cache.
2019-07-10 04:51:27 -04:00
Rapptz
5c1b239b47
Different method of upgrading user instances
2019-07-10 01:23:38 -04:00
Rapptz
70e62e8fe4
Fix regression where Message.edited_at would not update during edits
2019-07-05 23:52:47 -04:00
Rapptz
0cca3ca5c6
Add support for suppressing embeds.
2019-06-29 20:26:47 -04:00
Rapptz
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
NCPlayz
3c9bcc2851
Improve documentation
2019-06-07 19:27:46 -04:00
Rapptz
5dce3410e6
Add support for new message types related to premium guilds.
2019-06-04 18:30:47 -04:00
Rapptz
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
Rapptz
ab6dd2a27a
Add note for Message.tts
...
Fix #2186
2019-05-25 06:17:52 -04:00
Ehren Julien-Neitzert
fc5a2936dd
Fix pluralization errors in various files
...
* Replaced instances of 'return an' with 'returns an'
* fixed pluralization errors
2019-05-23 23:31:17 -04:00
Rapptz
cef8677c68
Proper location of versionadded
2019-04-29 23:34:19 -04:00
Vexs
7dfaa5e9ae
Add read method to attachment objects
...
Refactor save to use new read method
2019-04-29 23:31:17 -04:00
Rapptz
746e20a826
Make Message.ack an actual coroutine function.
2019-04-20 13:49:38 -04:00
Rapptz
a7f3300821
Add versionchanged to Message.delete
2019-04-18 07:58:29 -04:00
Vexs
0f48b78987
Add delay kwarg to message.delete()
...
Refactor delete_after kwargs to use new delay kwarg
2019-04-18 07:56:02 -04:00
Vexs
f38b199d6a
Add support for <:name:id> format for adding reactions
...
Adjust FAQ to match.
2019-04-17 22:42:00 -04:00
Rapptz
14d66e7b9c
Internal consistency with message related HTTPClient methods
2019-04-14 21:05:20 -04:00
Rapptz
bb5aaf2ab3
Missing a word in Attachment.save
2019-04-08 17:19:11 -04:00
Rapptz
79a8249bc7
Add note about escape_markdown in Message.clean_content
...
Fix #1911
2019-04-06 21:50:56 -04:00