aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add Embed.__len__ to query total character size of an embed.Rapptz2019-03-131-0/+31
|
* Expose Embed.from_data as Embed.from_dictRapptz2019-03-133-3/+17
| | | | This is a breaking change.
* Handle type updates in TextChannel._update for news channels.Rapptz2019-03-121-0/+1
|
* [commands] Support staticmethod listeners and disallow them in commandsRapptz2019-03-121-5/+18
|
* Add Category.create_text_channel/Category.create_voice_channel (#1976)Nadir Chowdhury2019-03-121-0/+14
| | | Fixes #1971
* [commands] Refactor quoted_word free function to a StringView method.Rapptz2019-03-122-88/+85
| | | | | Technically a breaking change, however this interface was not documented or guaranteed to exist.
* [commands] Separate view parsing errors from BadArgument.Rapptz2019-03-123-6/+76
| | | | | | | | This causes them to be raised from a new exception named ArgumentParsingError with 3 children for ease with i18n. This is technically a breaking change since it no longer derives from BadArgument, though catching UserInputError will prevent this change from affecting the user.
* Add exception hierarchy to the documentation.Rapptz2019-03-125-3/+85
|
* Revert default parameter use_cached of Attachment.save back to False.Rapptz2019-03-101-1/+1
| | | | Fix #1973
* Fix volume command in basic voice exampleGeroyuni2019-03-091-1/+1
| | | source.volume takes floating point percentages, e.g. 1.0 for 100%
* Moved http.close to before _closed.setNCPlayz2019-03-091-2/+1
|
* Add support for guild bannersSnowyLuma2019-03-094-11/+86
| | | | | | | | Document banner attribute of Guild and Invite Update discord/utils.py Co-Authored-By: SnowyLuma <[email protected]>
* Add support for guild descriptionsTarek13372019-03-082-1/+4
|
* Add support for guild news channels.Rapptz2019-03-083-2/+14
|
* Bump websockets version to 7.0Rapptz2019-03-081-1/+1
| | | | Should be fine. Hopefully. Fix #1787
* Remove outdated playlist.py example.Rapptz2019-03-081-246/+0
| | | | Fixes #1870
* guild.py: change word in create_role's docstringnumbermaniac2019-03-081-1/+1
|
* Small inconsistency in documentationSkyweb2019-03-081-1/+1
| | | :)
* Add github templates and CONTRIBUTING.md file.Rapptz2019-03-085-0/+131
| | | | Fix for #1685
* Have use_cached=True by default for Attachment.save.Rapptz2019-03-061-8/+8
| | | | Also touch up the documentation a bit.
* Added cached saving for attachmentsMaku2019-03-061-3/+9
| | | | Updated docstring
* Fix non-working example in commands documentation.Rapptz2019-03-061-1/+1
|
* Don't reconnect during 4014/4015 in voice websocket.Rapptz2019-03-051-1/+5
|
* [commands] Allow passing of typing.Union into Greedy. Fix #1951Rapptz2019-03-031-1/+1
|
* Add project URLs to setup.pyRapptz2019-03-021-0/+4
|
* Prevent AttributeError when closing HTTPClient early.Rapptz2019-03-021-1/+2
|
* Fix Signature for Greedy/Optional convertersMyst(MysterialPy)2019-03-021-1/+22
| | | | Change Greedy to `[a]...` | `[a=1]...`
* Mock a ConnectionState object to fix wait=True errors in webhooks.Rapptz2019-03-021-6/+37
| | | | Fixes #1898
* Properly clean-up file objects when necessary instead of instantly.Rapptz2019-03-021-19/+25
| | | | Fix #1770
* [commands] Fix name clash overwriting T.__class__.__name__Rapptz2019-02-281-2/+2
| | | | Fixes #1944
* [commands] Allow Converter instances in Greedy. Fix #1939.Rapptz2019-02-271-2/+2
|
* [commands] Error out when someone passes plain Cog.listener decorator.Rapptz2019-02-271-1/+5
| | | | Should make this error easier to catch rather than silent failure.
* Fix typing for Channel.purge's limit kwarg.Steve C2019-02-271-1/+1
| | | PyCharm was throwing a fit when I set it to None. 😒
* Prepare fix for aiohttp 4.0 breaking change with session creation.Rapptz2019-02-271-1/+3
|
* Update Member.joined_at on MESSAGE_CREATE and document it can be None.Rapptz2019-02-272-3/+28
| | | | Fixes #1638
* [commands] Add support for stacking Cog.listener decorator.Rapptz2019-02-271-2/+7
| | | | Fix #1926
* Fix Emoji.__hash__ being None.Rapptz2019-02-261-2/+4
| | | | | | When a type defines __eq__, Python removes its __hash__ function. Fixes #1933
* Add new cog methodsNCPlayz2019-02-261-9/+17
| | | | | | | | Added two new arguments to the parser, and updated defunct cog code. Remove debug remove print statement
* Update Japanese .po files.Rapptz2019-02-244-192/+821
|
* [commands] Fix special method detection for regular function objects.Rapptz2019-02-241-3/+12
| | | | Fixes #1920
* [commands] Remove Bot.get_cog_commandsRapptz2019-02-231-25/+0
|
* [commands] Fix bug in behaviour in the cog inspection methods.Rapptz2019-02-232-6/+11
|
* Better jpeg detection in utils._get_mime_type_for_imageRapptz2019-02-231-1/+1
| | | | Fixes #1901
* 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.