aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed ExponentialBackoff not working when integralMatt Gardner2017-08-081-1/+1
|
* Remove GuildChannel.is_defaultSinisterRectus2017-08-082-13/+2
|
* Add documentation examples for AsyncIterator and change_presence.Gorialis2017-08-083-2/+33
|
* Add operation documentation for VerificationLevel, ContentFilterGorialis2017-08-021-0/+42
|
* Change VerificationLevel, ContentFilter to be IntEnumsGorialis2017-08-021-3/+3
|
* Remove Guild.create_invite too since it relies on a default channel.Rapptz2017-07-312-39/+1
|
* Remove Guild.default_channelRapptz2017-07-312-7/+12
| | | | The concept no longer exists.
* Fix AsyncIterator documentation to properly show coroutines.Rapptz2017-07-291-4/+6
|
* Rename avatar_is_animated to is_avatar_animated and make it a method.Rapptz2017-07-271-5/+4
|
* Continue connection loop with back-off if connecting fails >5 times.Rapptz2017-07-251-1/+6
|
* allow trailing null bytes in uploaded jpegskhazhyk2017-07-251-1/+1
|
* add Guild.icon_url_askhazhyk2017-07-251-1/+35
| | | | Guild icons can also be up to 1024px, jpg, png, or webp
* avatar_url_as improvementskhazhyk2017-07-252-8/+38
| | | | | | | | | | | | | | | | | | | static_format will only apply to static (not animated) avatars. Makes it easier to grab gif-or-'format' of an avatar. Defaults to 'webp' This is for a similar usecase to avatar_url_as(format=None), except one can specify the non-animated format, instead of always using webp. add User.avatar_is_animated property. add validation for avatar_url_as, since invalid arguments result in a url which will return 415, which can be confusing for a user. (They just see a blank page) Discord accepts size=16-2048, but images cap at 1024px, so accept 16-1024 Discord accepts "jpg", "jpeg", "png", "gif", and "webp", *unless* the avatar is not animated, in which case "gif" is not supported. :\
* accept_invite() doesn't exist on rewriteJuan2017-07-251-3/+0
|
* Add bulk argument to TextChannel.purgekhazhyk2017-07-241-2/+7
| | | | | bulk=False will never use bulk message delete. Useful e.g. for using the purge interface for deleting the bot's own messages.
* Raise in HTTPClient.request when out of retrieskhazhyk2017-07-221-1/+3
| | | | | | | | | | | Raise after loop completes without returning with most recent values for r, data. This is a bit less fragile than checking tries < 4, since changing the retry count requires changing values in multiple places. (There seemed to already be handling in the 502 retry, tries <= 5, which always evaluated to true, e.g.) Previously, once out of retries, we would always return None without raising. This won't NameError so long as we make at least one HTTP request.
* Retry on 500 in HTTPClient.requestkhazhyk2017-07-221-2/+2
| | | | | Discord official client retries on 500, so worst case scenario, we're not any worse than the official client which seriously outnumbers us.
* Fix waiting for resume when calling stop() on AudioPlayerDaniel2017-07-211-0/+2
|
* Call cleanup on AudioSource.__del__.Rapptz2017-07-191-0/+7
|
* [commands] Fix Command.root_parent not properly working.Rapptz2017-07-191-2/+4
|
* 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
|