aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update copyright years.Rapptz2019-02-232-2/+2
|
* [commands] Update stale parent references in subcommands.Rapptz2019-02-231-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug was kind of a long one to figure out, as per #1918 documents the issue had to do with subcommands but the actual adventure in finding this one was a long one. The first problem was that Command.cog was for some reason None, which indicated that a copy was happening somewhere along the way. After some fiddling I discovered that due to the copies of `Cog.__cog_commands__` the groups pointed to out-dated versions that got overriden by the new copies. The first attempt at fixing this was straightforward -- just remove the subcommand from the parent and replace it with the newer reference that we just received. However, this ended up not working due to a strange mystery where the subcommand being invoked was neither the original copy nor the new copy residing in `Cog.__cog_commands__`. Some more investigation later pointed out to me that a copy occurs during the `Group.copy` stage which calls `Command.copy` for all its subcommands. After spotting this out I had realised where the discrepancy comes from. As it turns out, the subcommand copy that was being invoked was actually a stale one created from `Group.copy`. The question remained, how come that one was being called? The problem stemmed from the fact that when the subcommand was copied, the parent reference pointed to the old parent. Since the old parent was the one that was getting the new reference, it went practically untouched. This is because the calling code fetches the child from the parent and the old parent is nowhere in the call chain. To fix this issue we needed to update the parent reference, and in order to do that a temporary lookup table is required pointing to the latest copies that we have made. Thus ends a 3.5 hour bug hunting adventure.
* [commands] Fix issue with decorator order with checks and cooldownsRapptz2019-02-232-0/+9
| | | | Now they're just explicitly copied.
* [commands] Fix bug with cog bot check once not being unloaded properly.Rapptz2019-02-231-1/+1
|
* [commands] Fix attribute access in cogs to commands.Rapptz2019-02-231-0/+4
| | | | | Previously they were outdated copies, this updates the copies to the ones that are actually injected.
* [commands] Fix bug with local checks and cooldowns not applying.Rapptz2019-02-231-2/+0
|
* [commands] Copy on_error handlers in Command.copyRapptz2019-02-231-0/+4
| | | | This fixes the issue of error handlers not applying.
* [commands] Pass over kwargs to `type.__new__`Rapptz2019-02-231-1/+1
|
* Document listener changes in the migrating docs.Rapptz2019-02-231-0/+6
|
* Rework entire cog system and partially document it and extensions.Rapptz2019-02-2314-184/+776
|
* [commands] Fix up wording on HelpFormatter.get_ending_noteRapptz2019-02-181-1/+1
|
* [commands] add document comment to HelpFormatter.get_ending_notecod2019-02-191-0/+1
|
* Translated ext.commands.HelpFormatter class.cod2019-02-191-4/+41
| | | | ext/commands/api.po
* Update Japanese .po filesRapptz2019-02-185-2975/+3668
|
* Add self_video property to VoiceStateDerpyChap2019-02-181-2/+5
|
* Log unknown channel warning in WEBHOOK_UPDATECraftSpider2019-02-181-2/+3
|
* Add guild_integrations_update eventCraftSpider2019-02-182-0/+13
|
* Manually calculate millisceond epoch rather than bitshiftingslice2019-02-151-4/+6
| | | | Implementation by Danny.
* Fix system_content returning incorrect join messagesslice2019-02-151-4/+6
|
* Add `remove()` to ReactionMyst(MysterialPy)2019-02-141-0/+28
| | | | | | | Added a coro, `remove()` which takes in a sole parameter, `member`. This new coro will remove the reaction by the provided member from the reactions message. `message.remove_reaction(reaction, member)` was not removed as to not introduce breaking changes.
* [commands] Add more i18n properties for HelpFormattercod2019-02-141-3/+12
| | | | | | removed fixed strings "Commands:" and help page ending note. and added properties modify these strings. default behavior is not changed. fix #1886
* Fix missing importsRapptz2019-02-121-1/+3
|
* Expose more information from partial invites, along with counts.Rapptz2019-02-126-27/+187
| | | | | | | | | | | | | This adds the following information. * `PartialInviteGuild` to replace `Object` patching * `PartialInviteChannel` to replace `Object` patching * Invite.approximate_member_count and Invite.approximate_presence_count The new partial objects provide better documentation on what is expected when you fetch random invites. Fixes #1830
* Bump aiohttp requirement and fix AsyncWebhookAdapterBryan Forbes2019-02-122-2/+2
|
* Fix documentation typo in CategoryChannelPedro Cunha2019-02-121-1/+1
|
* Add PremiumType enumeration and ClientUser.premium_typeLiam H2019-02-122-3/+11
|
* Change Activity.application_id from `str` to `int`.BluePhoenixGame2019-02-121-2/+3
|
* Fix missing import.Rapptz2019-02-061-2/+2
|
* Try to optimize for the common ASCII case.Rapptz2019-02-061-3/+10
| | | | | This is still a slowdown (about 45ns to 300ns) but it's less severe than the original implementation (about 900 to 1100ns).
* [commands] Fix ext.commands help page full-width indentationcod2019-02-062-3/+13
| | | | | add _string_width function to util. Changed string width calculate function from len() to util function _string_width().
* Clarified add_listener documentationSkyweb2019-02-061-2/+2
|
* Use non-deprecated method of acquiring lockToby Harradine2019-02-061-1/+1
|
* Fix typo in API documentation.stuarth2019-02-061-1/+1
|
* Remove notes about Client.messagesXua2019-02-061-5/+5
| | | Since `Client.messages` no longer exists, I think we should remove the note about the cache being named that.
* commands.clean_content: escape || spoilers ||Benjamin Mintz2019-02-061-1/+1
|
* Fix ReactionIterator for limit > 100Harmon2019-01-301-1/+1
|
* Add CategoryChannel.text_channels and voice_channelsChris2019-01-291-0/+18
|
* Added support for comparing PermissionOverwritesDevilXD2019-01-281-0/+7
| | | | When trying to check if a specific permission overwrite is already set on a channel, it can be done by fetching the already existing overwrite and comparing it with a one you want to set. Comparing them directly wasn't possible before, and this small change allows for that. Could be expanded for other comparison operators, not sure how it would work though.
* Warn on high latency and blocking heartbeatHornwitser2019-01-281-1/+16
| | | | | | | Add warnings for when the heartbeat is blocked for a long time and when the websocket latency is excessively high. These indicate problems with blocking the event loop and/or insufficient computing resources to keep up with the demand.
* Fix README.rst for PyPiHornwitser2019-01-283-3/+4
| | | | | | Add long_description_content_type in setup.py, fix incorrectly matched up title underlines in README.rst, and fix incorrect entry in MANIFEST.in that was forgotten when the README was renamed in 06296bf.
* Update voice code to vws V4Imayhaveborkedit2019-01-284-24/+86
| | | | | | | - Update internals to be compatible with v4 - Adds multiple encryption mode support. Previously only `xsalsa20_poly1305` was supported. Now `xsalsa20_poly1305_suffix` is also supported. Note: There is no (nice) way to manually select a mode. The user needn't worry about this however. - Fixed speaking state bug. When you disconnected from a voice channel while a bot was playing, upon reconnect you would be unable to hear the bot. This was caused by bots not sending their speaking state while transmitting. Bots will now set their speaking state properly when transmitting. Note: This does not account for sending actual silence, the speaking indicator will still be active.
* Fix accidental regression of 9bc48b2 in fa46b07Hornwitser2019-01-281-1/+1
| | | | | Occured due to difficult to spot difference in git merge when rebasing the lint changes.
* Bumped copyright years to 2019.Dante Dam2019-01-2859-60/+60
|
* Fix the Context.message example to actually use ctx.messageChris Rrapi2019-01-281-3/+2
|
* Implement PartialEmoji == Emoji (fixes #1627)Ben Mintz2019-01-281-0/+10
|
* Fix user/user_id documentation for reaction remove eventsMusicOnline2019-01-282-2/+2
|
* Do None instead of falsy checks on Command attributesDevon R2019-01-281-3/+3
|
* Change Greedy behaviour slightly during conversion errors.MusicOnline2019-01-281-7/+3
| | | | | Make Greedy swallow conversion errors and return the default if there are no convertible args
* Use a tuple for startswith in mime detection code.Valentin2019-01-281-1/+1
|
* Allow additional parameters on channel creationTyler2019-01-282-17/+45
|