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
Rapptz
8caa088d25
Allow PartialReactionEmoji in add_reaction and remove_reaction.
2017-07-02 01:43:45 -04:00
Rapptz
f607febaf7
Fix Message.remove_reaction and Message.add_reaction taking in Reaction
2017-07-02 01:40:13 -04:00
Rapptz
72780e7737
Actually expose Message.webhook_id.
2017-06-24 20:26:58 -04:00
Rapptz
d239cc2666
Implement "partial" message events.
...
These are events that get triggered regardless of the state of the
message cache. Useful for getting data from before the bot was booted.
2017-06-09 18:36:59 -04:00
Rapptz
fc0b90582d
Writing to files is 'wb' not 'rb'.
2017-05-30 22:32:03 -04:00
Rapptz
8d3279b291
Implement an Attachment model.
2017-05-30 22:27:45 -04:00
Rapptz
3727618b65
Kill remaining references to discord.Channel in documentation.
2017-05-19 21:58:02 -04:00
Rapptz
b44bba6ee6
First pass at documentation reform.
2017-05-12 20:14:34 -04:00
Rapptz
dff6bcc745
Add support for audit log reasons.
...
Most routes now have a 'reason' keyword argument.
2017-05-07 03:08:06 -04:00
Rapptz
d24c2a09b6
Change some format usage to use %-formatting.
...
Minor speed increase when we're not doing excessive attribute
access or any type of formatting.
2017-05-04 06:04:55 -04:00
Rapptz
b05d8790fc
Allow using Reaction objects while adding or removing reactions.
2017-04-21 17:32:09 -04:00
Rapptz
83649d7f0a
Support for new member message types.
2017-04-21 03:49:05 -04:00
Rapptz
1fc08bc5a2
Remove unused imports.
2017-04-18 04:22:35 -04:00
Rapptz
51b0baeb9d
Speed up message update handling.
...
Apparently, checking if something is not None and then calling it is
faster than having an identity function that will just return the
original value untransformed, such as a lambda or doing a str(str) call
2017-03-14 19:12:30 -04:00
Rapptz
c089aa199b
Remove Message.edited_timestamp in favour of Message.edited_at
2017-03-14 19:07:08 -04:00
Rapptz
9a1215e13b
Add support for message acking.
2017-02-27 23:29:52 -05:00
Rapptz
c8250d7cd5
Fix bug with Message.role_mentions always being empty.
2017-02-13 22:14:49 -05:00
Rapptz
926f01f0b6
Call message edit handlers after attempting to patch individual fields
2017-02-09 06:29:57 -05:00
Rapptz
3504de4635
Fix more places where server is used instead of guild in docstrings.
2017-02-08 22:51:40 -05:00
Rapptz
01c17704bc
Remove unused Message._handle_upgrades function.
2017-01-29 20:41:53 -05:00
Rapptz
b27fab09eb
Allow removing an embed in Message.edit
2017-01-29 20:32:24 -05:00
Rapptz
ff9f5749e1
Update copyright year to 2017.
2017-01-20 23:19:19 -05:00
Rapptz
92dd519b1a
Remove _get_guild_id from Messageable ABC.
2017-01-14 19:22:26 -05:00
Rapptz
98b981848d
Move message creation to a factory method inside ConnectionState.
2017-01-03 09:52:10 -05:00
Rapptz
5e6bfecb07
Move away from StateContext and use ConnectionState directly.
2017-01-03 09:52:10 -05:00
Rapptz
dceba9d962
Add useful repr to all data classes.
2017-01-03 09:52:06 -05:00
Rapptz
ec6c7f8b34
Fix handling of author update and missing type attribute in Message.
2017-01-03 09:52:05 -05:00
Rapptz
79a49f9145
Absolute import some circular dependencies to appease Python 3.4.
2017-01-03 09:52:02 -05:00