aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Changed README from using Markdown to use reStructuredTextGiovani Irimea2017-09-183-111/+107
|
* Add webhook.urlrooni2017-09-181-0/+5
|
* Add an example for on_reaction_add waiting.Rapptz2017-09-181-0/+19
| | | | | Apparently people would rather read examples than the actual documentation.
* Change how coroutines are detected internally.Rapptz2017-09-161-3/+4
|
* Clarify VoiceClient.disconnect docs a little more.Rapptz2017-09-161-1/+1
|
* Fix typo in http.create_channelHarmon2017-09-131-2/+2
|
* Fix error when creating guild channels.Rapptz2017-09-131-2/+2
|
* [commands] Add CategoryChannelConverterRapptz2017-09-133-25/+72
|
* Add Guild.create_category.Rapptz2017-09-131-2/+12
| | | | An alias, Guild.create_category_channel is provided.
* Fix grammar in abc docs, add new implementationSteve C2017-09-131-4/+5
|
* Add category support.Rapptz2017-09-138-32/+249
| | | | | | | | | | | | | This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
* [commands] Fix NameError when given an invalid prefix.Rapptz2017-09-121-1/+1
| | | | Closes #775
* Document new features for guilds.Rapptz2017-09-121-0/+2
|
* Fix crashing for now when a category is created.Rapptz2017-09-082-2/+7
| | | | A full implementation will come later.
* Fix docstrings for Webhook.sendRapptz2017-09-081-17/+20
|
* Quick start example doesn't respond to ourselves.Rapptz2017-09-051-0/+4
|
* Attempt to change how member functions are detected for Member objectsRapptz2017-09-041-1/+1
|
* Fix __hash__ for Invite objects.Rapptz2017-09-041-0/+3
|
* Switched places of user and reaction in wait_for exampleNick2017-08-311-1/+1
|
* [commands] Add MissingPermissions and BotMissingPermissionsReinaSakuraba2017-08-301-0/+6
|
* [commands] Have (bot_)has_permissions provide better failure responsesReinaSakuraba2017-08-301-2/+21
|