aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to change the activity used when logging in at runtime.Rapptz2018-03-051-0/+14
|
* Split Game object to separate Activity subtypes for Rich Presences.Rapptz2018-03-0511-146/+665
| | | | | | | | | | | 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.
* Update docstrings for channel.pyJared Shields2018-02-261-1/+4
| | | | `delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this. Small amendment at line 180, adding three additional.
* Add missing coroutine decorator to HTTPClient.get_attachmentRapptz2018-02-261-0/+1
| | | | Fixes #1104
* Don't cache webhook users.Rapptz2018-02-241-1/+3
| | | | Fixes #1101
* Add seek_begin keyword argument to Attachment.saveRapptz2018-02-131-2/+8
|
* Fix websockets 4.0 supportBeatButton2018-02-121-4/+4
|
* [commands] Allow builtin unbound method convertersEli2018-02-101-2/+7
|
* Fixed opus error checkDaniel2018-02-061-2/+3
| | | Fixes #1056
* Add errcheck functions to opus foreign functionsDaniel2018-01-311-41/+37
|
* Update opus and add COPYING noticeDaniel2018-01-263-0/+28
|
* Change logic in PartialEmoji.__str__ a little.Rapptz2018-01-061-1/+3
|
* Change PartialReactionEmoji to PartialEmoji, add a PartialEmojiConverterGorialis2018-01-065-15/+45
|
* Add intersphinxTobotimus2018-01-0630-221/+219
|
* [commands] Fix MissingRequiredArgument param handlingkhazhyk2018-01-061-2/+2
| | | | | Documentation was incorrect, and we were throwing away the param we were passing.
* Added a missing "to" in Message.raw_mentions documentation.Chkoupinator2018-01-061-1/+1
|
* Fix typo in Message.embeds documentation.CloudNineK2018-01-061-1/+1
|
* Ensure gif avatar urls end in `.gif`khazhyk2018-01-061-1/+4
| | | | | | | This is a workaround for discord having trouble animating gifs if the url does not end in exactly `.gif`. Since avatar_url is common for thumbnails etc., adding this workaround here is handy, and likely restores expected behavior (animated avatars animating).
* Fix multipart sending for RequestsWebhookAdapter to work.Rapptz2018-01-031-2/+5
|
* [commands] Document that can_run can raise.Rapptz2017-12-291-0/+6
|
* [commands] Forbid passing a string to aliases in Command.Rapptz2017-12-291-0/+4
| | | | Fixes #974
* Add support for animated emoji to commands ext EmojiConverterJoshua Butt2017-12-221-1/+1
|
* Use the proper endpoint for removing your own reaction.Rapptz2017-12-212-1/+9
|
* Update Emoji.url to point to the GIF version of the animated emoji.Rapptz2017-12-211-1/+2
|
* Animated emoji support.Rapptz2017-12-211-1/+6
|
* Proper variable name in Client.clear.Rapptz2017-12-201-1/+1
|
* Add Client.clear to clear the bot's internal state to a clean slate.Rapptz2017-12-162-0/+16
| | | | In case you want to have some external restart loop.
* Fix self._process not existing during cleanup() in case of errorDaniel2017-11-211-0/+1
|
* [commands] Fix minor spelling mistakeS Stewart2017-11-201-1/+1
|
* Stop asyncio.async throwing a syntax error in 3.7.MysterialPy2017-11-131-1/+1
| | | Maintains support for < 3.4.4
* Missing Voice RegionsMippy (William)2017-11-121-0/+2
|
* Fixed a zero division error when accessing latenciesverixx2017-11-121-1/+3
| | | | | | | | | | | | | | | | | | When accessing the latencies property on an AutoShardedClient when none of shards are ready, we get a ZeroDivisionError. An example of this can be seen here. ```py class StatsBot(commands.AutoShardedBot): def __init__(self): super().__init__(command_prefix=None) self._add_commands() def _add_commands(self): '''Adds commands automatically''' for name, attr in inspect.getmembers(self): if isinstance(attr, commands.Command): self.add_command(attr) ``` When iterating through this custom client's it accesses the latencies property when no shards are ready, therefore it raises the error. A quick fix for this would be to return None if no shards are ready.
* Fix Spelling ErrorMippy (William)2017-11-121-1/+1
|
* Fix Webhook.delete not working.Rapptz2017-11-071-1/+1
|
* Missing name parameter in VoiceChannel.edit documentation.Rapptz2017-10-261-0/+2
|
* Fix URI quoting in Route.Rapptz2017-10-241-1/+1
|
* is_avatar_animated should always return boolkhazhyk2017-10-241-1/+1
| | | | Was returning None when User.avatar was None
* Quote all Route paramsGorialis2017-10-201-1/+1
|
* Reimplement zlib streaming.Rapptz2017-10-143-18/+55
| | | | | | | | | | | | | | This time with less bugs. It turned out that the crash was due to a synchronisation issue between the pending reads and the actual shard polling mechanism. Essentially the pending reads would be cancelled via a simple bool but there would still be a pass left and thus we would have a single pending read left before or after running the polling mechanism and this would cause a race condition. Now the pending read mechanism is properly waited for before returning control back to the caller.
* Revert "Implement zlib streaming for the gateway."Rapptz2017-10-142-26/+6
| | | | This reverts commit 462191a08b5b2efb83f5bc32935dc546d35a744b.
* Implement zlib streaming for the gateway.Rapptz2017-10-122-6/+26
|
* [commands] Minor speed-up for the BucketType.guild case.Rapptz2017-10-081-1/+1
| | | | | | | | None case: 344ns ± 24.4ns -> 49.9ns ± 1.39ns Valid case: 128ns ± 2.76ns -> 42.7ns ± 0.459ns
* [commands] Make CooldownMapping.get_bucket take Message instead.Rapptz2017-10-082-7/+6
| | | | | Requiring a full blown Context might be a bit overkill considering we only use a single attribute from it.
* Fix TypeError in utils.oauth_urlReinaSakuraba2017-10-041-1/+1
|
* [commands] Split Cooldown state processing to two different functions.MysterialPy2017-10-032-8/+34
| | | | | This allows us to check if we are rate limited without creating a new cool-down window for the command.
* Further clarify how bots can interact with emoji endpointsPandentia2017-10-032-0/+6
| | | | | Clarifies that bot accounts can only interact with emoji they have created.
* Remove reference to "whitelisted" bots for emoji endpointsPandentia2017-10-032-9/+0
| | | | | | Due to a recent change in the Discord API, bots can now create guild-specific emoji, so I've removed the parts of the documentation referencing this restriction.
* Fix AppInfo.id being a stringReinaSakuraba2017-10-021-1/+1
|
* Move pre-emptive message to DEBUG log level.Rapptz2017-10-011-1/+1
|
* Allow creating a channel with a category.Rapptz2017-09-292-7/+21
|