aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [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
* Pip version requires require all 3 digits.Rapptz2017-12-281-1/+1
|
* Add some dependencies for RTD.Rapptz2017-12-281-1/+2
|
* 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.
* Update README to point to new server.Rapptz2017-11-281-3/+3
|
* Prefix sha to fix leading zeros being strippedkhazhyk2017-11-211-1/+1
| | | | /dist.py:352: UserWarning: Normalizing '1.0.0a1402+0965847' to '1.0.0a1402+965847'
* 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-122-0/+11
|
* 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
|
* Use local version identifer for SHAkhazhyk2017-10-141-1/+1
| | | | | | local version identifier seems to be the only PEP440 way to add arbitrary string to the version. Makes pip stop complaining about invalid version label.
* 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.
* Show sha1 for development versions.khazhyk2017-10-141-1/+6
|
* 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
|
* Fix Guild.system_channel always returning None.Rapptz2017-09-261-1/+1
| | | | Fixes #811
* Don't use Bulk Channel Edit endpoint if not actually moving channels.Rapptz2017-09-242-2/+5
| | | | | | Should make the category-only edit cases more straightforward since it does not rely on other guilds in the cache, outside of the category itself.
* Temporarily add created channels to cache.Rapptz2017-09-231-3/+15
| | | | | | | This should fix issues when doing a `abc.GuildChannel.edit` immediately afterwards and then when the corresponding CHANNEL_CREATE comes in the channel instance should hopefully be overwritten by the authoritative figure, the WebSocket.
* Changed discord.Client.event to debug log success instead of info log.espeonofespeonage2017-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is suggested to prevent spamming the console unnecesarilly. Info should be used to output information to the user that is important, but not a warning or an error. If I am bundling a bot as a modular package then it doesn't really make sense to spam their console with every time a coroutine is subscribed to, as it likely will not mean anything to the user. If they are interested in this, it would make more sense to just to enable debugging first. I have made this change, as I am writing a wrapper for this library for a private project, and that will handle dispatching events, thus, I do not need a prompt for each event that is subscribed to in this module outside of DEBUG. Currently, with logging set to INFO, I am getting 47 lines reading: INFO:discord.client:coroutine has successfully been registered as an event ...being output as my bot starts, and without having to disable INFO logging altogether, I am currently having to temporarily change the verbosity of the logger as the events are initialised, which is not desirable as it could potentially cover up any other INFO messages that would be useful to have output. Using a filter seems like a bit of a hacky workaround. If this isn't acceptable then another alternative would be to add a parameter to the constructor of discord.Client to enable or disable printing this information.
* Fix margins on <p> tags.Rapptz2017-09-221-0/+4
|
* Properly handle cases where a category is removed.Rapptz2017-09-211-1/+1
|
* Fix header size warnings.Rapptz2017-09-211-1/+1
|
* Add custom details directive.Rapptz2017-09-212-1/+58
|
* More CSS fixes.Rapptz2017-09-211-2/+9
|
* Fix weird margins with unordered lists in the HTML5 output.Rapptz2017-09-211-0/+9
|
* Try to build HTML5 for docs.Rapptz2017-09-212-0/+3
|
* Fix sorting for channels.Rapptz2017-09-211-5/+5
|
* [guild] use a defaultdict in by_categoryJake2017-09-201-8/+3
|