aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Support discordapp.com invite URLs.Rapptz2018-11-251-1/+1
|
* Add support for default notification level in audit logs and Guild.editRapptz2018-11-255-21/+40
|
* Support webp in _get_mime_type_for_imagekhazhyk2018-11-241-0/+2
| | | untested
* Add Guild.default_notificationsChris2018-11-243-3/+21
|
* [commands] Add support for IDs in the role related checks.Xua2018-11-241-17/+25
| | | | | | | | | This affects: * commands.has_role * commands.has_any_role * commands.bot_has_role * commands.bot_has_any_role
* Fix is_in_guild example checkLyricLy2018-11-241-1/+1
|
* Translated some parts of the documentation to Japanese.Episword2018-11-244-2414/+2543
| | | | Mainly files api.po, migrating.po, commands api.po and commands.po.
* Add channel category cooldown bucket typeDice2018-11-242-5/+9
|
* Outline the logic of `bool` convertersscragly2018-11-241-0/+12
| | | As a `bool` converter is treated differently from other callable (basic) converters, the explanatory docs should outline that it is evaluated differently from a simple type cast, and what logic is used in determining how the content is evaluated.
* Group Advanced Converters and Inline Advanced Convertersscragly2018-11-241-58/+58
| | | The Inline Advanced Converters are a logical extension of the Advanced Converters subject, and as such should be placed under that section without an unrelated converter type breaking the two up.
* bot.unload_extension: also allow events with no modulebmintz2018-11-241-6/+4
| | | | | | | | | | It turns out that events created in an eval command also cause the issue described in #1506. Ensure that events we remove are part of a module as well. Also performs minor comment maintenance ("x", "first y", "then z") -> ("x", "y", "z")
* Trim whitespace in artist names in Spotify.artistsAmit Katz2018-11-241-1/+1
| | | | | | Basically Discord retrieves the data like `artist1; artist2; artist3` and when you split only by `;` the results will be: `[artist1, " artist2", " artist3"]`
* Webhooks: add support for multi-file uploadTerrance2018-11-241-8/+28
| | | | | | | | | `Webhook.send()` now accepts a `files` kwarg holding a list of `File` objects, which are included in the HTTP request as `file1`, `file2` and so on. This is an undocumented feature of the Discord API, but is analogous with the client's sending of messages with multiple files.
* Actually drop copy.copy in MemberHornwitser2018-11-241-6/+0
| | | | | | Remove the old and slow Member._copy implementation that was left over by accident in 095f0ec. Since it was defined later it overrode the new implementation and rendered it moot.
* Add support for multiple activitiesSnowyLuma2018-11-246-12/+24
|
* add support for Bug Hunter and Early Supporter flagsbmintz2018-11-243-4/+20
|
* Add missing asyncio imports from the examplesCapn2018-11-243-0/+3
|
* [lint] Removed unused variable handlerHornwitser2018-11-241-1/+0
| | | | Left over by the removal of handlers in 2721689.
* [lint] Remove extra whitespace in guild.pyHornwitser2018-11-241-1/+1
| | | | Remove trailing whitespace in guild.py introduced by 3727ea9.
* [lint] Changed missed docstrings to raw-stringHornwitser2018-11-241-2/+2
| | | | Missed by a4d1599 despite being pointed out in #1570.
* [lint] Fix import orderHornwitser2018-11-2419-70/+83
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* [commands] Remove duplicated quote entriesHornwitser2018-11-241-2/+0
| | | | | Remove two duplicated entries from the quote mapping in commands.view. These were introduced at the creation of this mapping in ea061ef.
* [lint] Do log formating lazilyHornwitser2018-11-242-4/+4
| | | | | Convert log("fmt" % args) to log("fmt", args) as the latter is lazy and does not do the formating if the string is never logged.
* [lint] Simplyfy util.valid_icon_sizeHornwitser2018-11-241-1/+1
| | | | Remove redundant paranthesis and checks from util.valid_icon_size.
* [lint] Remove redundant paranthesisHornwitser2018-11-248-15/+15
| | | | | Remove redundant parenthisis around await expressions. Left over from f25091ef.
* [lint] Replace equality comparisons to singletonsHornwitser2018-11-243-11/+11
| | | | | | | | Restrict the values accepted by comparisons with booleans to be actual booleans. Minor breaking of undocumented behaviour in permissions; the value to set bits to must be booleans (as indicated by the type error thrown).
* [lint] Rename exception variables to excHornwitser2018-11-2410-66/+66
| | | | | Use the more explicit (and common) exc instead of e as the variable holding the exception in except handlers.
* [lint] Remove redundant exception variablesHornwitser2018-11-245-16/+13
| | | | | | Use bare raise statement when reraising the exception that occured, and remove unused exception variables. Also remove a pointless exception handler in discord.opus.
* [lint] Limit unneccessarily broad except clausesHornwitser2018-11-2411-19/+19
| | | | Add exception qualifier(s) to bare except clauses swallowing exceptions.
* Revert "Rework documentation to not duplicate inherited members."Rapptz2018-10-115-28/+44
| | | | This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
* [commands] Add call_once keyword-only parameter for Bot.remove_checkRapptz2018-10-111-7/+8
| | | | | Technically a breaking change. This is to be a parallel with the Bot.add_check interface.
* Add Guild.splash_url_asMatt (IPv4)2018-10-112-7/+38
|
* Remove outdated note about bot accounts.MusicOnline2018-10-111-2/+0
| | | | They can now delete all emoji
* Remove "Is there any documentation for ext.commands?" FAQMusicOnline2018-10-051-12/+0
|
* Update set "Playing" status FAQMusicOnline2018-10-051-4/+11
|
* Fix up Guild.create_custom_emoji docstring.Rapptz2018-10-031-1/+1
|
* Rework documentation to not duplicate inherited members.Rapptz2018-10-035-44/+28
| | | | This will probably be reverted in 1 week.
* Add note regarding MORE_EMOJI in Guild.create_custom_emojiMusicOnline2018-10-031-1/+2
|
* Correct Guild.create_custom_emoji documentationMusicOnline2018-10-021-2/+2
|
* Add support for AuditLogDiff.slowmode_delay.Rapptz2018-09-252-6/+14
|
* [commands] Fix NameError in clean_content converterRapptz2018-09-251-1/+1
|
* Don't try to close shards if there are none yet.Gorialis2018-09-261-1/+3
|
* Fix NameError and duplicate insertion bug when moving roles.Rapptz2018-09-241-1/+1
|
* Update Japanese documentation stringsRapptz2018-09-244-2746/+3012
|
* [commands] Elaborate more on disallowed types in Greedy and OptionalRapptz2018-09-242-1/+8
|
* Optimise tight loops in DiscordGateway.received_messageRapptz2018-09-244-44/+53
| | | | | | * type(x) is y is faster than isinstance(x, y) * Re-arrange if-statements for common statements * Drop handler getattr for most events that don't use it
* Optimise some member and user related routines.Rapptz2018-09-243-5/+33
| | | | | | | * Skip user update if possible * Drop copy.copy in favour of manual copy Credit to Hornwitser for these findings.
* Change internal representation of roles in Member and Emoji.Rapptz2018-09-245-21/+67
| | | | | | | | | | | | | | | Introduce a new internal type, SnowflakeList, which has better memory footprint over a regular list or set of roles. It is suspected that there will be a 9x reduction of memory for every Emoji instance and a 48 byte saving per Member instance. However, these savings will probably only be evident on larger bots. As a consequence of this change, Member.roles is now computed lazily. Currently I am not sure if I want to do the initial sorting on the SnowflakeList for Member, as this comes with a O(n log n) cost when creating a Member for little purpose since SnowflakeList.has is not overly relied on. If CPU time becomes an issue this might change.
* Change internal role storage in Guild to a dict instead of a list.Rapptz2018-09-249-46/+61
| | | | | | | | | | | | | | | | This adds the following APIs: * Guild.get_role This removes the following APIs: * Guild.role_hierarchy To compensate for the removed APIs, Guild.roles is now a sorted list based on hierarchy. The first element will always be the @everyone role. This speeds up access at the cost of some memory, theoretically.
* Take the default role property into account when comparing roles.Rapptz2018-09-241-0/+6
|