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
Rapptz
7c5a4b67d7
Fix Attachment.save wording nit.
2019-04-06 20:17:12 -04:00
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
...
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
2019-04-06 19:12:50 -04:00
NCPlayz
fb02191b80
Organise documentation
2019-03-19 08:24:42 -04:00
Rapptz
6ffd079cb9
Support path-like objects in Attachment.save.
...
Fix #1958
2019-03-13 22:04:51 -04:00
Rapptz
73aca4d4d3
Expose Embed.from_data as Embed.from_dict
...
This is a breaking change.
2019-03-13 06:02:56 -04:00
Rapptz
e15b4ef8e4
Revert default parameter use_cached of Attachment.save back to False.
...
Fix #1973
2019-03-10 20:12:24 -04:00
Rapptz
aceec2009a
Have use_cached=True by default for Attachment.save.
...
Also touch up the documentation a bit.
2019-03-06 20:07:38 -05:00
Maku
6f1dff78d4
Added cached saving for attachments
...
Updated docstring
2019-03-06 20:04:40 -05:00
Rapptz
7240d170c1
Update Member.joined_at on MESSAGE_CREATE and document it can be None.
...
Fixes #1638
2019-02-27 06:23:08 -05:00
slice
cfc2e47b4f
Manually calculate millisceond epoch rather than bitshifting
...
Implementation by Danny.
2019-02-15 23:20:06 -08:00
slice
4ab9c874f8
Fix system_content returning incorrect join messages
2019-02-15 22:09:25 -08:00
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
2019-01-28 22:22:50 -05:00
Rapptz
93d576a65b
Add support for spoiler attachments.
2018-12-14 19:09:25 -05:00
Laurenz
dd884a6afe
Update Message.mention_everyone docs to include @here
2018-12-14 19:05:34 -05:00
Hornwitser
a71b3b5fa0
[lint] Limit unneccessarily broad except clauses
...
Add exception qualifier(s) to bare except clauses swallowing exceptions.
2018-11-24 22:17:57 -05:00
Rapptz
3d03dbc451
Change internal role storage in Guild to a dict instead of a list.
...
This adds the following APIs:
* Guild.get_role
This removes the following APIs:
* Guild.role_hierarchy
To compensate for the removed APIs, Guild.roles is now a sorted list
based on hierarchy. The first element will always be the @everyone
role.
This speeds up access at the cost of some memory, theoretically.
2018-09-24 21:08:48 -04:00
BeatButton
a4d1599ce9
Change docstrings to raw-strings
2018-09-14 22:55:27 -04:00
Bryan Forbes
deda5c4e97
Fix behavior of reaction type-conversion
2018-08-25 14:38:19 -05:00
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
...
Adjust whitespace to be consistent with the rest of the library.
2018-08-22 21:43:53 -04:00
Hornwitser
3679819c53
[lint] Remove unnecessary lambdas
...
Lambdas of the form `lambda x: func(x)` are redundant.
2018-08-22 21:43:52 -04:00
Hornwitser
d58fc0ccee
[lint] Remove unused imports
...
Left over from various refactoring and rewrites.
2018-08-22 21:43:50 -04:00
Dunkledore
9d8e791a4e
Update Message.author doctring
2018-08-22 21:06:08 -04:00
bmintz
0c446398d1
message: de-duplicate reaction type conversion
...
Removes some duplicate code in Message.{add,remove}_reaction.
The code in question converts the emoji object from Reaction, Emoji, str, or PartialEmoji
to a string form suitable for sending over the wire.
2018-07-31 13:36:54 -04:00
Rapptz
1538c78836
Change jump_to_url to jump_url and fix format.
...
People kept asking, might as well.
2018-06-29 21:50:38 -04:00
Rapptz
c67d95327e
Remove dead package references.
2018-06-10 18:16:40 -04:00
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
2018-06-10 18:10:00 -04:00
Rapptz
7eb918b19e
Add Message.jump_to_url
2018-06-10 15:25:17 -04:00
Steve C
0e945915b7
Fixes various documentation errors/inconsistencies
...
Mostly dealing with permissions, also fixes Raw Events inclusion.
2018-05-18 20:25:54 -04:00
Rapptz
60f0b22cbb
Filter null mentions when creating a Message.
2018-04-20 00:32:23 -04:00
Rapptz
f8f8f418f3
Split Game object to separate Activity subtypes for Rich Presences.
...
This is a massive breaking change.
* All references to "game" have been renamed to "activity"
* Activity objects contain a majority of the rich presence information
* Game and Streaming are subtypes for memory optimisation purposes for
the more common cases.
* Introduce a more specialised read-only type, Spotify, for the
official Spotify integration to make it easier to use.
2018-03-05 11:15:49 -05:00
Rapptz
355eb08b25
Add seek_begin keyword argument to Attachment.save
2018-02-13 05:41:10 -05:00
Gorialis
04d9dd9c0d
Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverter
2018-01-06 17:32:25 -05:00
Tobotimus
3112e1c17e
Add intersphinx
2018-01-06 17:23:59 -05:00
Chkoupinator
b268d81649
Added a missing "to" in Message.raw_mentions documentation.
2018-01-06 17:23:41 -05:00
CloudNineK
0f56ce7c13
Fix typo in Message.embeds documentation.
2018-01-06 17:23:18 -05:00
Rapptz
da9828c41f
Use the proper endpoint for removing your own reaction.
2017-12-21 19:20:48 -05:00
Rapptz
9a0e9b0494
Update system_content strings for MessageType.new_member.
2017-08-17 18:36:10 -04:00
Rapptz
63231ef033
Remove reason keyword argument from message deletion.
...
Apparently this is unsupported.
Affected functions include:
* abc.Messageable.send
* Message.delete
* TextChannel.delete_messages
* TextChannel.purge
2017-08-15 22:38:43 -04:00
MysterialPy
adf99eb2cd
Add delete_after to 'edit'.
...
Allow for edited messages to be deleted after [float] seconds with optional parameter delete_after.
2017-08-15 20:05:48 -04:00
Rapptz
b3cad74442
Message content is Optional in Message.edit.
2017-07-10 06:14:51 -04:00