aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove Invite.accept.Rapptz2017-07-081-19/+0
|
* First pass at commands narrative documentation.Rapptz2017-07-0812-4/+589
|
* Fixed broken codeDaniel2017-07-071-2/+2
| | | I should have tested it.
* [commands] unload cog submoduleskhazhyk2017-07-071-0/+3
| | | | | | | | When unloading cogs, currently we do not remove submodules from sys.modules, meaning they will not be reloaded. Removing here makes new imports reload from file. Of course, any already imported modules will still hold a reference to the old module, since they will not re-import it, and will not be forcably unloaded.
* Add basic rewrite voice exampleDaniel2017-07-071-0/+132
|
* Handle everyone role having top priority in permission resolution.Rapptz2017-07-071-2/+13
| | | | | | | | | | | | In Discord, if the @everyone role has an explicit allow but a later role has an explicit deny, the permission is denied rather than allowed despite the fact that on Discord, allows have a higher priority than denies. This is because the @everyone role is supposed to be the first role to be applied, while the rest could be applied in an aggregate fashion. Fixes #630.
* Hide constructor for objects that shouldn't be created by users.Rapptz2017-07-051-19/+19
|
* Accidentally left a print statement.Rapptz2017-07-051-1/+0
|
* Fix TextChannel.purge not working.Rapptz2017-07-041-1/+1
|
* Implement a LRU cache for private channels.Rapptz2017-07-042-5/+27
| | | | | | Another fix related to the discord issue[1]. [1]: https://github.com/hammerandchisel/discord-api-docs/issues/184
* Don't unnecessarily re-create private channels.Rapptz2017-07-041-3/+6
| | | | | | | | New API change[1] will make it so CHANNEL_CREATE will keep getting sent for private channels, so might as well avoid the overhead of constantly creating the channel if we can avoid it. [1]: https://github.com/hammerandchisel/discord-api-docs/issues/184
* Fixed a typo in calls.pyJW2017-07-041-1/+1
| | | Suggested by libffi-dev-on on Discord. Changed Optiona into Optional
* Rename AsyncIterator.get to next to prevent shadowing.Rapptz2017-07-044-13/+26
|
* handle Game.name being Nonekhazhyk2017-07-031-1/+1
| | | | | | | | | re #221, Game.name can still be None, which will cause TypeError on str(game). Currently discord does not treat these weird statuses uniformly, with it showing as playing a game on mobile, but not playing a game on desktop. It may be useful to know users are in this weird state.
* [commands] fix unloading incorrect cogskhazhyk2017-07-031-3/+6
| | | | | | unload_extension would incorrectly unload cogs/listeners of other extensions if the name of one was a prefix of another.
* [commands] clean up remove_cog documentationkhazhyk2017-07-031-3/+2
| | | remove_cog always returns None, even if the cog is found.
* Fix wrong order in migrating docs.Rapptz2017-07-021-2/+2
|
* Allow PartialReactionEmoji in add_reaction and remove_reaction.Rapptz2017-07-022-3/+12
|
* Fix Message.remove_reaction and Message.add_reaction taking in ReactionRapptz2017-07-021-4/+6
|
* Bump requirements to aiohttp 2.2 and PyNaCl 1.1.2Rapptz2017-07-012-2/+2
|
* [commands] Improve commands.when_mentioned_or documentation.Rapptz2017-07-011-2/+19
|
* Add when_mentioned and when_mentioned_or to the documentation.Rapptz2017-07-011-0/+4
|
* Add support for user flags in Profile.Rapptz2017-06-304-6/+48
|
* Typo in docstring for TextChannel.delete_messagesRapptz2017-06-291-1/+1
|
* Fix typo in migrating page.Rapptz2017-06-291-4/+4
|
* Allow TextChannel.delete_messages to take lists of 0 or 1 element.Rapptz2017-06-291-8/+22
|
* [commands] Do not take up 'command' keyword-argument in Context.invoke.Rapptz2017-06-271-3/+12
| | | | | It was annoying when commands would have a keyword-only argument named 'command', such as a help command or a disable command.
* [commands] Add parameter that failed in fall-back BadArgument error.Rapptz2017-06-261-1/+1
|
* Add Reaction.__str__Rapptz2017-06-261-1/+4
|
* Properly sort roles and discard everyone role in Member.colour.Rapptz2017-06-241-2/+4
|
* Fix missing lazy logging format calls.Rapptz2017-06-241-5/+5
| | | | Not sure how I missed these.
* Actually expose Message.webhook_id.Rapptz2017-06-241-0/+1
|
* [commands] Ensure that Context.command is the command in Command.can_runRapptz2017-06-211-17/+23
| | | | | | | | | Previously, Context.command was not guaranteed to be the actual command being checked if it can run. This could be troublesome when implementing help commands or when using the default help command. This new change allows at least for the guarantee that Context.command to be technically correct in Command.can_run.
* [commands] Add __global_check_once to list of cog functions.Rapptz2017-06-202-0/+8
|
* [commands] Add Bot.check_once for a global check that is called once.Rapptz2017-06-202-12/+77
| | | | | | | There is a counterpart for this in cogs, called __global_check_once. This allows for predicates that would filter a command globally that do not necessarily require rechecking in the case of e.g. the help command such as blocking users or blocking channels.
* Fix passing None to afk_channel in Guild.edit.Rapptz2017-06-191-3/+11
|
* [commands] Try to use the proper name when conversion fails.Rapptz2017-06-171-1/+6
|
* Properly quote reason header so non-ASCII works in audit log reasons.Rapptz2017-06-171-1/+2
|
* Make checking for truth-ness of EmbedProxy easier.Rapptz2017-06-161-0/+3
|
* [commands] Fix cog error detection in the default global error handler.Rapptz2017-06-131-1/+1
|
* [commands] Don't display default error handler if a cog local exists.Rapptz2017-06-121-2/+8
|
* Fix format string in documentation.Rapptz2017-06-121-1/+1
|
* Downgrade PartialReactionEmoji to str in non-raw reaction events.Rapptz2017-06-091-1/+4
|
* Defer logging formatting until the logger is actually called.Rapptz2017-06-096-19/+17
| | | | | This would cause unnecessary format calls even if you didn't have logging enabled.
* Implement "partial" message events.Rapptz2017-06-097-26/+178
| | | | | These are events that get triggered regardless of the state of the message cache. Useful for getting data from before the bot was booted.
* Allow sending files list smaller than 2 elements in Messageable.sendBeatButton2017-06-071-4/+3
| | | | The previous restriction was unwarranted.
* Fix mixed order in migrating docs.Rapptz2017-06-051-1/+1
|
* [commands] Add docstrings for extension loading.Rapptz2017-06-051-0/+42
|
* Fix AuditLogDiff.__iter__ to return an actual iterable.Rapptz2017-06-041-1/+1
| | | | Fixes #589.
* Fix typing/history showing up twice in the documentation.Rapptz2017-06-032-7/+7
|