Commit Graph
100 Commits
Author SHA1 Message Date
Rapptz c09cf779a3 Fix tag references in builds 2021-01-08 04:39:24 -05:00
Rapptz 166f837693 Changelog fixes 2021-01-08 00:32:49 -05:00
Rapptz fc65526e9c Bump version to 1.6 2021-01-07 23:57:15 -05:00
Rapptz 50bc7a1523 Add changelog for v1.6 2021-01-07 23:57:15 -05:00
Rapptz 7c149312f0 Update copyright year in the documentation 2021-01-07 23:57:15 -05:00
Rapptz 442962596e Dispatch user updates if the global cache gets stale in update events 2021-01-07 23:57:14 -05:00
Rapptz 3a75816ba1 Support setting the preferred locale via Guild.edit
Fix #6267
2021-01-05 22:43:22 -05:00
Rapptz c793737e64 Fix search not working on mobile 2021-01-01 22:09:14 -05:00
Rapptz 5c868ed871 Fix SyntaxError from PR implementing presences in member querying 2021-01-01 09:37:47 -05:00
Rapptz 94f76e6394 Fix webhook state coercion leading to unexpected behaviour.
Fix #6220
2020-12-29 08:26:39 -05:00
Rapptz ef67b56fc6 Change highlight text colour on dark theme
Fix #6215
2020-12-26 20:49:26 -05:00
Rapptz b778171188 Fix 404 in search pages.
Fix #6210
2020-12-25 14:21:58 -05:00
Rapptz eb11079569 Document more guild features 2020-12-22 07:18:40 -05:00
Rapptz 66ede7c5a0 Fix search highlighting not working 2020-12-21 03:18:47 -05:00
Rapptz ede7b4762a Fix constructor colours being off in dark mode 2020-12-19 06:11:49 -05:00
Rapptz 674f414ae0 Add attributetable to WebhookMessage 2020-12-19 06:00:21 -05:00
Rapptz a534aeac5d [matrix] Flip collapsible arrow direction 2020-12-19 05:52:43 -05:00
Rapptz 9013e1d1a2 [tasks] Add missing attributetable to tasks 2020-12-19 00:51:59 -05:00
Rapptz 2a6ea3532b Rework index page to take less vertical space 2020-12-19 00:48:35 -05:00
Rapptz 17b49c5a46 [commands] Make documentation use new attributetable 2020-12-18 21:35:27 -05:00
Rapptz 4ef6d7ec1e Add missing attributetable to new classes 2020-12-18 21:35:27 -05:00
Rapptz 13dacb3994 Thicken admonition borders a little 2020-12-18 21:18:58 -05:00
Rapptz eba0aaa351 Fix collapsible sidebar not working 2020-12-18 21:18:57 -05:00
Rapptz 7cc95d9dac Use the constructed value in the settings 2020-12-18 21:18:57 -05:00
Rapptz 94cc151ebf Fix tooltips in settings and make strings translatable 2020-12-18 21:18:57 -05:00
Rapptz 1619043c4e Move setting load to DOMContentLoaded 2020-12-18 21:18:57 -05:00
Rapptz 18cfc4a4a5 Reduce CSS variable usage 2020-12-18 21:18:56 -05:00
Rapptz 21ac462c85 Fix versionmodified not being italics 2020-12-18 21:18:56 -05:00
Rapptz 155a10bf88 Change colour scheme and admonition colours
This should make both themes finally look decent
2020-12-18 21:18:56 -05:00
Rapptz c97335873b Redesign admonitions to look a little better.
Colours still need to be reworked though.
2020-12-18 21:18:55 -05:00
Rapptz 407d7bee1a Switch icon set over to Material Icons intead of FontAwesome 2020-12-18 21:18:54 -05:00
Rapptz 875a701edb Rework attributetable to look prettier 2020-12-18 21:18:54 -05:00
Rapptz b28c76cda1 Refactor CSS to use a colour palette and make light theme greyer. 2020-12-18 21:18:54 -05:00
Rapptz 022a341476 Make tables scroll if they overflow. 2020-12-18 21:18:54 -05:00
Rapptz 92fffb5daa Revert "Fix table wrapping"
This reverts commit c911cd0dbd.
2020-12-18 21:18:54 -05:00
Rapptz df57392aea Fix table wrapping 2020-12-18 21:18:54 -05:00
Rapptz 219dae5a56 Fix margins in 600px view of settings and label 2020-12-18 21:18:53 -05:00
Rapptz 2dc8591258 Show classmethods separately in attribute table 2020-12-18 21:18:53 -05:00
Rapptz 6351ef344b Alphabetically sort attributetable output 2020-12-18 21:18:53 -05:00
Rapptz e9fb6b7d67 Show the search bar on mobile 2020-12-18 21:18:53 -05:00
Rapptz 1253a372d9 Various RTD related fixes. 2020-12-18 21:18:53 -05:00
Rapptz 33a4388e6e First pass at double header display 2020-12-18 21:18:52 -05:00
Rapptz c31b443f91 Use new HTML5 <section> instead of <div class="section"> 2020-12-18 21:18:52 -05:00
Rapptz e648cfbcad First pass at centering content for large displays 2020-12-18 21:18:52 -05:00
Rapptz 0e75a21a67 Add dark theme for codeblocks 2020-12-18 21:18:52 -05:00
Rapptz d05fd3552f Actually make overflowing have a scrollbar on mobile 2020-12-18 21:18:52 -05:00
Rapptz d69d509453 Fix codeblock related things with mobile responsiveness. 2020-12-18 21:18:51 -05:00
Rapptz 51d76e819b Proper padding for the copy button 2020-12-18 21:18:51 -05:00
Rapptz 385657179d Reverse the related links 2020-12-18 21:18:51 -05:00
Rapptz 25e3a31827 Use html_js_files instead of the old approach to add JS files. 2020-12-18 21:18:51 -05:00
Rapptz 2e3b8dc3d1 Cleanup copy button CSS and add a hover-over explanation. 2020-12-18 21:18:51 -05:00
Rapptz 7607d3628d Rewrite the DOM to use CSS grids
This also rewrites the CSS to use CSS variables. Currently this isn't
done to codeblocks however.
2020-12-18 21:18:51 -05:00
Rapptz 4dcf4bc6f4 Use actual viewport tag with initial-scale set to 1 2020-12-18 21:18:50 -05:00
Rapptz fd14cf7b81 Bump Sphinx to 3.0.3 2020-12-18 21:18:50 -05:00
Rapptz 5bd05b194d Move table JS outside of scrolling 2020-12-18 21:18:50 -05:00
Rapptz 5fbb340339 Bump Sphinx to 2.4.4 2020-12-18 21:18:50 -05:00
Rapptz 9b88c63163 Add attributetable and add some class-level sections.
The extensions have yet to receive this treatment and CSS needs work,
but for now this is fine.
2020-12-18 21:18:47 -05:00
Rapptz 93f102ca90 Add support for Member.pending boolean attribute 2020-12-18 21:02:22 -05:00
Rapptz f9dd200314 [commands] max_concurrency comes before cooldowns
Fix #6172
2020-12-17 22:21:45 -05:00
Rapptz 3fea697ba5 Add versionadded string for Emoji.url_as 2020-12-17 22:21:45 -05:00
Rapptz 6515f33978 [tasks] Fix a typo in documentation 2020-12-14 22:18:40 -05:00
Rapptz 0216db0c0a [tasks] Add support for manually calling the wrapped coroutine 2020-12-14 22:11:37 -05:00
Rapptz 52d587d286 Allow PartialMessage to work with DM channels as well 2020-12-11 02:32:51 -05:00
Rapptz 186f4968d3 Export to_message_reference_dict to make PartialMessage.reply work 2020-12-11 00:39:05 -05:00
Rapptz ebf623d9de Add operations you can do to a Message and PartialMessage to docs 2020-12-11 00:32:38 -05:00
Rapptz 3fe6d261f1 Add PartialMessage to allow working with channel/message_id pairs.
Fix #5905
2020-12-11 00:32:38 -05:00
Rapptz 44dc7a8e02 Add support for editing and deleting webhook messages.
Fix #6058
2020-12-09 20:15:35 -05:00
Rapptz b00aaab0b2 Revert Message.edit logic that deals with allowed_mentions
It made no sense here.
2020-12-08 21:13:29 -05:00
Rapptz 6ea7fce828 [commands] Cog unload failures are swallowed.
Fix #6113
2020-12-03 19:17:28 -05:00
Rapptz a4cb71b64e Fix Message.to_reference from the MessageReference changes 2020-11-27 03:31:10 -05:00
Rapptz 5ef30e34e5 Correct docstring missing ] 2020-11-27 02:36:14 -05:00
Rapptz 34f2fb36b1 Added MessageReference.resolved attribute to get replied to message 2020-11-27 02:24:39 -05:00
Rapptz 1014bfcb63 Allow MessageReference to be constructible by users 2020-11-27 01:08:52 -05:00
Rapptz bd6ab93348 Code cleanup involving enums and message replies 2020-11-27 00:32:08 -05:00
Rapptz 12d0ae71df Add a way to check if the websocket is rate limited.
This is mainly for low level decision making for utilities that need
to know whether to fetch a member by HTTP or to query through the
websocket.

The library already does this trick in some places so it's only fair
that end users possess the same ability as well.
2020-11-26 04:43:15 -05:00
Rapptz e65dab3b23 Implement role tags.
This comes with:

* The RoleTags class
* Role.is_premium_subscriber()
* Role.is_bot_managed()
* Role.is_integration()
* Guild.self_role
* Guild.premium_subscriber_role
2020-11-26 01:57:24 -05:00
Rapptz 5bad633987 Fix preview_asset key name in Sticker 2020-11-23 06:23:06 -05:00
Rapptz 0456458ad1 [commands] Fetch user if an ID is passed and cache lookup fails. 2020-11-23 06:22:44 -05:00
Rapptz c8954906cb Sticker implementation cleanup 2020-11-23 06:05:25 -05:00
Rapptz f174365d33 Ensure member key is not overwritten by author key in MESSAGE_UPDATE
This also coerces the older message to take the member data from the
newer message so the types are not incompatible.

Fix #5999
2020-11-23 06:02:27 -05:00
Rapptz 7a3a571e0a Don't store a user cache if there's no member intent or cache is off
Without a cache or member intent the user cache can get out of date
with no events to update the underlying user in the member object.

Ref: #6034
2020-11-23 05:24:13 -05:00
Rapptz f9b5cead31 Suppress the creation of a command window from ffmpeg on Windows
Fix #6038
2020-11-21 23:12:15 -05:00
Rapptz 7f3737fcc2 Bump dependencies for 3.9 to work without build tools
Fix #5984, #5970
2020-11-21 22:59:56 -05:00
Rapptz 52865dfa99 Clear the connected flag when potentially reconnecting the player
Fix #5953
2020-11-21 22:53:04 -05:00
Rapptz b76b5b42c0 Fix attribute error during rapid disconnects in VoiceClient.
Fix #6039
2020-11-21 22:47:04 -05:00
Rapptz 431ee8794b Fix error with templates not having access to member cache flags.
This also changes the attribute from having an underscore

Fix #5986
2020-11-21 22:42:59 -05:00
Rapptz bdcc645cbf Bump version for development purposes 2020-11-21 22:19:23 -05:00
Rapptz 6caa983b5e Clarify Colour.random RNG 2020-11-21 22:18:39 -05:00
Rapptz abe54f5bdc Translation sync with crowdin 2020-10-24 00:10:06 -04:00
Rapptz 763d46cd7a Version bump to v1.5.1 2020-10-19 19:44:10 -04:00
Rapptz 0be2d37e7a Add changelog for v1.5.1 2020-10-19 19:42:54 -04:00
Rapptz 707cb47438 Fix error when querying members from the gateway.
I accidentally made this return True instead of the actual member list
2020-10-19 19:37:16 -04:00
Rapptz 1a6295dffb Allow concurrent calls to guild.chunk()
This allows people who write guild.chunk() calls in highly concurrent
places such as on_message or checks to not spam the gateway with an
actual request and instead waits for the pre-existing request to finish
2020-10-19 02:47:03 -04:00
Rapptz 3daaadafdd [commands] Lazily fetch members in discord.Member converters
This makes commands taking members mostly work transparently without
much effort from the user.
2020-10-17 23:05:22 -04:00
Rapptz 61e25cb090 Ensure our own member is never evicted from the cache in any policy. 2020-10-17 23:02:03 -04:00
Rapptz 2509ca6a82 Add internal method to check if the websocket is currently ratelimited 2020-10-17 22:51:29 -04:00
Rapptz b07d474bd6 Fix attribute errors when timing out during chunking start-up 2020-10-17 22:02:44 -04:00
Rapptz 21ed9f61d2 Fix disconnect when trying to move to another voice channel.
Not overly proud of this implementation but this allows the library
to differentiate between a 4014 that means "move to another channel" or
"move nowhere". Sometimes the VOICE_STATE_UPDATE comes before the
actual websocket disconnect so special care had to be taken in that
case.

Fix #5904
2020-10-17 22:01:57 -04:00
Rapptz b91ddc6f4e Mark intent alias flags as actual aliases to skip them in __iter__
Fix #5945
2020-10-17 18:50:56 -04:00
Rapptz 1c03a4aac9 Evict keys when they're set to None in PermissionOverwrite
Fixes #5929
2020-10-17 01:59:00 -04:00