Commit Graph
100 Commits
Author SHA1 Message Date
Rapptz 88294fe352 Fix Section.accessory setter not updating view bindings 2025-10-08 08:52:11 -04:00
Rapptz 651699fcd2 Remove buggy and unintentional Container.children setter 2025-10-05 02:45:23 -04:00
Rapptz 8f90b7d534 Add shoutout to Button and Thumbnail accessories for Section 2025-09-28 16:07:30 -04:00
Rapptz 830858cde8 Add MessageType.is_deletable to fix Messageable.purge failing
Fix #10319
2025-09-28 13:17:54 -04:00
Rapptz 78ff16621a Fix certain component IDs not being able to be settable afterwards
Fix #10305
2025-09-28 13:05:23 -04:00
Rapptz 25a4dbe86a Remove id from LabelComponent.__repr__ 2025-08-31 16:00:59 -04:00
Rapptz 6c4f8c410d Add changelog for v2.6.2 and v2.6.3 2025-08-31 15:14:54 -04:00
Rapptz 89d5cbd78a Move v2 item check from BaseView to View 2025-08-31 14:18:50 -04:00
Rapptz 2f1f5fe2e2 Revert "Fix context install decorators to correctly restrict commands"
This reverts commit ce9f5ad1ba.
2025-08-26 21:12:03 -04:00
Rapptz 116107d7ed Add accessory to Section.__repr__ 2025-08-26 11:54:18 -04:00
Rapptz d5946d1cbc Fix bounds for TextInput and Label generic
Fix #10280
2025-08-25 11:29:44 -04:00
Rapptz 63357e0113 Revert "Add second generic parameter for view for DynamicItem"
This reverts commit fe7ce982f3.
2025-08-24 13:21:54 -04:00
Rapptz 9677dada1f Fix Modal not raising when hitting the 5 item limit 2025-08-24 09:42:41 -04:00
Rapptz 753db1724b Add changelog for v2.6.1 2025-08-24 09:29:41 -04:00
Rapptz bb45e050b9 Change Modal inheritance to BaseView instead of View 2025-08-24 09:29:41 -04:00
Rapptz fe7ce982f3 Add second generic parameter for view for DynamicItem 2025-08-24 09:12:12 -04:00
Rapptz ab6efd02bc [tasks] Log handled exceptions before sleeping
Fix #10276
2025-08-22 19:59:56 -04:00
Rapptz d00ac622bc Remove uses of deprecated Logger.warn method 2025-08-22 19:52:12 -04:00
Rapptz 6d5013030b Flip if statement for wrapped ActionRow components in modals 2025-08-22 19:28:37 -04:00
Rapptz de09031899 Allow TextDisplay as a top-level component in modals 2025-08-22 19:18:33 -04:00
Rapptz 0b7d30bbe3 Fallback to None for AuditLogAction.category 2025-08-22 19:14:01 -04:00
Rapptz 9bda89b0d6 Update total count tracking to always consider the wrapper object 2025-08-21 22:20:12 -04:00
Rapptz 20f4bc40ad Remove outdated comment 2025-08-20 06:53:03 -04:00
Rapptz 59e28af19f Fix Section.accessory being MISSING 2025-08-20 06:50:23 -04:00
Rapptz 8f83267ce9 Move UnfurledMediaItem and MediaGalleryItem to interactions page 2025-08-19 21:09:09 -04:00
Rapptz 283ed20956 Use List[Component] in docs instead of spelling them all out 2025-08-19 20:55:02 -04:00
Rapptz 9dbf13c2f9 Document Section.accessory as an attribute 2025-08-19 04:25:29 -04:00
Rapptz a5a4bcf61b Update Permissions.manage_messages docstring 2025-08-19 04:09:21 -04:00
Rapptz ad48815926 Add Permissions.pin_messages 2025-08-19 04:04:09 -04:00
Rapptz 44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
Rapptz 3ef6272e07 Fix error with View.from_message when having multiple items 2025-08-18 19:04:19 -04:00
Rapptz d58c055c5b Remove unused import 2025-08-18 15:07:44 -04:00
Rapptz 1bc330a48a Version bump for development 2025-08-18 15:07:05 -04:00
Rapptz 9845a53d3d Version bump to v2.6.0 2025-08-18 15:00:51 -04:00
Rapptz 714df2cfde Add changelog for v2.6 2025-08-18 15:00:51 -04:00
Rapptz 5d49f11709 Remove View.from_dict typing 2025-08-18 15:00:51 -04:00
Rapptz fc12a41cdf Run black 2025-08-18 14:49:32 -04:00
Rapptz 064cb7af71 Add View.total_children_count 2025-08-18 14:42:55 -04:00
Rapptz f08c042217 Add content_length method to LayoutView and container items 2025-08-18 14:33:15 -04:00
Rapptz e00bb0b0f3 Change info directive to note 2025-08-18 13:44:29 -04:00
Rapptz 13d1fbee58 Add more detail to what filenames are allowed in File.uri 2025-08-18 13:33:30 -04:00
Rapptz 76258d071a Add note for File.uri and ASCII only names 2025-08-18 13:27:18 -04:00
Rapptz 6f6d990195 Fix type error with ItemCallbackType 2025-08-18 07:13:50 -04:00
Rapptz 0c98251087 Move Locale.language_code documentation to where it belongs 2025-08-18 06:19:30 -04:00
Rapptz 4854c56d58 Allow discord.File in places where UnfurledMediaItem or str are allowed 2025-08-18 06:11:59 -04:00
Rapptz 98d2113cdd Hide interaction_check where it isn't really applicable 2025-08-18 05:05:05 -04:00
Rapptz 9ef5b054e5 Refactor total children count to an overrideable method 2025-08-18 04:49:20 -04:00
Rapptz 5887ce1430 Fix settings example not resetting option default state 2025-08-18 04:35:41 -04:00
Rapptz 2a69ac4ca8 Document difference between View and LayoutView 2025-08-18 04:34:24 -04:00
Rapptz eb84d0dfcb Add example showcasing ui.Label in modals 2025-08-17 20:02:21 -04:00
Rapptz 22d6e8d0aa Add example showcasing how to do a settings panel 2025-08-17 19:48:18 -04:00
Rapptz 4be15b5616 Add example showcasing Container for Embed-like layouts 2025-08-16 06:18:36 -04:00
Rapptz 24d3a12117 Remove unused row parameter from TextDisplay 2025-08-16 06:18:36 -04:00
Rapptz 4f539b710f Fix type errors in all examples 2025-08-16 06:18:36 -04:00
Rapptz 08ef967371 Typecheck when constructing MediaGalleryItem 2025-08-15 08:11:13 -04:00
Rapptz 38c6407ffd Maintain a reference to View dispatched tasks 2025-08-14 00:47:55 -04:00
Rapptz 3fb627d078 Add support for label components and select in modals 2025-08-14 00:47:55 -04:00
Rapptz 9fb74fd7a1 Remove unnecessary TypeGuard 2025-08-13 21:27:38 -04:00
Rapptz 8c1886799d Don't recreate ItemCallbackType 2025-08-13 21:13:17 -04:00
Rapptz ec409a0a7b Guard AppCommandThread.guild attribute access 2025-08-08 03:13:30 -04:00
Rapptz 460d188359 Version bump for development 2025-03-04 20:16:50 -05:00
Rapptz d2a6ccf715 Version bump to v2.5.2 2025-03-04 20:13:27 -05:00
Rapptz f4bce1caf0 Add changelog for v2.5.2 2025-03-04 20:12:54 -05:00
Rapptz 973bb5089f Version bump for development 2025-03-04 02:15:32 -05:00
Rapptz 73f261d536 Version bump to v2.5.1 2025-03-04 02:14:02 -05:00
Rapptz 6b0a6eea66 Add v2.5.1 changelog 2025-03-04 02:13:31 -05:00
Rapptz fbe2b358fc Add note about NotFound for Messageable.send
Fix #10116
2025-02-28 18:03:47 -05:00
Rapptz 2cf1babb4a Version bump for development 2025-02-18 08:06:01 -05:00
Rapptz e837ac1cac Version bump to v2.5.0 2025-02-18 08:05:13 -05:00
Rapptz a1aa59706c Add changelog for v2.5 2025-02-18 07:56:53 -05:00
Rapptz 3ad0662f68 Document SoundboardSoundConverter 2025-02-18 07:28:25 -05:00
Rapptz e8d571b194 Add missing Poll attribute documentation 2025-02-18 07:28:12 -05:00
Rapptz 43e1c55d11 Remove with_response parameter documentation 2025-02-18 04:24:01 -05:00
Rapptz 8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
Rapptz 1cdf710908 Rename InteractionCallback to InteractionCallbackResponse 2025-02-18 03:29:09 -05:00
Rapptz 776fc2251d [commands] Use interaction response within Context.send 2025-02-18 02:21:45 -05:00
Rapptz 1646471ab8 Revert "Bump Sphinx to 5.3.0"
This reverts commit bb5a4703a7.
2025-01-15 18:33:12 -05:00
Rapptz e1b6310ef3 Remove / from being safe from URI encoding when constructing paths 2024-11-23 22:04:57 -05:00
Rapptz 5c4c281f05 Sanitize invite argument before calling the invite info endpoint
Fixes a potential path traversal bug that can lead you to superfluously
and erroneously call a separate endpoint.
2024-11-23 21:48:45 -05:00
Rapptz ed615887f0 Handle improper 1000 closures by Discord 2024-10-28 18:11:33 -04:00
Rapptz a0b0a97e52 Support enforce_nonce and add random nonce for message creation 2024-10-27 14:49:41 -04:00
Rapptz e94fb45527 Add note about using venvs on Linux 2024-10-22 19:27:02 -04:00
Rapptz ca85782b35 [commands] Fix Context.defer unconditionally deferring 2024-10-13 14:26:40 -04:00
Rapptz 5734996aaf Fix soundboard sounds event data type
Closes #9969
2024-10-12 18:51:21 -04:00
Rapptz df4b1c88df Move MissingApplicationID to top-level discord namespace 2024-08-31 08:51:56 -04:00
Rapptz 66d74054dd Remove outdated leftover comment about polls 2024-08-31 08:32:52 -04:00
Rapptz 733c583b72 Remove _get_poll lookup in Message constructor
This was triggering a terrible performance regression for no good
reason for all created messages that didn't have a poll, which is
essentially 99.99% of messages leading to MESSAGE_CREATE dispatches
having degraded performance.
2024-08-31 08:29:05 -04:00
Rapptz dee5bf65c6 Update MemberFlags to have newest values 2024-08-29 16:15:14 -04:00
Rapptz a08f7a14ff Add a warning if interaction endpoint URL is set on login 2024-08-29 03:04:14 -04:00
Rapptz 624b5b7643 Use fallback audioop package for Python v3.13 or higher
Fix #9477
2024-08-28 16:17:08 -04:00
Rapptz 3018fee443 Remove stale documentation in Embed.set_thumbnail 2024-08-28 15:51:17 -04:00
Rapptz c41cadfa91 Fix introduced potential TypeError with _get_command_error 2024-08-28 15:22:41 -04:00
Rapptz 04b2e494f7 Fix documentation for abc.GuildChannel.move to be more clear 2024-07-21 18:44:07 -04:00
Rapptz 86dd29a8e8 Properly copy banner information on updates 2024-07-16 03:03:50 -04:00
Rapptz a13fc8f835 Add support for guild_banner and display_banner 2024-07-15 20:24:35 -04:00
Rapptz 6643784d33 [commands] Clarify Converter.convert exception raising 2024-07-05 15:11:35 -04:00
Rapptz 3a80636029 Version bump for development 2024-06-21 21:17:36 -04:00
Rapptz 978a96b25c Version bump to v2.4.0 2024-06-21 21:08:59 -04:00
Rapptz d528e8f8b5 Add information on Message.poll for Message Content Intent 2024-06-21 08:14:03 -04:00
Rapptz c055fd32bb Fix ui.Button providing a custom_id for premium buttons 2024-06-15 07:46:36 -04:00