Commit Graph

1947 Commits

Author SHA1 Message Date
5473cec6ac Added note to Emoji.user 2019-05-13 22:12:33 -04:00
6bc9d7c01a [tasks] Add indicator for internal task failure
Fixes #2151
2019-05-13 22:10:38 -04:00
a4a362b4c7 [tasks] Log exception when something failed to logging. 2019-05-13 22:08:31 -04:00
a62641bd65 Add back __repr__ that were deleted in the Asset redesign
The Asset PR (be227ebcf0) changed some namedtuple-deriving
classes to object-deriving classes, which meant that the free __repr__ provided by namedtuple
was removed
2019-05-13 20:29:08 -04:00
859ee751f9 [tasks] Return coro from before and after decorators 2019-05-13 20:29:07 -04:00
357abf2e55 Add India region to VoiceRegion 2019-05-13 20:26:10 -04:00
49a7e58d17 [tasks] Keep retrying before gracefully exiting. 2019-05-12 01:31:09 -04:00
4eead39b3c [tasks] Add Loop.stop to gracefully stop a task.
Updated docs will follow shortly.
2019-05-12 01:04:24 -04:00
bcdecd4e07 [tasks] Reset iteration count when loop terminates. 2019-05-12 00:49:19 -04:00
8c353a5596 Change version to v1.2.0a for development purposes. 2019-05-11 18:20:13 -04:00
f74d73327b [commands] Explicitly assign invoked_subcommand to None before invoking
This should fix instances of it not working as expected in nested
groups.
2019-05-11 18:17:57 -04:00
26a6970882 Version bump to v1.1.1 v1.1.1 2019-05-11 15:42:13 -04:00
123e151978 Add back signal handling to Client.run
Apparently Python does not transform SIGTERM to KeyboardInterrupt as
nicely as I thought.
2019-05-11 14:40:31 -04:00
8206982e79 Don't overwrite data parameter in webhooks.
Fixes #2140
2019-05-10 20:54:51 -04:00
a54f656e04 Version bump to v1.1.0 v1.1.0 2019-05-10 20:20:29 -04:00
f8cc64ca7e Add changelog for v1.1.0 2019-05-10 20:19:51 -04:00
8f111c521c Fix typo in Loop.restart documentation 2019-05-10 18:44:07 -04:00
47808a7e96 [tasks] Add Loop.restart
This implementation waits until the task is done before starting it
again.

Closes #2075
2019-05-10 18:37:37 -04:00
d51f4c2b81 Minor nits in Discord Converters section of the docs. 2019-05-09 07:40:08 -04:00
0a0c43321b [commands] MinimalHelpCommand: add cog description 2019-05-09 06:11:21 -04:00
01588fa34b Tightended the constraints of Spotify.__eq__. 2019-05-09 06:11:20 -04:00
25d9337481 Document remaining public enums.
- UserContentFilter
- FriendFlags
- PremiumType
- Theme

UserFlags is not documented as though it is only used internally.
2019-05-09 06:11:19 -04:00
82a39eb148 Add cached_message to on_raw_message_edit event
Also add documentation for this behavior
2019-05-09 05:53:56 -04:00
792b31833a Mention what can be done during initialisation in embeds. 2019-05-07 00:24:25 -04:00
bdea50e1db [commands] Better note for Command.invoke 2019-05-05 03:15:38 -04:00
41dee3f401 Translation sync with Crowdin 2019-05-04 02:55:53 -04:00
446b79241c Actually use multiple checks in the examples for checks. 2019-05-01 23:57:50 -04:00
abb9c067cc Add log line to show if we disconnected normally. 2019-05-01 02:49:52 -04:00
91e00d8426 [tasks] Add way to query cancellation state for Loop.after_loop
Fixes #2121
2019-04-30 01:45:15 -04:00
4dee175d2a Add support for voice kicking. 2019-04-30 00:34:20 -04:00
40cac30da1 [commands] Fix MessageConverter not inheriting from Converter
Closes #2126
2019-04-29 23:37:27 -04:00
55e3e242ff [tasks] Remove support for awaitables due to gotchas.
Fixes #2079
2019-04-29 23:34:20 -04:00
cef8677c68 Proper location of versionadded 2019-04-29 23:34:19 -04:00
0dcbdda974 Fixed a typo in GuildChannel.overwrites docstring 2019-04-29 23:34:18 -04:00
b8e45afe9a Fixed TextChannel edit method missing slowmode unit 2019-04-29 23:34:17 -04:00
7675dd03ca Added missing get_role method to the faq. 2019-04-29 23:34:16 -04:00
7dfaa5e9ae Add read method to attachment objects
Refactor save to use new read method
2019-04-29 23:31:17 -04:00
05d4f7f962 [commands] Fix Context.send_help to work with the copied HelpCommand 2019-04-29 00:08:08 -04:00
ad5beed8dd [commands] Copy HelpCommand instances to prevent race conditions.
Fixes #2123

Slight breaking change if someone had an expectation that no copies
were made behind the scene (which is sensible), however writing code
that relies on this expectation is probably buggy anyway.
2019-04-29 00:05:46 -04:00
f9e95a35f9 Fix USER_UPDATE changes not triggering for member instances.
Also add a ClientUser.locale attribute.
2019-04-28 06:36:12 -04:00
de6240f1e7 Rewrite loop cleanup code (again...) and remove signal handling.
This should hopefully be the last time I touch this.
2019-04-26 01:57:33 -04:00
439dd24056 voice room → voice channel in event documentation 2019-04-25 23:24:13 -04:00
186d9a7f9c Use a regular boolean instead of asyncio.Event for close status. 2019-04-25 01:57:32 -04:00
6dcd68b8d7 [commands] Allow passing current to more cooldown mapping methods.
Also adds a CooldownMapping.update_rate_limit helper function.
2019-04-24 23:26:33 -04:00
d80d4145b1 Add Asset.read() to retrieve assets into bytes objects 2019-04-20 15:12:52 -07:00
5a7b5cd14b [commands] Allow passing of a message to NoPrivateMessage again.
Prevents an accidental breaking change.
2019-04-20 17:28:44 -04:00
188bd4e708 [commands] DM channels are NSFW in commands.is_nsfw check. 2019-04-20 17:27:04 -04:00
919dbcafb3 Consistent use of __all__ to prevent merge conflicts. 2019-04-20 17:20:58 -04:00
c6410ea9ab [commands] Clean docstrings in Command.parents and Command.root_parent 2019-04-20 17:01:01 -04:00
6620fcc038 [commands] Consistently mention inheritance of exceptions. 2019-04-20 16:59:54 -04:00