aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add some logging for when ffmpeg processes get terminated.Rapptz2017-07-181-1/+7
|
* [commands] Restart the StringView properly in Context.reinvoke.Rapptz2017-07-181-1/+3
| | | | | | | | | The old code for some reason assumed that the length of the command would be 1. This is because when I tested this I would use single letter command names and it would "just work" when in reality it was completely incorrect. A reminder to thoroughly test instead of just fitting something to work
* [commands] Remove support for pass_context=False in Command.Rapptz2017-07-183-17/+13
|
* Implement new-style NSFW channels.Rapptz2017-07-182-3/+6
| | | | | No idea how these will change in the future but this is barebones enough for now.
* Don't re-raise in Client.connect if it's a clean close code.Rapptz2017-07-141-0/+3
|
* Expose reverse parameter in TextChannel.purgeRapptz2017-07-141-2/+4
|
* Variadic arguments are a tuple not a list.Rapptz2017-07-101-1/+1
|
* Message content is Optional in Message.edit.Rapptz2017-07-101-1/+2
|
* Simplify embed timestamp code due to it being fixed Discord side.Rapptz2017-07-091-8/+1
| | | | See https://github.com/hammerandchisel/discord-api-docs/issues/291
* 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
|