v1.14.0
·
147 commits
to master
since this release
1.14.0 - 2023-05-03
Added
authorsoption tocomponents.ActionColumnExecutor.__init__.- Functions for generating Discord Oauth2 authorize links and bot invite links to
yuyo.links. ActionColumnExecutor.with_interactive_button.ActionColumnExecutor.with_static_interactive_button.ActionColumnExecutor.with_mentionable_menu.ActionColumnExecutor.with_static_mentionable_menu.ActionColumnExecutor.with_role_menu.ActionColumnExecutor.with_static_role_menu.ActionColumnExecutor.with_user_menu.ActionColumnExecutor.with_static_user_menu.ActionColumnExecutor.with_channel_menu.ActionColumnExecutor.with_text_menu.ActionColumnExecutor.with_static_text_menu.yuyo.components.column_templateshorthand function for creating a column subclass.
Changed
- Message component custom IDs are now defaulted to a constant ID that's generated from the function's path (which includes the relevant module and class qualnames) when added using the
as_descriptors inyuyo.components. - The
id_metadatafield incomponents.ActionColumnExecutor.__init__now also supports using a component callback's name in the class' namespace as the key (specifically when it was added using one of theas_descriptors). - The auto-generated default UUID custom IDs now only consist of the UUID's hex (without any
-), bringing the length down from 36 chars to 32. - The descriptors returned by the
as_decorators inyuyo.componentsare now hidden when accessed directly on classes. The decorated callback will now be directly exposed as the class attribute instead.
Fixed
ActionColumnExecutorandModalboth now properly relay__init_subclass__keyword arguments when being used in mixed inheritance.
Removed
yuyo.components.with_static_interactive_buttonyuyo.components.with_static_link_buttonyuyo.components.with_static_select_menuyuyo.components.with_static_channel_menuyuyo.components.with_static_text_menu- The following deprecated functionality and aliases:
ActionRowExecutorin favour of the new action column executor.- Allowing callback to be passed as the first argument and type as the second argument for
ActionColumnExecutor.add_select_menu, andActionColumnExecutor.add_static_select_menu. timeoutkeyword argument fromComponentExecutor.__init__,ActionColumnExecutor.__init__, andComponentPaginator.__init__.prefix_matchkeyword argument fromModal.add_static_text_input,Modal.add_text_input,modals.with_static_text_inputmodals.with_text_input, andmodals.text_input.ComponentContext.select_channelsComponentContext.select_rolesComponentContext.select_textsComponentContext.select_usersComponentContext.select_membersComponentClient.set_constant_idComponentClient.get_constant_idComponentClient.remove_constant_idComponentClient.with_constant_idComponentClient.set_executorComponentClient.get_executorComponentClient.remove_executorAbstractComponentExecutor.has_expiredAbstractComponentExecutor.timeoutComponentExecutor.has_expiredComponentExecutor.timeoutActionColumnExecutor.timeoutActionColumnExecutor.has_expiredActionColumnExecutor.add_buttonActionColumnExecutor.add_interative_buttonActionColumnExecutor.add_static_buttonActionColumnExecutor.add_static_interative_buttonActionColumnExecutor.with_static_buttonActionColumnExecutor.with_static_interative_buttonActionColumnExecutor.with_static_select_menuActionColumnExecutor.add_channel_selectActionColumnExecutor.add_static_channel_selectActionColumnExecutor.with_static_channel_selectActionColumnExecutor.add_text_selectActionColumnExecutor.add_static_text_selectComponentPaginator.builderComponentPaginator.add_rowcomponents.with_static_buttoncomponents.with_static_interative_buttoncomponents.with_static_channel_selectInviteLink.fetchInviteLink.getMessageLink.fetchMessageLink.getTemplateLink.fetchWebhookLink.fetchmodals.AbstractTimeoutmodals.BasicTimeoutmodals.NeverTimeoutModalClient.set_modalModalClient.remove_modaltimeouts.BasicTimeoutyuyo.BasicTimeout