Commit Graph
100 Commits
Author SHA1 Message Date
Rapptz 4aee7fed5d [commands] Only remove top level commands on cog load failure 2021-03-28 18:35:59 -04:00
Rapptz 8657edfc99 Fallback to empty string for unavailable guild __str__ 2021-03-25 09:11:00 -04:00
Rapptz 5cb5126548 Make Attachment hashable and castable to str 2021-03-25 09:08:22 -04:00
Rapptz 1c8d1b0289 Recreate aiohttp.FormData objects during request retries
Fixes #6531
2021-03-24 08:50:34 -04:00
Rapptz 0b19fabbf0 Remove deprecated uses of about 2021-03-24 08:36:53 -04:00
Rapptz 9af99d2634 Update issue template 2021-03-24 08:35:41 -04:00
Rapptz 4c4d75dc29 Disallow empty sequences in Guild.query_members user_id parameter 2021-02-28 23:56:14 -05:00
Rapptz abfc07f968 Fix up previous PR mistake with intentional backslashes 2021-02-21 07:35:31 -05:00
Rapptz a8f44174ba Add Permissions.use_slash_commands 2021-02-18 07:28:37 -05:00
Rapptz 272339d5e6 Add support for the new permission serialization scheme. 2021-02-18 07:26:20 -05:00
Rapptz 88c23125ff Allow CustomActivity emoji to be constructed as documented.
Fix #4049
2021-02-18 00:43:19 -05:00
Rapptz 0cd1a88316 Clarify Message.nonce documentation
Fix #2451
2021-02-18 00:23:58 -05:00
Rapptz a0404807d5 [commands] Add support for rgb function in ColourConverter
This also adds support for 3 digit hex.

Fixes #6374
2021-02-07 07:18:56 -05:00
Rapptz adae90400f Some grammar nits 2021-02-02 03:57:09 -05:00
Rapptz 3030f8ce0d Fix some validation errors with the template yaml 2021-02-02 03:49:06 -05:00
Rapptz 82edc252e0 Switch issue templates to use the new issue forms alpha 2021-02-02 03:46:20 -05:00
Rapptz 30c06bc55f Always inject the HTML builder even in RTD builds 2021-02-02 03:01:12 -05:00
Rapptz 61884dd9ac Use member provided data in typing_start event if not in cache
Apparently Discord had this all along.

ref: #5965, #5983
2021-01-24 05:21:13 -05:00
Rapptz c5a44d8303 Version bump for development 2021-01-16 05:41:21 -05:00
Rapptz b9a99238e8 [commands] Add Command/Cog.has_error_handler
This allows querying the state without relying on internal undocumented
attributes.
2021-01-15 06:00:45 -05:00
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