diff --git a/.github/ISSUE_TEMPLATE/report-bug.yml b/.github/ISSUE_TEMPLATE/report-bug.yml index 3fe348e14..3f196dd21 100644 --- a/.github/ISSUE_TEMPLATE/report-bug.yml +++ b/.github/ISSUE_TEMPLATE/report-bug.yml @@ -7,9 +7,9 @@ assignees: - EdVraz - Astrea49 - Toricane + - Catalyst4222 body: - type: markdown - id: thanks attributes: value: | Thank you for taking the time to fill out this bug report! diff --git a/.github/ISSUE_TEMPLATE/request-feature.yml b/.github/ISSUE_TEMPLATE/request-feature.yml index 2c6bdd293..84cb379ce 100644 --- a/.github/ISSUE_TEMPLATE/request-feature.yml +++ b/.github/ISSUE_TEMPLATE/request-feature.yml @@ -7,9 +7,9 @@ assignees: - EdVraz - Astrea49 - Toricane + - Catalyst4222 body: - type: markdown - id: thanks attributes: value: | Thank you for taking the time to fill out this feature request! diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ff7fece09..c51781019 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,8 +6,8 @@ This pull request is about (X), which does (Y). - [ ] I've ran `pre-commit` to format and lint the change(s) made. - [ ] I've checked to make sure the change(s) work on `3.8.6` and higher. -- [ ] This fixes/solves an [Issue](https://github.com/goverfl0w/discord-interactions/issues). - - (If existent): +- [ ] This fixes/solves an [Issue](https://github.com/goverfl0w/discord-interactions/issues) (If existent):. + - resolves # - I've made this pull request for/as: (check all that apply) - [ ] Documentation - [ ] Breaking change diff --git a/README.rst b/README.rst index 9cbfcc281..972c613f4 100644 --- a/README.rst +++ b/README.rst @@ -41,7 +41,7 @@ Some more unique features that are exclusive to our interactions include: - **Event-triggered callbacks**: whether a component, application command or interaction response, you'll never need to worry about bridging responses. - **Dual-way decorator logic**: a decorator can act as both a constructor for an interaction, as well as a callback. - **API-strict naming**: no more confusion with the naming approach of many libraries; we follow the naming style of interactions from the officially curated Discord Developers documentation. -- **Extensive framework structure**: (**pending in** ``4.1.0``) build your own tools and technologies for our library to develop and integrate community creations. +- **Extensive framework structure**: build your own tools and technologies for our library to develop and integrate community creations. What do we not offer? ********************* @@ -65,11 +65,11 @@ Please read up on our `contribution requirements`_ for the project. This open-so This open-source project utilizes the following workflows for development: -#. **pre-commit** ``2.16.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes. +#. **pre-commit** ``2.20.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes. - #. **black** ``21.11b1`` - #. **flake8** ``3.9.2`` - #. **isort** ``5.9.3`` + #. **black** ``22.6.0`` + #. **flake8** ``4.0.1`` + #. **isort** ``5.10.1`` #. **Sphinx** ``4.1.2``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine. #. **colorama** ``0.4.4``: our internal logger uses a customized coloring formatter to make looking for specific conditions easier when running tests. diff --git a/docs/api.cache.rst b/docs/api.cache.rst index 35445a80f..b6f1d6e76 100644 --- a/docs/api.cache.rst +++ b/docs/api.cache.rst @@ -5,4 +5,3 @@ Client Cache .. automodule:: interactions.api.cache :members: - :noindex: diff --git a/docs/api.dispatch.rst b/docs/api.dispatch.rst index ea0baa3bc..914f360db 100644 --- a/docs/api.dispatch.rst +++ b/docs/api.dispatch.rst @@ -5,4 +5,3 @@ Dispatching .. automodule:: interactions.api.dispatch :members: - :noindex: diff --git a/docs/api.enums.rst b/docs/api.enums.rst index 365e4fb01..73a56785b 100644 --- a/docs/api.enums.rst +++ b/docs/api.enums.rst @@ -5,4 +5,3 @@ Enumerable Objects .. automodule:: interactions.api.enums :members: - :noindex: diff --git a/docs/api.error.rst b/docs/api.error.rst index 2216950be..d37a54d88 100644 --- a/docs/api.error.rst +++ b/docs/api.error.rst @@ -5,4 +5,3 @@ Error Exceptions .. automodule:: interactions.api.error :members: - :noindex: diff --git a/docs/api.gateway.rst b/docs/api.gateway.rst index eff310dbb..8d96bd1a6 100644 --- a/docs/api.gateway.rst +++ b/docs/api.gateway.rst @@ -5,12 +5,9 @@ Gateway .. automodule:: interactions.api.gateway :members: - :noindex: .. automodule:: interactions.api.gateway.client :members: - :noindex: .. automodule:: interactions.api.gateway.heartbeat :members: - :noindex: diff --git a/docs/api.http.rst b/docs/api.http.rst index 2c24996d6..e4cef068d 100644 --- a/docs/api.http.rst +++ b/docs/api.http.rst @@ -5,64 +5,48 @@ HTTP .. autoclass:: interactions.api.http.route.Route :members: - :noindex: .. autoclass:: interactions.api.http.limiter.Limiter :members: - :noindex: .. autoclass:: interactions.api.http.request._Request :members: - :noindex: .. autoclass:: interactions.api.http.client.HTTPClient :members: - :noindex: .. autoclass:: interactions.api.http.channel.ChannelRequest :members: - :noindex: .. autoclass:: interactions.api.http.emoji.EmojiRequest :members: - :noindex: .. autoclass:: interactions.api.http.guild.GuildRequest :members: - :noindex: .. autoclass:: interactions.api.http.interaction.InteractionRequest :members: - :noindex: .. autoclass:: interactions.api.http.member.MemberRequest :members: - :noindex: .. autoclass:: interactions.api.http.message.MessageRequest :members: - :noindex: .. autoclass:: interactions.api.http.reaction.ReactionRequest :members: - :noindex: .. autoclass:: interactions.api.http.scheduledEvent.ScheduledEventRequest :members: - :noindex: .. autoclass:: interactions.api.http.sticker.StickerRequest :members: - :noindex: .. autoclass:: interactions.api.http.thread.ThreadRequest :members: - :noindex: .. autoclass:: interactions.api.http.user.UserRequest :members: - :noindex: .. autoclass:: interactions.api.http.webhook.WebhookRequest :members: - :noindex: diff --git a/docs/api.models.audit_log.rst b/docs/api.models.audit_log.rst new file mode 100644 index 000000000..658c4ab7b --- /dev/null +++ b/docs/api.models.audit_log.rst @@ -0,0 +1,7 @@ +.. currentmodule:: interactions + +Audit-Log Models +================ + +.. automodule:: interactions.api.models.audit_log + :members: diff --git a/docs/api.models.channel.rst b/docs/api.models.channel.rst index c7236db3b..e2cda26da 100644 --- a/docs/api.models.channel.rst +++ b/docs/api.models.channel.rst @@ -5,4 +5,3 @@ Channel Models .. automodule:: interactions.api.models.channel :members: - :noindex: diff --git a/docs/api.models.flags.rst b/docs/api.models.flags.rst index c287a8f5b..8374c42d2 100644 --- a/docs/api.models.flags.rst +++ b/docs/api.models.flags.rst @@ -5,4 +5,3 @@ Flag Bitshift Models .. automodule:: interactions.api.models.flags :members: - :noindex: diff --git a/docs/api.models.guild.rst b/docs/api.models.guild.rst index 4d0bbd5a5..d33ee3719 100644 --- a/docs/api.models.guild.rst +++ b/docs/api.models.guild.rst @@ -5,4 +5,3 @@ Guild Models .. automodule:: interactions.api.models.guild :members: - :noindex: diff --git a/docs/api.models.gw.rst b/docs/api.models.gw.rst index ff1d26ed9..5ec645092 100644 --- a/docs/api.models.gw.rst +++ b/docs/api.models.gw.rst @@ -5,4 +5,3 @@ Gateway-specific Event Models .. automodule:: interactions.api.models.gw :members: - :noindex: diff --git a/docs/api.models.member.rst b/docs/api.models.member.rst index e316e02a1..06f9715fe 100644 --- a/docs/api.models.member.rst +++ b/docs/api.models.member.rst @@ -5,4 +5,3 @@ Member Models .. automodule:: interactions.api.models.member :members: - :noindex: diff --git a/docs/api.models.message.rst b/docs/api.models.message.rst index c55431a64..385f6fcb5 100644 --- a/docs/api.models.message.rst +++ b/docs/api.models.message.rst @@ -5,4 +5,3 @@ Message Models .. automodule:: interactions.api.models.message :members: - :noindex: diff --git a/docs/api.models.misc.rst b/docs/api.models.misc.rst index c5a9dd744..fc7925769 100644 --- a/docs/api.models.misc.rst +++ b/docs/api.models.misc.rst @@ -5,4 +5,3 @@ Miscellanous Models .. automodule:: interactions.api.models.misc :members: - :noindex: diff --git a/docs/api.models.presence.rst b/docs/api.models.presence.rst index b39cdd258..8792a734c 100644 --- a/docs/api.models.presence.rst +++ b/docs/api.models.presence.rst @@ -5,4 +5,3 @@ Presence Models .. automodule:: interactions.api.models.presence :members: - :noindex: diff --git a/docs/api.models.role.rst b/docs/api.models.role.rst index c39c829dc..ae5184f0b 100644 --- a/docs/api.models.role.rst +++ b/docs/api.models.role.rst @@ -5,4 +5,3 @@ Role Models .. automodule:: interactions.api.models.role :members: - :noindex: diff --git a/docs/api.models.rst b/docs/api.models.rst index dc1bcc2cb..b9fd49298 100644 --- a/docs/api.models.rst +++ b/docs/api.models.rst @@ -6,6 +6,7 @@ Model Objects .. toctree:: :maxdepth: 2 + api.models.audit_log.rst api.models.channel.rst api.models.guild.rst api.models.gw.rst diff --git a/docs/api.models.team.rst b/docs/api.models.team.rst index c6f42a7ee..731879368 100644 --- a/docs/api.models.team.rst +++ b/docs/api.models.team.rst @@ -5,4 +5,3 @@ Team Models .. automodule:: interactions.api.models.team :members: - :noindex: diff --git a/docs/api.models.user.rst b/docs/api.models.user.rst index 529eddf63..4ec0a1ec1 100644 --- a/docs/api.models.user.rst +++ b/docs/api.models.user.rst @@ -5,4 +5,3 @@ User Models .. automodule:: interactions.api.models.user :members: - :noindex: diff --git a/docs/api.models.webhook.rst b/docs/api.models.webhook.rst index 55b788b80..288d686a8 100644 --- a/docs/api.models.webhook.rst +++ b/docs/api.models.webhook.rst @@ -5,4 +5,3 @@ Webhook Models .. automodule:: interactions.api.models.webhook :members: - :noindex: diff --git a/docs/client.rst b/docs/client.rst index 24680bf7d..f06f07210 100644 --- a/docs/client.rst +++ b/docs/client.rst @@ -5,4 +5,3 @@ Bot Client .. automodule:: interactions.client.bot :members: - :noindex: diff --git a/docs/conf.py b/docs/conf.py index 6e85a5f97..c40b3032c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,13 +33,18 @@ autosectionlabel_prefix_document = True hoverxref_auto_ref = True hoverxref_sphinxtabs = True + + +# descriptions of the relevant function/method. +autodoc_typehints = "description" + extensions = [ "sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.autosectionlabel", "hoverxref.extension", - "karma_sphinx_theme", - "sphinx_search.extension", + "sphinx_copybutton", + "enum_tools.autoenum", ] # Stackoverflow said that this is gonna cure my LaTeX errors for ref handling. @@ -80,7 +85,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "karma_sphinx_theme" +html_theme = "furo" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/docs/context.rst b/docs/context.rst index 778d171e8..129a58531 100644 --- a/docs/context.rst +++ b/docs/context.rst @@ -6,4 +6,3 @@ Event Context .. automodule:: interactions.client.context :members: :inherited-members: - :noindex: diff --git a/docs/enums.rst b/docs/enums.rst index 19a39b773..7444a2fae 100644 --- a/docs/enums.rst +++ b/docs/enums.rst @@ -5,4 +5,3 @@ Enumerable Objects .. automodule:: interactions.client.enums :members: - :noindex: diff --git a/docs/events.rst b/docs/events.rst index 54baf788b..119388dd2 100644 --- a/docs/events.rst +++ b/docs/events.rst @@ -51,8 +51,10 @@ All events mentioned in this section have the exact naming as they must be put i There are several different internal events: - ``raw_socket_create`` + - ``on_start`` - ``on_interaction`` - ``on_command`` + - ``on_command_error`` - ``on_component`` - ``on_autocomplete`` - ``on_modal`` @@ -70,6 +72,15 @@ The value of the argument will be the *raw* data sent from Discord, so it is not as long as you don't absolutely need it. +Event: ``on_start`` +^^^^^^^^^^^^^^^^^^^ +This event fires only when the bot is started. + +This function takes no arguments. + +.. attention:: + Unlike ``on_ready``, this event will never be dispatched more than once. + Event: ``on_interaction`` ^^^^^^^^^^^^^^^^^^^^^^^^^^ This event fires on any interaction (commands, components, autocomplete and modals). @@ -90,6 +101,16 @@ Using this event, you will have to manually check everything, from name to wheth options or anything else - everything will be in the raw context and you will have to search for it +Event: ``on_command_error`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^ +This event fires when the following conditions are met: + +1. There is an error in the command (or subcommand within the command) +2. There is no error callback assigned to that command + +The function takes in two arguments, one of the type ``CommandContext``, and the other contains the error. + + Event: ``on_component`` ^^^^^^^^^^^^^^^^^^^^^^ This event fires on any Component used (for now, those are Buttons and Select Menus). diff --git a/docs/ext.base.rst b/docs/ext.base.rst index de617b66f..3672ab080 100644 --- a/docs/ext.base.rst +++ b/docs/ext.base.rst @@ -5,4 +5,3 @@ Core Model .. automodule:: interactions.ext.base :members: - :noindex: diff --git a/docs/ext.converter.rst b/docs/ext.converter.rst index db50f2f41..970370ca1 100644 --- a/docs/ext.converter.rst +++ b/docs/ext.converter.rst @@ -5,4 +5,3 @@ Converter Model .. automodule:: interactions.ext.converter :members: - :noindex: diff --git a/docs/ext.error.rst b/docs/ext.error.rst index b9b4f3a98..d75582018 100644 --- a/docs/ext.error.rst +++ b/docs/ext.error.rst @@ -5,4 +5,3 @@ Error Exceptions .. automodule:: interactions.ext.error :members: - :noindex: diff --git a/docs/ext.version.rst b/docs/ext.version.rst index 55f0c25cd..0fd5ed5ef 100644 --- a/docs/ext.version.rst +++ b/docs/ext.version.rst @@ -5,4 +5,3 @@ Versioning Models .. automodule:: interactions.ext.version :members: - :noindex: diff --git a/docs/get.rst b/docs/get.rst index a05c4f3ec..03e881794 100644 --- a/docs/get.rst +++ b/docs/get.rst @@ -5,4 +5,3 @@ The ``get`` utility method .. automodule:: interactions.client.get :members: - :noindex: diff --git a/docs/index.rst b/docs/index.rst index 8de4f62bf..cf2e1da66 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -60,14 +60,13 @@ Please read up on our `contribution requirements`_ for the project. This open-so This open-source project utilizes the following workflows for development: -#. **pre-commit** ``2.16.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes. +#. **pre-commit** ``2.20.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes. - #. **black** ``21.11b1`` - #. **flake8** ``3.9.2`` - #. **isort** ``5.9.3`` + #. **black** ``22.6.0`` + #. **flake8** ``4.0.1`` + #. **isort** ``5.10.1`` -#. **Sphinx** ``4.1.2``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine. -#. **colorama** ``0.4.4``: our internal logger uses a customized coloring formatter to make looking for specific conditions easier when running tests. +#. **Sphinx** ``4.4.0``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine. #. **Conventional Commits** ``1.0.0``: every commit that we make to our branches use the official specification of CC 1.0.0 to make git graphs easier when improving and refining communication between code reviews, Pull Requests and commits. When can I start? @@ -87,7 +86,6 @@ Advanced Search * :ref:`genindex` * :ref:`modindex` -* :ref:`search` .. _contribution requirements: https://github.com/interactions-py/library/blob/stable/CONTRIBUTING.rst .. _MIT License: https://github.com/interactions-py/library/blob/stable/LICENSE diff --git a/docs/locale/de/LC_MESSAGES/api.cache.po b/docs/locale/de/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/de/LC_MESSAGES/api.cache.po +++ b/docs/locale/de/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.dispatch.po b/docs/locale/de/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/de/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/de/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.enums.po b/docs/locale/de/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/de/LC_MESSAGES/api.enums.po +++ b/docs/locale/de/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.error.po b/docs/locale/de/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/de/LC_MESSAGES/api.error.po +++ b/docs/locale/de/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.gateway.po b/docs/locale/de/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/de/LC_MESSAGES/api.gateway.po +++ b/docs/locale/de/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/de/LC_MESSAGES/api.http.po b/docs/locale/de/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/de/LC_MESSAGES/api.http.po +++ b/docs/locale/de/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.channel.po b/docs/locale/de/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/de/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.flags.po b/docs/locale/de/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/de/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.guild.po b/docs/locale/de/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/de/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/de/LC_MESSAGES/api.models.gw.po b/docs/locale/de/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/de/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.member.po b/docs/locale/de/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.member.po +++ b/docs/locale/de/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.message.po b/docs/locale/de/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.message.po +++ b/docs/locale/de/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.misc.po b/docs/locale/de/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/de/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.po b/docs/locale/de/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.po +++ b/docs/locale/de/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/de/LC_MESSAGES/api.models.presence.po b/docs/locale/de/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/de/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/de/LC_MESSAGES/api.models.role.po b/docs/locale/de/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.role.po +++ b/docs/locale/de/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.team.po b/docs/locale/de/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.team.po +++ b/docs/locale/de/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.user.po b/docs/locale/de/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.user.po +++ b/docs/locale/de/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.webhook.po b/docs/locale/de/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/de/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.po b/docs/locale/de/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/de/LC_MESSAGES/api.po +++ b/docs/locale/de/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/client.po b/docs/locale/de/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/de/LC_MESSAGES/client.po +++ b/docs/locale/de/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/context.po b/docs/locale/de/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/de/LC_MESSAGES/context.po +++ b/docs/locale/de/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/de/LC_MESSAGES/enums.po b/docs/locale/de/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/de/LC_MESSAGES/enums.po +++ b/docs/locale/de/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/events.po b/docs/locale/de/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/ext.base.po b/docs/locale/de/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/de/LC_MESSAGES/ext.base.po +++ b/docs/locale/de/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/de/LC_MESSAGES/ext.converter.po b/docs/locale/de/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/de/LC_MESSAGES/ext.converter.po +++ b/docs/locale/de/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/de/LC_MESSAGES/ext.error.po b/docs/locale/de/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/de/LC_MESSAGES/ext.error.po +++ b/docs/locale/de/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/de/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/de/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/de/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/de/LC_MESSAGES/ext.po b/docs/locale/de/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/de/LC_MESSAGES/ext.po +++ b/docs/locale/de/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/de/LC_MESSAGES/ext.version.po b/docs/locale/de/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/de/LC_MESSAGES/ext.version.po +++ b/docs/locale/de/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/de/LC_MESSAGES/faq.po b/docs/locale/de/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/de/LC_MESSAGES/faq.po +++ b/docs/locale/de/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/get.po b/docs/locale/de/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/index.po b/docs/locale/de/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/de/LC_MESSAGES/index.po +++ b/docs/locale/de/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/migration.po b/docs/locale/de/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/de/LC_MESSAGES/migration.po +++ b/docs/locale/de/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.command.po b/docs/locale/de/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/de/LC_MESSAGES/models.command.po +++ b/docs/locale/de/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.component.po b/docs/locale/de/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/de/LC_MESSAGES/models.component.po +++ b/docs/locale/de/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.misc.po b/docs/locale/de/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/de/LC_MESSAGES/models.misc.po +++ b/docs/locale/de/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.po b/docs/locale/de/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/de/LC_MESSAGES/models.po +++ b/docs/locale/de/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/de/LC_MESSAGES/models.utils.po b/docs/locale/de/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/quickstart.po b/docs/locale/de/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/de/LC_MESSAGES/quickstart.po +++ b/docs/locale/de/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.cache.po b/docs/locale/es/LC_MESSAGES/api.cache.po new file mode 100644 index 000000000..355cab3ef --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.cache.po @@ -0,0 +1,116 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.cache.rst:4 +msgid "Client Cache" +msgstr "" + +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." +msgstr "" + +#: interactions.api.cache.Cache interactions.api.cache.Storage of +msgid "Variables" +msgstr "" + +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." +msgstr "" + +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" +msgstr "" + +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" +msgstr "" + +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" +msgstr "" + +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." +msgstr "" + +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." +msgstr "" + +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." +msgstr "" + +#: interactions.api.cache.Storage.add:3 of +msgid "The item to add." +msgstr "" + +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." +msgstr "" + +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." +msgstr "" + +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." +msgstr "" + +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" +msgstr "" + +#: interactions.api.cache.Storage.get:7 of +msgid "The item from the storage if any." +msgstr "" + +#: interactions.api.cache.Storage.update:1 of +msgid "Updates multiple items from the storage." +msgstr "" + +#: interactions.api.cache.Storage.update:3 of +msgid "The data to update with." +msgstr "" + +#: interactions.api.cache.Storage.view:1 of +msgid "Views all items from storage." +msgstr "" + +#: interactions.api.cache.Storage.view:3 of +msgid "The items stored." +msgstr "" + +#: interactions.api.cache.Cache:1 of +msgid "" +"A class representing the cache. This cache collects all of the HTTP " +"requests made for the represented instances of the class." +msgstr "" + +#: interactions.api.cache.Cache:5 of +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.dispatch.po b/docs/locale/es/LC_MESSAGES/api.dispatch.po new file mode 100644 index 000000000..2b020e27a --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.dispatch.po @@ -0,0 +1,85 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.dispatch.rst:4 +msgid "Dispatching" +msgstr "" + +#: interactions.api.dispatch.Listener:1 of +msgid "A class representing how events become dispatched and listened to." +msgstr "" + +#: interactions.api.dispatch.Listener of +msgid "Variables" +msgstr "" + +#: interactions.api.dispatch.Listener:3 of +msgid "The coroutine event loop established on." +msgstr "" + +#: interactions.api.dispatch.Listener:4 of +msgid "A list of events being dispatched." +msgstr "" + +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + +#: interactions.api.dispatch.Listener.dispatch:1 of +msgid "Dispatches an event given out by the gateway." +msgstr "" + +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Parameters" +msgstr "" + +#: interactions.api.dispatch.Listener.dispatch:3 of +msgid "The name of the event to dispatch." +msgstr "" + +#: interactions.api.dispatch.Listener.dispatch:5 of +msgid "Multiple arguments of the coroutine." +msgstr "" + +#: interactions.api.dispatch.Listener.dispatch:7 of +msgid "Keyword-only arguments of the coroutine." +msgstr "" + +#: interactions.api.dispatch.Listener.register:1 of +msgid "" +"Registers a given coroutine as an event to be listened to. If the name of" +" the event is not given, it will then be determined by the coroutine's " +"name." +msgstr "" + +#: interactions.api.dispatch.Listener.register:5 of +msgid "i.e. : async def on_guild_create -> \"ON_GUILD_CREATE\" dispatch." +msgstr "" + +#: interactions.api.dispatch.Listener.register:7 of +msgid "The coroutine to register as an event." +msgstr "" + +#: interactions.api.dispatch.Listener.register:9 of +msgid "The name to associate the coroutine with. Defaults to None." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.enums.po b/docs/locale/es/LC_MESSAGES/api.enums.po new file mode 100644 index 000000000..dc817a43e --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.enums.po @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.enums.rst:4 +msgid "Enumerable Objects" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "" +"An enumerable object for the Gateway's OPCODE result state. This is " +"representative of the OPCodes generated by the WebSocket." +msgstr "" + +#: interactions.api.enums.OpCodeType:5 of +msgid "" +"Equivalent of `Gateway Opcodes " +"`_ in the Discord API." +msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.error.po b/docs/locale/es/LC_MESSAGES/api.error.po new file mode 100644 index 000000000..120e140a5 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.error.po @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.error.rst:4 +msgid "Error Exceptions" +msgstr "" + +#: interactions.api.error.LibraryException:1 of +msgid "" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" +msgstr "" + +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" +msgstr "" + +#: interactions.api.error.LibraryException._parse:1 of +msgid "" +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." +msgstr "" + +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." +msgstr "" + +#: interactions.api.error.LibraryException._parse of +msgid "Returns" +msgstr "" + +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." +msgstr "" + +#: interactions.api.error.LibraryException._parse of +msgid "Return type" +msgstr "" + +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.gateway.po b/docs/locale/es/LC_MESSAGES/api.gateway.po new file mode 100644 index 000000000..aad9d8772 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.gateway.po @@ -0,0 +1,316 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.gateway.rst:4 +msgid "Gateway" +msgstr "" + +#: interactions.api.gateway:1 of +msgid "interactions.api.gateway" +msgstr "" + +#: interactions.api.gateway:3 of +msgid "This section of the library maintains and handles all of the Gateway work." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:1 of +msgid "" +"A class representing the client's connection to the Gateway via. " +"WebSocket." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient of +msgid "Variables" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:3 of +msgid "The asynchronous event loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "The built-in event dispatcher." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:5 of +msgid "The user-facing HTTP client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:6 of +msgid "The WebSocket data of the connection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:7 of +msgid "Whether the connection has been closed or not." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:8 of +msgid "The connection options made during connection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The gateway intents used for connection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of +msgid "The contents of the application returned when ready." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:11 of +msgid "The context state of a \"heartbeat\" made to the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:12 of +msgid "The shards used during connection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:13 of +msgid "The presence used in connection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:14 of +msgid "The ready state of the client as an ``asyncio.Event``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:15 of +msgid "The closing task for ending connections." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:16 of +msgid "Whether the client has started." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The ID of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of +msgid "" +"The latest time of the last send_packet function call since connection " +"creation, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:20 of +msgid "" +"The latest time of the last ``HEARTBEAT_ACK`` event since connection " +"creation, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 +#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of +msgid "The shards to establish a connection with. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 +#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of +msgid "The presence to carry with. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of +msgid "Handles the client's connection with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +msgid "The packet stream to handle." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready:1 of +msgid "Waits for the client to become ready according to the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._dispatch_event:1 of +msgid "Dispatches an event from the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of +msgid "The name of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of +msgid "The data for the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of +msgid "Returns" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of +msgid "The context object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of +msgid "" +"Checks if an application command schema has sub commands needed for " +"argument collection." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context:4 of +msgid "The data structure of the option." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context:6 of +msgid "The context to refer subcommands from." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context:8 of +msgid "A dictionary of the collected options, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__option_type_context:1 of +msgid "Looks up the type of option respective to the existing option types." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__option_type_context:4 of +msgid "The context to refer types from." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__option_type_context:6 of +msgid "The option type." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__option_type_context:8 of +msgid "The option type context." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of +msgid "Receives a stream of packets sent from the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +msgid "The packet stream." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._send_packet:1 of +msgid "Sends a packet to the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._send_packet:3 of +msgid "The data to send to the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__identify:1 of +msgid "Sends an ``IDENTIFY`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__identify:3 of +msgid "The shard ID to identify under." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__identify:5 +#: interactions.api.gateway.client.WebSocketClient._update_presence:8 of +msgid "The presence to change the bot to on identify." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__resume:1 of +msgid "Sends a ``RESUME`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__heartbeat:1 of +msgid "Sends a ``HEARTBEAT`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.shard:1 of +msgid "Returns the current shard" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.presence:1 of +msgid "Returns the current presence." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._update_presence:1 of +msgid "Sends an ``UPDATE_PRESENCE`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._update_presence:4 of +msgid "" +"There is a ratelimit to using this method (5 per minute). As there's no " +"gateway ratelimiter yet, breaking this ratelimit will force your bot to " +"disconnect." +msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat:1 of +msgid "An internal class representing the heartbeat in a WebSocket connection." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.http.po b/docs/locale/es/LC_MESSAGES/api.http.po new file mode 100644 index 000000000..b141f2d87 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.http.po @@ -0,0 +1,2745 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.http.rst:4 +msgid "HTTP" +msgstr "" + +#: interactions.api.http.route.Route:1 of +msgid "A class representing how an HTTP route is structured." +msgstr "" + +#: interactions.api.http.client.HTTPClient +#: interactions.api.http.limiter.Limiter interactions.api.http.request._Request +#: interactions.api.http.route.Route of +msgid "Variables" +msgstr "" + +#: interactions.api.http.route.Route:3 of +msgid "The HTTP route path." +msgstr "" + +#: interactions.api.http.route.Route:4 of +msgid "The HTTP method." +msgstr "" + +#: interactions.api.http.route.Route:5 of +msgid "The URL path." +msgstr "" + +#: interactions.api.http.route.Route:6 of +msgid "The channel ID from the bucket if given." +msgstr "" + +#: interactions.api.http.route.Route:7 of +msgid "The guild ID from the bucket if given." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Parameters" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:4 of +msgid "The bucket that Discord provides, if available." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Returns" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route bucket." +msgstr "" + +#: interactions.api.http.route.Route.endpoint:1 of +msgid "Returns the route's endpoint." +msgstr "" + +#: interactions.api.http.route.Route.endpoint:3 of +msgid "The route endpoint." +msgstr "" + +#: interactions.api.http.limiter.Limiter:1 of +msgid "A class representing a limitation for an HTTP request." +msgstr "" + +#: interactions.api.http.limiter.Limiter:3 of +msgid "The \"lock\" or controller of the request." +msgstr "" + +#: interactions.api.http.limiter.Limiter:4 of +msgid "The remaining time before the request can be ran." +msgstr "" + +#: interactions.api.http.request._Request:1 of +msgid "A class representing how HTTP requests are sent/read." +msgstr "" + +#: interactions.api.http.request._Request:3 of +msgid "The current application token." +msgstr "" + +#: interactions.api.http.request._Request:4 of +msgid "The current coroutine event loop." +msgstr "" + +#: interactions.api.http.request._Request:5 of +msgid "The current per-route rate limiters from the API." +msgstr "" + +#: interactions.api.http.request._Request:6 of +msgid "The current endpoint to shared_bucket cache from the API." +msgstr "" + +#: interactions.api.http.request._Request:7 of +msgid "The current headers for an HTTP request." +msgstr "" + +#: interactions.api.http.request._Request:8 of +msgid "The current session for making requests." +msgstr "" + +#: interactions.api.http.request._Request:9 of +msgid "The global rate limiter." +msgstr "" + +#: interactions.api.http.request._Request._check_session:1 of +msgid "Ensures that we have a valid connection session." +msgstr "" + +#: interactions.api.http.request._Request._check_lock:1 of +msgid "Checks the global lock for its current state." +msgstr "" + +#: interactions.api.http.request._Request.request:1 of +msgid "Sends a request to the Discord API." +msgstr "" + +#: interactions.api.http.request._Request.request:3 of +msgid "The HTTP route to request." +msgstr "" + +#: interactions.api.http.request._Request.request:5 of +msgid "Optional keyword-only arguments to pass as information in the request." +msgstr "" + +#: interactions.api.http.request._Request.request:7 of +msgid "The contents of the request if any." +msgstr "" + +#: interactions.api.http.request._Request.close:1 of +msgid "Closes the current session." +msgstr "" + +#: interactions.api.http.client.HTTPClient:1 of +msgid "The user-facing client of the Web API for individual endpoints." +msgstr "" + +#: interactions.api.http.client.HTTPClient:3 of +msgid "The token of the application." +msgstr "" + +#: interactions.api.http.client.HTTPClient:4 of +msgid "The requesting interface for endpoints." +msgstr "" + +#: interactions.api.http.client.HTTPClient:5 of +msgid "The referenced cache." +msgstr "" + +#: interactions.api.http.client.HTTPClient.get_gateway:1 of +msgid "" +"This calls the Gateway endpoint and returns a v9 gateway link with JSON " +"encoding." +msgstr "" + +#: interactions.api.http.client.HTTPClient.get_bot_gateway:1 of +msgid "This calls the BOT Gateway endpoint." +msgstr "" + +#: interactions.api.http.client.HTTPClient.get_bot_gateway:3 of +msgid "A tuple denoting (shard, gateway_url), url from API v9 and JSON encoding" +msgstr "" + +#: interactions.api.http.client.HTTPClient.login:1 of +msgid "" +"This 'logins' to the gateway, which makes it available to use any other " +"endpoint." +msgstr "" + +#: interactions.api.http.client.HTTPClient.logout:1 of +msgid "This 'log outs' the session." +msgstr "" + +#: interactions.api.http.client.HTTPClient.get_current_bot_information:1 of +msgid "Returns the bot user application object without flags." +msgstr "" + +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information:1 +#: of +msgid "Returns info about the current authorization of the bot user" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel:1 of +msgid "" +"Gets a channel by ID. If the channel is a thread, it also includes thread" +" members (and other thread attributes)." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.get_channel:3 +#: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages:3 +#: interactions.api.http.channel.ChannelRequest.get_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.modify_channel:3 +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.move_channel:4 +#: interactions.api.http.channel.ChannelRequest.trigger_typing:6 +#: interactions.api.http.message.MessageRequest.pin_message:3 +#: interactions.api.http.message.MessageRequest.unpin_message:3 +#: interactions.api.http.webhook.WebhookRequest.create_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks:3 of +msgid "Channel ID snowflake." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel:4 of +msgid "Dictionary of the channel object." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_channel:1 of +msgid "Deletes a channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_channel:3 of +msgid "Channel ID snowflake" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:1 of +msgid "Get messages from a channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:4 of +msgid "around, before, and after arguments are mutually exclusive." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:7 of +msgid "How many messages to get. Defaults to 50, the max is 100." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:8 of +msgid "Get messages around this snowflake ID." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:9 of +msgid "Get messages before this snowflake ID." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:10 of +msgid "Get messages after this snowflake ID." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_messages:11 of +msgid "An array of Message objects." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:1 of +msgid "Creates a channel within a guild." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:4 of +msgid "This does not handle payload in this method. Tread carefully." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:6 +#: interactions.api.http.channel.ChannelRequest.move_channel:3 +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji:3 +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji:3 +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji:3 +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 +#: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 +#: interactions.api.http.guild.GuildRequest.create_guild_role:3 +#: interactions.api.http.guild.GuildRequest.create_guild_template:3 +#: interactions.api.http.guild.GuildRequest.delete_guild:3 +#: interactions.api.http.guild.GuildRequest.delete_guild_integration:3 +#: interactions.api.http.guild.GuildRequest.delete_guild_role:3 +#: interactions.api.http.guild.GuildRequest.delete_guild_template:3 +#: interactions.api.http.guild.GuildRequest.get_guild_bans:6 +#: interactions.api.http.guild.GuildRequest.get_guild_integrations:3 +#: interactions.api.http.guild.GuildRequest.get_guild_invites:3 +#: interactions.api.http.guild.GuildRequest.get_guild_preview:3 +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:3 +#: interactions.api.http.guild.GuildRequest.get_guild_templates:3 +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen:3 +#: interactions.api.http.guild.GuildRequest.get_guild_widget:3 +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 +#: interactions.api.http.guild.GuildRequest.modify_guild:3 +#: interactions.api.http.guild.GuildRequest.modify_guild_role:3 +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions:3 +#: interactions.api.http.guild.GuildRequest.modify_guild_template:3 +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:3 +#: interactions.api.http.guild.GuildRequest.modify_guild_widget:3 +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state:3 +#: interactions.api.http.guild.GuildRequest.remove_guild_member:3 +#: interactions.api.http.guild.GuildRequest.sync_guild_template:3 +#: interactions.api.http.member.MemberRequest.get_member:3 +#: interactions.api.http.member.MemberRequest.modify_member:5 +#: interactions.api.http.member.MemberRequest.search_guild_members:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:3 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event:3 +#: of +msgid "Guild ID snowflake." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:7 of +msgid "Payload data." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:8 of +msgid "Reason to show in audit log, if needed." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel:9 of +msgid "Channel object as dictionary." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:1 of +msgid "Moves a channel to a new position." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:5 of +msgid "The new channel position." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:6 of +msgid "The category parent ID, if needed." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:7 of +msgid "" +"Sync permissions with the parent associated with parent_id. Defaults to " +"False." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:8 of +msgid "Reason to display to the audit log, if any." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.move_channel:9 +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:7 +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:7 of +msgid "?" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_channel:1 of +msgid "Update a channel's settings." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_channel:4 of +msgid "Data representing updated settings." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_channel:5 of +msgid "Reason, if any." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_channel:6 of +msgid "Channel with updated attributes, if successful." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_invites:1 of +msgid "Get the invites for the channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_channel_invites:4 of +msgid "List of invite objects" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:1 of +msgid "Creates an invite for the given channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:4 of +msgid "This method does not handle payload. It just sends it." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:7 of +msgid "Data representing the payload/invite attributes." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:8 of +msgid "Reason to show in the audit log, if any." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_channel_invite:9 of +msgid "An invite object." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:1 of +msgid "" +"Edits the channel's permission overwrites for a user or role in a given " +"channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission:4 +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:4 of +msgid "The ID of the overridden object." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:5 of +msgid "the bitwise value of all allowed permissions" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:6 of +msgid "the bitwise value of all disallowed permissions" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:7 of +msgid "0 for a role or 1 for a member" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission:5 +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission:8 of +msgid "Reason to display in the Audit Log, if given." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission:1 of +msgid "Deletes a channel permission overwrite for a user or role in a channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.trigger_typing:1 of +msgid "Posts \"... is typing\" in a given channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.trigger_typing:4 of +msgid "" +"By default, this lib doesn't use this endpoint, however, this is listed " +"for third-party implementation." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages:1 of +msgid "Get all pinned messages from a channel." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages:4 of +msgid "A list of pinned message objects." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:1 of +msgid "Create a new stage instance." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:4 of +msgid "The topic of the stage instance. Limited to 1-120 characters." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:5 of +msgid "The privacy_level of the stage instance (defaults to guild-only \"1\")." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:6 +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance:4 +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:6 of +msgid "The reason for the creating the stage instance, if any." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_stage_instance:7 of +msgid "The new stage instance" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_stage_instance:1 of +msgid "Get the stage instance associated with a given channel, if it exists." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.get_stage_instance:4 of +msgid "A stage instance." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:1 of +msgid "Update the fields of a given stage instance." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:4 of +msgid "" +"The new topic of the stage instance, if given. Limited to 1-120 " +"characters." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:5 of +msgid "The new privacy_level of the stage instance." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance:7 of +msgid "The updated stage instance." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance:1 of +msgid "Delete a stage instance." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of +msgid "Gets all emojis from a guild." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji:4 of +msgid "A list of emojis." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:1 of +msgid "Gets an emote from a guild." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:4 of +msgid "Emoji ID snowflake." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:5 of +msgid "Emoji object" +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji:1 of +msgid "Creates an emoji." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji:4 of +msgid "Emoji parameters." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji:5 +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji:5 +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:6 of +msgid "Optionally, give a reason." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji:6 of +msgid "An emoji object with the included parameters." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:1 of +msgid "Modifies an emoji." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji:4 +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:4 of +msgid "Emoji ID snowflake" +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:5 of +msgid "Emoji parameters with updated attributes" +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:7 of +msgid "An emoji object with updated attributes." +msgstr "" + +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji:1 of +msgid "Deletes an emoji." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_self_guilds:1 of +msgid "Gets all guild objects associated with the current bot user." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_self_guilds:3 of +msgid ":return a list of partial guild objects the current bot user is a part of." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:1 of +msgid "Requests an individual guild from the API." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:3 +#: interactions.api.http.guild.GuildRequest.leave_guild:3 of +msgid "The guild snowflake ID associated." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of +msgid "The guild object associated, if any." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_preview:1 of +msgid "Get a guild's preview." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_preview:4 of +msgid "Guild Preview object associated with the snowflake" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild:1 of +msgid "Modifies a guild's attributes." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild:4 of +msgid "The parameters to change." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild:5 of +msgid "Reason to send to the audit log, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild:6 of +msgid "The modified guild object as a dictionary" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.leave_guild:1 of +msgid "Leaves a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.leave_guild:4 of +msgid "None" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild:1 of +msgid "Deletes a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget:1 of +msgid "Returns the widget for the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget:4 +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:4 of +msgid "Guild Widget contents as a dict: {\"enabled\":bool, \"channel_id\": str}" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:1 of +msgid "Get guild widget settings." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image:1 of +msgid "Get an url representing a png image widget for the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image:4 of +msgid "" +"See _ for list of styles." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image:7 of +msgid "The style of widget required, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image:8 of +msgid "A url pointing to this image" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_widget:1 of +msgid "Modify a guild widget." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_widget:4 of +msgid "Payload containing new widget attributes." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_widget:5 of +msgid "Updated widget attributes." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_invites:1 of +msgid "Retrieves a list of invite objects with their own metadata." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_invites:4 of +msgid "A list of invite objects" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen:1 of +msgid "Retrieves from the API a welcome screen associated with the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen:4 of +msgid "Welcome Screen object" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:1 of +msgid "Modify the guild's welcome screen." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:4 of +msgid "Whether the welcome screen is enabled or not." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:5 of +msgid "" +"The new channels (by their ID) linked in the welcome screen and their " +"display options" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:6 of +msgid "The new server description to show in the welcome screen" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen:7 of +msgid "Updated Welcome screen object." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_integrations:1 of +msgid "Gets a list of integration objects associated with the Guild from the API." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_integrations:4 of +msgid "An array of integration objects" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_integration:1 of +msgid "Deletes an integration from the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_integration:4 of +msgid "Integration ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:1 +#: of +msgid "Update the current user voice state." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:4 +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state:5 of +msgid "Voice channel ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:5 +#: of +msgid "Toggle the user's suppress state, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:6 +#: of +msgid "Sets the user's request to speak, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state:1 of +msgid "Modify the voice state of a user." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:4 +#: interactions.api.http.guild.GuildRequest.get_user_ban:4 +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state:4 +#: interactions.api.http.guild.GuildRequest.remove_guild_member:4 of +msgid "User ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state:6 of +msgid "Toggles the user's suppress state, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:1 +#: of +msgid "Create a new guild based on a template." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:4 +#: of +msgid "This endpoint can only be used by bots in less than 10 guilds." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:6 +#: of +msgid "The code of the template to use." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:7 +#: of +msgid "The name of the guild (2-100 characters)" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:8 +#: of +msgid "Guild icon URI, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template:9 +#: of +msgid "The newly created guild object." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_templates:1 of +msgid "Returns an array of guild templates." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_templates:4 of +msgid "An array of guild templates" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_template:1 of +msgid "Create a guild template for the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_template:4 +#: interactions.api.http.guild.GuildRequest.modify_guild_template:5 of +msgid "The name of the template" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_template:5 of +msgid "The description of the template, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_template:6 of +msgid "The created guild template" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.sync_guild_template:1 of +msgid "Sync the template to the guild's current state." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.sync_guild_template:4 of +msgid "The code for the template to sync" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.sync_guild_template:5 of +msgid "The updated guild template." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_template:1 of +msgid "Modify a guild template." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_template:4 +#: interactions.api.http.guild.GuildRequest.modify_guild_template:4 of +msgid "Template ID." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_template:6 of +msgid "The description of the template" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_template:7 of +msgid "The updated guild template" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_template:1 of +msgid "Delete the guild template." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_template:5 of +msgid "The deleted template object" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_all_channels:1 of +msgid "Requests from the API to get all channels in the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_all_channels:3 of +msgid "Guild Snowflake ID" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_all_channels:4 of +msgid "A list of channels." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_all_roles:1 of +msgid "Gets all roles from a Guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_ban:3 +#: interactions.api.http.guild.GuildRequest.create_guild_kick:3 +#: interactions.api.http.guild.GuildRequest.get_all_roles:3 +#: interactions.api.http.guild.GuildRequest.get_user_ban:3 +#: interactions.api.http.guild.GuildRequest.remove_guild_ban:3 +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:8 +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions:4 +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions:4 +#: interactions.api.http.member.MemberRequest.get_list_of_members:3 +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks:3 of +msgid "Guild ID snowflake" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_all_roles:4 of +msgid "An array of Role objects as dictionaries." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_role:1 of +msgid "Create a new role for the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_role:4 of +msgid "A dict containing metadata for the role." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_role:5 +#: interactions.api.http.guild.GuildRequest.modify_guild_role:6 +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions:5 of +msgid "The reason for this action, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_role:6 of +msgid "Role object" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions:1 of +msgid "Modify the position of a role in the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions:4 of +msgid "" +"A list of dicts containing the role IDs and new positions for all the " +"roles to be moved." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions:6 of +msgid "List of guild roles with updated hierarchy." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role:1 of +msgid "Modify a given role for the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_role:4 +#: interactions.api.http.guild.GuildRequest.modify_guild_role:4 of +msgid "Role ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role:5 of +msgid "A dict containing updated metadata for the role." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_guild_role:7 of +msgid "Updated role object." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_role:1 of +msgid "Delete a guild role." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_guild_role:5 of +msgid "The reason for this action, if any." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_kick:1 of +msgid "Kicks a person from the guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_ban:4 +#: interactions.api.http.guild.GuildRequest.create_guild_kick:4 +#: interactions.api.http.guild.GuildRequest.remove_guild_ban:4 of +msgid "User ID snowflake" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_kick:5 of +msgid "Optional Reason argument." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_ban:1 of +msgid "" +"Bans a person from the guild, and optionally deletes previous messages " +"sent by them." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of +msgid "Optional reason to ban." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.remove_guild_ban:1 of +msgid "Unbans someone using the API." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.remove_guild_ban:5 of +msgid "Optional reason to unban." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:1 of +msgid "Gets a list of banned users." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:4 of +msgid "" +"If both ``before`` and ``after`` are provided, only ``before`` is " +"respected." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:7 of +msgid "Number of users to return. Defaults to 1000." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:8 of +msgid "Consider only users before the given User ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:9 of +msgid "Consider only users after the given User ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_bans:10 of +msgid "A list of banned users." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_user_ban:1 of +msgid "" +"Gets an object pertaining to the user, if it exists. Returns a 404 if it " +"doesn't." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_user_ban:5 of +msgid "Ban object if it exists." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:1 of +msgid "" +"A low level method of adding a user to a guild with pre-defined " +"attributes." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:5 of +msgid "User access token." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:6 of +msgid "User's nickname on join." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:7 of +msgid "An array of roles that the user is assigned." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:8 of +msgid "Whether the user is mute in voice channels." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:9 of +msgid "Whether the user is deafened in voice channels." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.add_guild_member:10 of +msgid "Guild member object as dictionary" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.remove_guild_member:1 of +msgid "" +"A low level method of removing a member from a guild. This is different " +"from banning them." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 +#: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of +msgid "Reason to send to audit log, if any." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of +msgid "Number of days to count. Defaults to ``7``." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of +msgid "A dict denoting `{\"pruned\": int}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog:1 of +msgid "" +"Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG' " +"permission. :param guild_id: Guild ID snowflake. :param user_id: User ID " +"snowflake. filter the log for actions made by a user. :param action_type:" +" the type ID of audit log event. :param before: filter the log before a " +"certain entry id. :param limit: how many entries are returned (default " +"50, minimum 1, maximum 100)" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 +#: of +msgid "Get all application commands from an application." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_application_command:3 +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response:4 +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:7 +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions:3 +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions:3 +#: interactions.api.http.interaction.InteractionRequest.get_application_commands:3 +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:6 +#: of +msgid "Application ID snowflake" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_commands:4 +#: of +msgid "Guild to get commands from, if specified. Defaults to global (None)" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_commands:5 +#: of +msgid "" +"Whether to include full localization dictionaries (name_localizations and" +" description_localizations) in the returned objects, instead of the " +"name_localized and description_localized fields. Default false." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_commands:6 +#: of +msgid "A list of Application commands." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_application_command:1 +#: of +msgid "Registers to the Discord API an application command." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_application_command:4 +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:7 +#: of +msgid "The dictionary that contains the command (name, description, etc)" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_application_command:5 +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:8 +#: of +msgid "Guild ID snowflake to put them in, if applicable." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_application_command:6 +#: of +msgid "An application command object." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:1 +#: of +msgid "" +"Overwrites application command(s) from a scope to the new, updated " +"commands." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:4 +#: of +msgid "" +"This applies to all forms of application commands (slash and context " +"menus)" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command:9 +#: of +msgid "An array of application command objects." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:1 +#: of +msgid "Edits an application command." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_application_command:3 +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response:4 +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:3 +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:5 +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response:4 +#: of +msgid "Application ID snowflake." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:4 +#: of +msgid "A dictionary containing updated attributes" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:5 +#: of +msgid "The application command ID snowflake" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:6 +#: of +msgid "Guild ID snowflake, if given. Defaults to None/global." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command:7 +#: of +msgid "The updated application command object." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_application_command:1 +#: of +msgid "Deletes an application command." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_application_command:4 +#: of +msgid "Application command ID snowflake." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_application_command:5 +#: of +msgid "Guild ID snowflake, if declared. Defaults to None (Global)." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:1 +#: of +msgid "Edits permissions for an application command." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:4 +#: of +msgid "" +"This requires authenticating with the Bearer token. Likewise, if this " +"function is used in a bot process with a bot token, this will fail." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:9 +#: of +msgid "Application command ID snowflake" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:10 +#: of +msgid "Permission data." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions:11 +#: of +msgid "Returns an updated Application Guild permission object." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions:1 +#: of +msgid "" +"Gets, from the Discord API, permissions from a specific Guild application" +" command." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions:5 +#: of +msgid "Application Command ID snowflake" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions:6 +#: of +msgid "a Guild Application Command permissions object" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions:1 +#: of +msgid "" +"Gets, from the Discord API, permissions from all Application commands at " +"that Guild." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions:5 +#: of +msgid "An array of Guild Application Command permissions" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response:1 +#: of +msgid "Posts initial response to an interaction, but you need to add the token." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response:3 +#: of +msgid "Token." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response:5 +#: interactions.api.http.user.UserRequest.modify_self:3 of +msgid "The data to send." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response:1 +#: of +msgid "Gets an existing interaction message." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response:3 +#: of +msgid "token" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response:5 +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:6 +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response:5 +#: of +msgid "" +"Message ID snowflake. Defaults to `@original` which represents the " +"initial response msg." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response:6 +#: of +msgid "Message data." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:1 +#: of +msgid "" +"Edits an existing interaction message, but token needs to be manually " +"called." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:3 +#: of +msgid "A dictionary containing the new response." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest._post_followup:5 +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response:3 +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:4 +#: of +msgid "the token of the interaction" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response:7 +#: of +msgid "Updated message data." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response:1 +#: of +msgid "Deletes an existing interaction message." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest._post_followup:1 of +msgid "Send a followup to an interaction." +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest._post_followup:3 of +msgid "the payload to send" +msgstr "" + +#: interactions.api.http.interaction.InteractionRequest._post_followup:4 of +msgid "the id of the application" +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_member:1 of +msgid "Uses the API to fetch a member from a guild." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_member:4 +#: interactions.api.http.member.MemberRequest.modify_member:4 of +msgid "Member ID snowflake." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_member:5 of +msgid "A member object, if any." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_list_of_members:1 of +msgid "Lists the members of a guild." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_list_of_members:4 of +msgid "How many members to get from the API. Max is 1000. Defaults to 1." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_list_of_members:5 of +msgid "Get Member IDs after this snowflake. Defaults to None." +msgstr "" + +#: interactions.api.http.member.MemberRequest.get_list_of_members:6 of +msgid "An array of Member objects." +msgstr "" + +#: interactions.api.http.member.MemberRequest.search_guild_members:1 of +msgid "" +"Search a guild for members whose username or nickname starts with " +"provided string." +msgstr "" + +#: interactions.api.http.member.MemberRequest.search_guild_members:4 of +msgid "The string to search for" +msgstr "" + +#: interactions.api.http.member.MemberRequest.search_guild_members:5 of +msgid "The number of members to return. Defaults to 1." +msgstr "" + +#: interactions.api.http.member.MemberRequest.add_member_role:1 of +msgid "Adds a role to a guild member." +msgstr "" + +#: interactions.api.http.member.MemberRequest.add_member_role:3 +#: interactions.api.http.member.MemberRequest.remove_member_role:3 of +msgid "The ID of the guild" +msgstr "" + +#: interactions.api.http.member.MemberRequest.add_member_role:4 +#: interactions.api.http.member.MemberRequest.remove_member_role:4 of +msgid "The ID of the user" +msgstr "" + +#: interactions.api.http.member.MemberRequest.add_member_role:5 +#: interactions.api.http.member.MemberRequest.remove_member_role:5 of +msgid "The ID of the role to add" +msgstr "" + +#: interactions.api.http.member.MemberRequest.add_member_role:6 +#: interactions.api.http.member.MemberRequest.modify_member:7 +#: interactions.api.http.member.MemberRequest.remove_member_role:6 of +msgid "The reason for this action. Defaults to None." +msgstr "" + +#: interactions.api.http.member.MemberRequest.remove_member_role:1 of +msgid "Removes a role to a guild member." +msgstr "" + +#: interactions.api.http.member.MemberRequest.modify_member:1 of +msgid "" +"Edits a member. This can nick them, change their roles, mute/deafen (and " +"its contrary), and moving them across channels and/or disconnect them." +msgstr "" + +#: interactions.api.http.member.MemberRequest.modify_member:6 of +msgid "Payload representing parameters (nick, roles, mute, deaf, channel_id)" +msgstr "" + +#: interactions.api.http.member.MemberRequest.modify_member:8 of +msgid "Modified member object." +msgstr "" + +#: interactions.api.http.message.MessageRequest.send_message:1 of +msgid "" +"A higher level implementation of :meth:`create_message()` that handles " +"the payload dict internally. Does not integrate components into the " +"function, and is a port from v3.0.0" +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message:1 of +msgid "Send a message to the specified channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message:3 of +msgid "Dictionary contents of a message. (i.e. message payload)" +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message:4 +#: interactions.api.http.message.MessageRequest.delete_message:3 +#: interactions.api.http.message.MessageRequest.delete_messages:3 +#: interactions.api.http.message.MessageRequest.edit_message:3 +#: interactions.api.http.reaction.ReactionRequest.create_reaction:3 +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:3 +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji:3 +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction:3 of +msgid "Channel snowflake ID." +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message:5 +#: interactions.api.http.message.MessageRequest.edit_message:6 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message of +msgid "return dict" +msgstr "" + +#: interactions.api.http.message.MessageRequest.create_message:6 of +msgid "Dictionary representing a message (?)" +msgstr "" + +#: interactions.api.http.message.MessageRequest.get_message:1 of +msgid "Get a specific message in the channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.get_message:3 of +msgid "the channel this message belongs to" +msgstr "" + +#: interactions.api.http.message.MessageRequest.get_message:4 of +msgid "the id of the message" +msgstr "" + +#: interactions.api.http.message.MessageRequest.get_message:5 of +msgid "message if it exists." +msgstr "" + +#: interactions.api.http.message.MessageRequest.delete_message:1 of +msgid "Deletes a message from a specified channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.delete_message:4 +#: interactions.api.http.message.MessageRequest.edit_message:4 +#: interactions.api.http.reaction.ReactionRequest.create_reaction:4 +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:4 +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji:4 +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction:4 of +msgid "Message snowflake ID." +msgstr "" + +#: interactions.api.http.message.MessageRequest.delete_message:5 +#: interactions.api.http.message.MessageRequest.delete_messages:5 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." +msgstr "" + +#: interactions.api.http.message.MessageRequest.delete_messages:1 of +msgid "Deletes messages from a specified channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.delete_messages:4 of +msgid "An array of message snowflake IDs." +msgstr "" + +#: interactions.api.http.message.MessageRequest.edit_message:1 of +msgid "Edits a message that already exists." +msgstr "" + +#: interactions.api.http.message.MessageRequest.edit_message:5 of +msgid "Any new data that needs to be changed." +msgstr "" + +#: interactions.api.http.message.MessageRequest.edit_message:8 of +msgid "A message object with edited attributes." +msgstr "" + +#: interactions.api.http.message.MessageRequest.pin_message:1 of +msgid "Pin a message to a channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.pin_message:4 +#: interactions.api.http.message.MessageRequest.unpin_message:4 +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message:5 +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:5 of +msgid "Message ID snowflake." +msgstr "" + +#: interactions.api.http.message.MessageRequest.unpin_message:1 of +msgid "Unpin a message to a channel." +msgstr "" + +#: interactions.api.http.message.MessageRequest.publish_message:1 of +msgid "" +"Publishes (API calls it crossposts) a message in a News channel to any " +"that is followed by." +msgstr "" + +#: interactions.api.http.message.MessageRequest.publish_message:3 of +msgid "Channel the message is in" +msgstr "" + +#: interactions.api.http.message.MessageRequest.publish_message:4 of +msgid "The id of the message to publish" +msgstr "" + +#: interactions.api.http.message.MessageRequest.publish_message:5 of +msgid "message object" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.create_reaction:1 of +msgid "Create a reaction for a message." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.create_reaction:5 of +msgid "The emoji to use (format: `name:id`)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction:1 of +msgid "Remove bot user's reaction from a message." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji:5 +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction:5 of +msgid "The emoji to remove (format: `name:id`)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction:1 of +msgid "Remove user's reaction from a message." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction:3 of +msgid "The channel this is taking place in" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction:4 of +msgid "The message to remove the reaction on." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction:5 of +msgid "The emoji to remove. (format: `name:id`)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction:6 of +msgid "The user to remove reaction of." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions:1 of +msgid "Remove all reactions from a message." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions:3 of +msgid "The channel this is taking place in." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions:4 of +msgid "The message to clear reactions from." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji:1 +#: of +msgid "Remove all reactions of a certain emoji from a message." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:1 of +msgid "Gets the users who reacted to the emoji." +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:5 of +msgid "The emoji to get (format: `name:id`)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of +msgid "A list of users who sent that emoji." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event:1 +#: of +msgid "Creates a scheduled event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event:4 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event:5 +#: of +msgid "" +"The dictionary containing the parameters and values to edit the " +"associated event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event:5 +#: of +msgid "A dictionary containing the new guild scheduled event object on success." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:1 +#: of +msgid "Gets a guild scheduled event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event:4 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:4 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event:4 +#: of +msgid "Guild Scheduled Event ID snowflake." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 +#: of +msgid "A dictionary containing the guild scheduled event object on success." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:1 +#: of +msgid "Gets all guild scheduled events in a guild." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 +#: of +msgid "" +"A List of a dictionary containing the guild scheduled event objects on " +"success." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event:1 +#: of +msgid "Modifies a scheduled event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event:6 +#: of +msgid "" +"A dictionary containing the updated guild scheduled event object on " +"success." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event:1 +#: of +msgid "Deletes a guild scheduled event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event:5 +#: of +msgid "Nothing on success." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:1 +#: of +msgid "Get the registered users of a scheduled event." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:4 +#: of +msgid "Guild Scheduled Event snowflake." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:5 +#: of +msgid "Limit of how many users to pull from the event. Defaults to 100." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:6 +#: of +msgid "Include guild member data if it exists. Defaults to False." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:7 +#: of +msgid "Considers only users before given user ID snowflake. Defaults to None." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:8 +#: of +msgid "Considers only users after given user ID snowflake. Defaults to None." +msgstr "" + +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users:9 +#: of +msgid "Returns a list of guild scheduled event user objects on success." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_sticker:1 of +msgid "Get a specific sticker." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_sticker:3 of +msgid "The id of the sticker" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.get_sticker:4 of +msgid "Sticker or None" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs:3 of +msgid "List of sticker packs" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker:3 +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers:3 of +msgid "The guild to get stickers from" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers:4 of +msgid "List of Stickers or None" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker:1 of +msgid "Get a sticker from a guild." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker:4 of +msgid "The sticker to get from the guild" +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:1 of +msgid "" +"Create a new sticker for the guild. Requires the " +"MANAGE_EMOJIS_AND_STICKERS permission." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The guild to create sticker at." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of +msgid "The reason for this action." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +msgid "The new sticker data on success." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:1 of +msgid "" +"Modify the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS " +"permission." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of +msgid "The guild of the target sticker." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:5 of +msgid "The sticker to modify." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:7 of +msgid "The updated sticker data on success." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:1 of +msgid "" +"Delete the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS " +"permission." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:4 of +msgid "The sticker to delete." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:6 of +msgid "Returns 204 No Content on success." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.join_thread:1 of +msgid "Have the bot user join a thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.join_thread:3 of +msgid "The thread to join." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.leave_thread:1 of +msgid "Have the bot user leave a thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.leave_thread:3 of +msgid "The thread to leave." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread:1 of +msgid "Add another user to a thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread:3 +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread:3 +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread:3 of +msgid "The ID of the thread" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread:4 of +msgid "The ID of the user to add" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread:1 of +msgid "Remove another user from a thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread:4 of +msgid "The ID of the user to remove" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread:1 of +msgid "Get a member from a thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread:4 of +msgid "The ID of the user to find" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread:5 of +msgid "A thread member object, if they're in the thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_thread_members:1 of +msgid "Get a list of members in the thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_thread_members:3 of +msgid "the id of the thread" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_thread_members:4 of +msgid "a list of thread member objects" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads:1 of +msgid "Get a list of archived public threads in a given channel." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads:3 +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads:3 +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads:3 of +msgid "The channel to get threads from" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads:4 +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads:4 +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads:4 of +msgid "Optional limit of threads to" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads:5 +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads:5 of +msgid "Get threads before this Thread snowflake ID" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads:6 +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads:6 +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads:6 of +msgid "a list of threads" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads:1 +#: of +msgid "Get a list of archived private threads in a channel." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads:1 +#: of +msgid "" +"Get a list of archived private threads in a channel that the bot has " +"joined." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads:5 +#: of +msgid "Get threads before this snowflake ID" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_active_threads:1 of +msgid "List active threads within a guild." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_active_threads:3 of +msgid "the guild id to get threads from" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.list_active_threads:4 of +msgid "A list of active threads" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:1 of +msgid "" +"From a given channel, create a Thread with an optional message to start " +"with.." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +msgid "The ID of the channel to create this thread in" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +msgid "The name of the thread" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:7 of +msgid "" +"The type of thread, defaults to public. ignored if creating thread from a" +" message" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:9 of +msgid "An optional message to create a thread from." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +msgid "An optional reason for the audit log" +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread:11 of +msgid "The created thread" +msgstr "" + +#: interactions.api.http.user.UserRequest.get_self:1 of +msgid "An alias to `get_user`, but only gets the current bot user." +msgstr "" + +#: interactions.api.http.user.UserRequest.get_self:3 of +msgid "A partial User object of the current bot user in the form of a dictionary." +msgstr "" + +#: interactions.api.http.user.UserRequest.get_user:1 of +msgid "Gets a user object for a given user ID." +msgstr "" + +#: interactions.api.http.user.UserRequest.get_user:3 of +msgid "A user snowflake ID. If omitted, this defaults to the current bot user." +msgstr "" + +#: interactions.api.http.user.UserRequest.get_user:4 of +msgid "A partial User object in the form of a dictionary." +msgstr "" + +#: interactions.api.http.user.UserRequest.modify_self:1 of +msgid "Modify the bot user account settings." +msgstr "" + +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild:1 of +msgid "Changes a nickname of the current bot user in a guild." +msgstr "" + +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild:3 of +msgid "Guild snowflake ID." +msgstr "" + +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild:4 of +msgid "The new nickname, if any." +msgstr "" + +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild:5 of +msgid "Nothing needed to be yielded." +msgstr "" + +#: interactions.api.http.user.UserRequest.create_dm:1 of +msgid "Creates a new DM channel with a user." +msgstr "" + +#: interactions.api.http.user.UserRequest.create_dm:3 of +msgid "User snowflake ID." +msgstr "" + +#: interactions.api.http.user.UserRequest.create_dm:4 of +msgid "Returns a dictionary representing a DM Channel object." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.create_webhook:1 of +msgid "Create a new webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.create_webhook:4 of +msgid "Name of the webhook (1-80 characters)" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.create_webhook:5 of +msgid "The image for the default webhook avatar, if given." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.create_webhook:7 of +msgid "Webhook object" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks:1 of +msgid "Return a list of channel webhook objects." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks:4 +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks:4 of +msgid "List of webhook objects" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks:1 of +msgid "Return a list of guild webhook objects." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook:1 of +msgid "Return the new webhook object for the given id." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message:3 +#: interactions.api.http.webhook.WebhookRequest.delete_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message:3 +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:3 +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.get_webhook:3 +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message:3 of +msgid "Webhook ID snowflake." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook:4 of +msgid "Webhook Token, if given." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook:6 of +msgid ":return:Webhook object" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.modify_webhook:1 of +msgid "Modify a webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.modify_webhook:3 of +msgid "Webhook ID snowflake" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.modify_webhook:4 of +msgid "The payload for the webhook" +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_webhook:4 +#: interactions.api.http.webhook.WebhookRequest.modify_webhook:5 of +msgid "The token for the webhook, if given." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.modify_webhook:7 of +msgid "Modified webhook object." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_webhook:1 of +msgid "Delete a webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:1 of +msgid "Sends a message as a webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:4 +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:4 +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:4 of +msgid "The token for the webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:5 +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:5 +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:5 of +msgid "Payload consisting of the message." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:6 of +msgid "The files to upload to the message." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:7 of +msgid "" +"A bool that signifies waiting for server confirmation of a send before " +"responding." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:8 of +msgid "Optional, sends a message to the specified thread." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_webhook:9 of +msgid "The message sent, if wait=True, else None." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:1 of +msgid "Sends a message to a Slack-compatible webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook:10 of +msgid "" +"Payload structure is different than Discord's. See `here " +"_` for more details." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:1 of +msgid "Sends a message to a Github-compatible webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook:10 of +msgid "" +"Payload structure is different than Discord's. See `here " +"_` for more details." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message:1 of +msgid "Retrieves a message sent from a Webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message:4 +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message:4 +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:4 +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message:4 of +msgid "Webhook token." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message:5 of +msgid "Message ID snowflake," +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message:6 of +msgid "A Message object." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:1 of +msgid "Edits a message sent from a Webhook." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:6 of +msgid "A payload consisting of new message attributes." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message:7 of +msgid "An updated message object." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message:1 of +msgid "Deletes a message object." +msgstr "" + +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message:1 +#: of +msgid "Deletes the original message object sent." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.channel.po b/docs/locale/es/LC_MESSAGES/api.models.channel.po new file mode 100644 index 000000000..1ca5f1ac3 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.channel.po @@ -0,0 +1,795 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.channel.rst:4 +msgid "Channel Models" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "An enumerable object representing the type of channels." +msgstr "" + +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.channel.Thread:1 of +msgid "An object representing a thread." +msgstr "" + +#: interactions.api.models.channel.Thread:4 of +msgid "" +"This is a derivation of the base Channel, since a thread can be its own " +"event." +msgstr "" + +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.channel.Channel:1 of +msgid "A class object representing all types of channels." +msgstr "" + +#: interactions.api.models.channel.Channel:4 of +msgid "" +"The purpose of this model is to be used as a base class, and is never " +"needed to be used directly." +msgstr "" + +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Variables" +msgstr "" + +#: interactions.api.models.channel.Channel:7 of +msgid "The (snowflake) ID of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:8 of +msgid "The type of channel." +msgstr "" + +#: interactions.api.models.channel.Channel:9 of +msgid "The ID of the guild if it is not a DM channel." +msgstr "" + +#: interactions.api.models.channel.Channel:10 of +msgid "The position of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:11 of +msgid "The non-synced permissions of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:12 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:13 of +msgid "The description of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:14 of +msgid "Whether the channel is NSFW." +msgstr "" + +#: interactions.api.models.channel.Channel:15 of +msgid "The ID of the last message sent." +msgstr "" + +#: interactions.api.models.channel.Channel:16 of +msgid "The audio bitrate of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:17 of +msgid "The maximum amount of users allowed in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:18 of +msgid "The concurrent ratelimit for users in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:19 of +msgid "The recipients of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:20 of +msgid "The icon of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:21 of +msgid "The owner of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:22 of +msgid "The application of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:23 of +msgid "The ID of the \"parent\"/main channel." +msgstr "" + +#: interactions.api.models.channel.Channel:24 of +msgid "The timestamp of the last pinned message in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:25 of +msgid "The region of the WebRTC connection for the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:26 of +msgid "The set quality mode for video streaming in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:27 of +msgid "The amount of messages in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:28 of +msgid "The amount of members in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:29 of +msgid "The thread metadata of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:30 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:31 of +msgid "" +"The set auto-archive time for all threads to naturally follow in the " +"channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of +msgid "The permissions of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.mention +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit of +msgid "Returns" +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.mention +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of +msgid "Return type" +msgstr "" + +#: interactions.api.models.channel.Channel.send:1 of +msgid "Sends a message in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.send:3 of +msgid "The contents of the message as a string or string-converted value." +msgstr "" + +#: interactions.api.models.channel.Channel.send:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." +msgstr "" + +#: interactions.api.models.channel.Channel.send:7 of +msgid "A file or list of files to be attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:9 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" +msgstr "" + +#: interactions.api.models.channel.Channel.send:11 of +msgid "An embed, or list of embeds for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:13 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of +msgid "The sent message as an object." +msgstr "" + +#: interactions.api.models.channel.Channel.delete:1 of +msgid "Deletes the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.modify:1 of +msgid "Edits the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.modify:4 of +msgid "" +"The fields `archived`, `auto_archive_duration` and `locked` require the " +"provided channel to be a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.modify:6 of +msgid "The name of the channel, defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:8 of +msgid "The topic of that channel, defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:10 of +msgid "" +"(voice channel only) The bitrate (in bits) of the voice channel, defaults" +" to the current value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:12 of +msgid "" +"(voice channel only) Maximum amount of users in the channel, defaults to " +"the current value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:14 of +msgid "" +"Amount of seconds a user has to wait before sending another message " +"(0-21600), defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:16 of +msgid "" +"Sorting position of the channel, defaults to the current value of the " +"channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:18 of +msgid "" +"The id of the parent category for a channel, defaults to the current " +"value of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:20 of +msgid "" +"Whether the channel is nsfw or not, defaults to the current value of the " +"channel" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:22 of +msgid "The permission overwrites, if any" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:24 of +msgid "Whether the thread is archived" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:26 +#: interactions.api.models.channel.Channel.set_auto_archive_duration:3 of +msgid "" +"The time after the thread is automatically archived. One of 60, 1440, " +"4320, 10080" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:28 of +msgid "Whether the thread is locked" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:30 of +msgid "The reason for the edit" +msgstr "" + +#: interactions.api.models.channel.Channel.modify:32 of +msgid "The modified channel as new object" +msgstr "" + +#: interactions.api.models.channel.Channel.set_name:1 of +msgid "Sets the name of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_name:3 of +msgid "The new name of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.lock:5 +#: interactions.api.models.channel.Channel.set_auto_archive_duration:5 +#: interactions.api.models.channel.Channel.set_bitrate:5 +#: interactions.api.models.channel.Channel.set_name:5 +#: interactions.api.models.channel.Channel.set_nsfw:5 +#: interactions.api.models.channel.Channel.set_parent_id:5 +#: interactions.api.models.channel.Channel.set_position:5 +#: interactions.api.models.channel.Channel.set_rate_limit_per_user:5 +#: interactions.api.models.channel.Channel.set_topic:5 +#: interactions.api.models.channel.Channel.set_user_limit:5 of +msgid "The reason of the edit" +msgstr "" + +#: interactions.api.models.channel.Channel.archive:7 +#: interactions.api.models.channel.Channel.lock:7 +#: interactions.api.models.channel.Channel.set_auto_archive_duration:7 +#: interactions.api.models.channel.Channel.set_bitrate:7 +#: interactions.api.models.channel.Channel.set_name:7 +#: interactions.api.models.channel.Channel.set_nsfw:7 +#: interactions.api.models.channel.Channel.set_parent_id:7 +#: interactions.api.models.channel.Channel.set_position:7 +#: interactions.api.models.channel.Channel.set_rate_limit_per_user:7 +#: interactions.api.models.channel.Channel.set_topic:7 +#: interactions.api.models.channel.Channel.set_user_limit:7 of +msgid "The edited channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_topic:1 of +msgid "Sets the topic of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_topic:3 of +msgid "The new topic of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_bitrate:1 of +msgid "Sets the bitrate of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_bitrate:3 of +msgid "The new bitrate of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_user_limit:1 of +msgid "Sets the user_limit of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_user_limit:3 of +msgid "The new user limit of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." +msgstr "" + +#: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of +msgid "The new rate_limit_per_user of the channel (0-21600)" +msgstr "" + +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_position:3 of +msgid "The new position of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_parent_id:1 of +msgid "Sets the parent_id of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_parent_id:3 of +msgid "The new parent_id of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.set_nsfw:1 of +msgid "Sets the nsfw-flag of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.set_nsfw:3 of +msgid "The new nsfw-flag of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.archive:1 of +msgid "Sets the archived state of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.archive:3 of +msgid "Whether the Thread is archived, defaults to True" +msgstr "" + +#: interactions.api.models.channel.Channel.archive:5 of +msgid "The reason of the archiving" +msgstr "" + +#: interactions.api.models.channel.Channel.set_auto_archive_duration:1 of +msgid "Sets the time after the thread is automatically archived." +msgstr "" + +#: interactions.api.models.channel.Channel.lock:1 of +msgid "Sets the locked state of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.lock:3 of +msgid "Whether the Thread is locked, defaults to True" +msgstr "" + +#: interactions.api.models.channel.Channel.add_member:1 of +msgid "This adds a member to the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.add_member:3 of +msgid "The id of the member to add to the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.pin_message:1 of +msgid "Pins a message to the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.pin_message:3 of +msgid "The id of the message to pin" +msgstr "" + +#: interactions.api.models.channel.Channel.unpin_message:1 of +msgid "Unpins a message from the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.unpin_message:3 of +msgid "The id of the message to unpin" +msgstr "" + +#: interactions.api.models.channel.Channel.publish_message:1 of +msgid "" +"Publishes (API calls it crossposts) a message in the channel to any that " +"is followed by." +msgstr "" + +#: interactions.api.models.channel.Channel.publish_message:3 of +msgid "The id of the message to publish" +msgstr "" + +#: interactions.api.models.channel.Channel.publish_message:5 of +msgid "The message published" +msgstr "" + +#: interactions.api.models.channel.Channel.get_pinned_messages:1 of +msgid "Get all pinned messages from the channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_pinned_messages:3 of +msgid "A list of pinned message objects." +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:1 of +msgid "Gets a message sent in that channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of +msgid "The message as object" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:1 of +msgid "" +"Purges a given amount of messages from a channel. You can specify a check" +" function to exclude specific messages." +msgstr "" + +#: interactions.api.models.channel.Channel.purge:3 of +msgid "" +"Calling this method can lead to rate-limits when purging higher amounts " +"of messages." +msgstr "" + +#: interactions.api.models.channel.Channel.purge:11 of +msgid "The amount of messages to delete" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:13 of +msgid "" +"The function used to check if a message should be deleted. The message is" +" only deleted if the check returns `True`" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:15 of +msgid "An id of a message to purge only messages before that message" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:17 of +msgid "" +"Whether to bulk delete the messages (you cannot delete messages older " +"than 14 days, default) or to delete every message seperately" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:18 of +msgid "Optional[bool]" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:19 of +msgid "The reason of the deletes" +msgstr "" + +#: interactions.api.models.channel.Channel.purge:21 of +msgid "A list of the deleted messages" +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:1 of +msgid "Creates a thread in the Channel." +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:3 of +msgid "The name of the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:8 of +msgid "" +"The type of thread, defaults to public. ignored if creating thread from a" +" message" +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:10 of +msgid "Boolean to display if the Thread is open to join or private." +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:12 of +msgid "An optional message to create a thread from." +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:14 of +msgid "An optional reason for the audit log" +msgstr "" + +#: interactions.api.models.channel.Channel.create_thread:16 of +msgid "The created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:1 of +msgid "Creates an invite for the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:3 of +msgid "" +"Duration of invite in seconds before expiry, or 0 for never. between 0 " +"and 604800 (7 days). Default 86400 (24h)" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:5 of +msgid "Max number of uses or 0 for unlimited. between 0 and 100. Default 0" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:7 of +msgid "Whether this invite only grants temporary membership. Default False" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:9 of +msgid "" +"If true, don't try to reuse a similar invite (useful for creating many " +"unique one time use invites). Default False" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:11 of +msgid "The type of target for this voice channel invite" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:13 of +msgid "" +"The id of the user whose stream to display for this invite, required if " +"target_type is STREAM, the user must be streaming in the channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:15 of +msgid "" +"The id of the embedded application to open for this invite, required if " +"target_type is EMBEDDED_APPLICATION, the application must have the " +"EMBEDDED flag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_invite:17 of +msgid "The reason for the creation of the invite" +msgstr "" + +#: interactions.api.models.channel.Channel.get_history:1 of +msgid "Gets messages from the channel's history." +msgstr "" + +#: interactions.api.models.channel.Channel.get_history:3 of +msgid "The amount of messages to get. Default 100" +msgstr "" + +#: interactions.api.models.channel.Channel.get_history:5 of +msgid "A list of messages" +msgstr "" + +#: interactions.api.models.channel.Channel.get_webhooks:1 of +msgid "Gets a list of webhooks of that channel" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + +#: interactions.api.models.channel.ThreadMember:1 of +msgid "A class object representing a member in a thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:4 of +msgid "" +"``id`` only shows if there are active intents involved with the member in" +" the thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:7 of +msgid "The \"ID\" or intents of the member." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:8 of +msgid "The user ID of the member." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:9 of +msgid "The timestamp of when the member joined the thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:10 of +msgid "The bitshift flags for the member in the thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMember:11 of +msgid "Whether the member is muted or not." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:1 of +msgid "A class object representing the metadata of a thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:4 of +msgid "" +"``invitable`` will only show if the thread can have an invited created " +"with the current cached permissions." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:7 of +msgid "The current thread accessibility state." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:8 of +msgid "The auto-archive time." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:9 of +msgid "The timestamp that the thread will be/has been closed at." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:10 of +msgid "The current message state of the thread." +msgstr "" + +#: interactions.api.models.channel.ThreadMetadata:11 of +msgid "The ability to invite users to the thread." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.flags.po b/docs/locale/es/LC_MESSAGES/api.models.flags.po new file mode 100644 index 000000000..af66fea34 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.flags.po @@ -0,0 +1,94 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.flags.rst:4 +msgid "Flag Bitshift Models" +msgstr "" + +#: interactions.api.models.flags.Intents:1 of +msgid "" +"An integer flag bitshift object representing flags respective for each " +"gateway intent type." +msgstr "" + +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 of +msgid "" +"An integer flag bitshift object representing the different application " +"flags given by Discord." +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "" +"An enumerable object representing Discord status icons that a user may " +"have." +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.flags.UserFlags:1 of +msgid "" +"An integer flag bitshift object representing the different user flags " +"given by Discord." +msgstr "" + +#: interactions.api.models.flags.Permissions:1 of +msgid "" +"An integer flag bitshift object representing the different member " +"permissions given by Discord." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.guild.po b/docs/locale/es/LC_MESSAGES/api.models.guild.po new file mode 100644 index 000000000..a233b694b --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.guild.po @@ -0,0 +1,1899 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.guild.rst:4 +msgid "Guild Models" +msgstr "" + +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "An enumerable object representing the verification level of a guild." +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.guild.EntityType:1 of +msgid "An enumerable object representing the type of event." +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 of +msgid "" +"An enumerable object representing the default message notification level " +"of a guild." +msgstr "" + +#: interactions.api.models.guild.EventMetadata:1 of +msgid "A class object representing the metadata of an event entity." +msgstr "" + +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Variables" +msgstr "" + +#: interactions.api.models.guild.EventMetadata:3 of +msgid "The location of the event, if any." +msgstr "" + +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.guild.EventStatus:1 of +msgid "An enumerable object representing the status of an event." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:1 of +msgid "An object representing the snapshot of an existing guild." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:3 of +msgid "The code of the guild template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:4 of +msgid "The name of the guild template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:5 of +msgid "The description of the guild template, if given." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:6 of +msgid "The amount of uses on the template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:7 of +msgid "User ID of the creator of this template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:8 of +msgid "The User object of the creator of this template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:9 of +msgid "The time when this template was created." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:10 of +msgid "The time when this template was updated." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:11 of +msgid "The Guild ID that the template sourced from." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:12 of +msgid "A partial Guild object from the sourced template." +msgstr "" + +#: interactions.api.models.guild.GuildTemplate:13 of +msgid "A status that denotes if the changes are unsynced." +msgstr "" + +#: interactions.api.models.guild.Integration:1 of +msgid "A class object representing an integration in a guild." +msgstr "" + +#: interactions.api.models.guild.Integration:3 of +msgid "The ID of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:4 of +msgid "The name of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:5 of +msgid "The type of integration." +msgstr "" + +#: interactions.api.models.guild.Integration:6 of +msgid "Whether the integration is enabled or not." +msgstr "" + +#: interactions.api.models.guild.Integration:7 of +msgid "Whether the integration is syncing or not." +msgstr "" + +#: interactions.api.models.guild.Integration:8 of +msgid "The role ID that the integration uses for \"subscribed\" users." +msgstr "" + +#: interactions.api.models.guild.Integration:9 of +msgid "Whether emoticons should be enabled or not." +msgstr "" + +#: interactions.api.models.guild.Integration:10 of +msgid "The expiration behavior of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:11 of +msgid "" +"The \"grace period\" of the integration when expired -- how long it can " +"still be used." +msgstr "" + +#: interactions.api.models.guild.Integration:12 of +msgid "The user of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:13 of +msgid "The account of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:14 of +msgid "The time that the integration was last synced." +msgstr "" + +#: interactions.api.models.guild.Integration:15 of +msgid "The current subscriber count of the integration." +msgstr "" + +#: interactions.api.models.guild.Integration:16 of +msgid "Whether the integration was revoked for use or not." +msgstr "" + +#: interactions.api.models.guild.Integration:17 of +msgid "The application used for the integration." +msgstr "" + +#: interactions.api.models.guild.InviteTargetType:1 of +msgid "An enumerable object representing the different invite target types" +msgstr "" + +#: interactions.api.models.guild.StageInstance:1 of +msgid "A class object representing an instance of a stage channel in a guild." +msgstr "" + +#: interactions.api.models.guild.StageInstance:3 of +msgid "The ID of the stage." +msgstr "" + +#: interactions.api.models.guild.StageInstance:4 of +msgid "The guild ID the stage is in." +msgstr "" + +#: interactions.api.models.guild.StageInstance:5 of +msgid "The channel ID the stage is instantiated from." +msgstr "" + +#: interactions.api.models.guild.StageInstance:6 of +msgid "The topic of the stage." +msgstr "" + +#: interactions.api.models.guild.StageInstance:7 of +msgid "The \"privacy\"/inclusive accessibility level of the stage." +msgstr "" + +#: interactions.api.models.guild.StageInstance:8 of +msgid "Whether the stage can be seen from the stage discovery." +msgstr "" + +#: interactions.api.models.guild.UnavailableGuild:1 of +msgid "A class object representing how a guild that is unavailable." +msgstr "" + +#: interactions.api.models.guild.UnavailableGuild:4 of +msgid "" +"This object only seems to show up during the connection process of the " +"client to the Gateway when the ``READY`` event is dispatched. This event " +"will pass fields with ``guilds`` where this becomes present." +msgstr "" + +#: interactions.api.models.guild.UnavailableGuild:9 of +msgid "The ID of the unavailable guild." +msgstr "" + +#: interactions.api.models.guild.UnavailableGuild:10 of +msgid "Whether the guild is unavailable or not." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:1 of +msgid "A class object representing a welcome channel on the welcome screen." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:4 of +msgid "" +"``emoji_id`` and ``emoji_name`` are given values respectively if the " +"welcome channel uses an emoji." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:7 of +msgid "The ID of the welcome channel." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:8 of +msgid "The description of the welcome channel." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:9 of +msgid "The ID of the emoji of the welcome channel." +msgstr "" + +#: interactions.api.models.guild.WelcomeChannels:10 of +msgid "The name of the emoji of the welcome channel." +msgstr "" + +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 of +msgid "" +"An enumerable object representing the explicit content filter level of a " +"guild." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:1 of +msgid "A class object representing the scheduled events of a guild." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:4 of +msgid "" +"Some attributes are optional via creator_id/creator implementation by the" +" API: \"`creator_id` will be null and `creator` will not be included for " +"events created before October 25th, 2021, when the concept of " +"`creator_id` was introduced and tracked.\"" +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:7 of +msgid "The ID of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:8 of +msgid "The ID of the guild that this scheduled event belongs to." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:9 of +msgid "The channel ID in which the scheduled event belongs to, if any." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:10 of +msgid "The ID of the user that created the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:11 of +msgid "The name of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:12 of +msgid "The description of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:13 of +msgid "The scheduled event start time." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:14 of +msgid "The scheduled event end time, if any." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:15 of +msgid "The privacy level of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:16 of +msgid "The type of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:17 of +msgid "The ID of the entity associated with the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:18 of +msgid "Additional metadata associated with the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:19 of +msgid "The user that created the scheduled event." +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:20 of +msgid "The number of users subscribed to the scheduled event." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_scheduled_event:19 +#: interactions.api.models.guild.ScheduledEvents:21 of +msgid "The status of the scheduled event" +msgstr "" + +#: interactions.api.models.guild.ScheduledEvents:22 of +msgid "The hash containing the image of an event, if applicable." +msgstr "" + +#: interactions.api.models.guild.WelcomeScreen:1 of +msgid "A class object representing the welcome screen shown for community guilds." +msgstr "" + +#: interactions.api.models.guild.WelcomeScreen:4 of +msgid "``description`` is ambiguous -- Discord poorly documented this. :)" +msgstr "" + +#: interactions.api.models.guild.WelcomeScreen:6 of +msgid "We assume it's for the welcome screen topic." +msgstr "" + +#: interactions.api.models.guild.WelcomeScreen:8 of +msgid "The description of the welcome screen." +msgstr "" + +#: interactions.api.models.guild.WelcomeScreen:9 of +msgid "A list of welcome channels of the welcome screen." +msgstr "" + +#: interactions.api.models.guild.Guild:1 of +msgid "A class object representing how a guild is registered." +msgstr "" + +#: interactions.api.models.guild.Guild:4 of +msgid "" +"Most of these optionals are actually declared with their value upon " +"instantiation but are kept like this since this class object is meant to " +"be more broad and generalized." +msgstr "" + +#: interactions.api.models.guild.Guild:8 +#: interactions.api.models.guild.GuildPreview:3 of +msgid "The ID of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:9 +#: interactions.api.models.guild.GuildPreview:4 of +msgid "The name of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:10 +#: interactions.api.models.guild.GuildPreview:5 of +msgid "The icon of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:11 of +msgid "The hashed version of the icon of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:12 +#: interactions.api.models.guild.GuildPreview:6 of +msgid "The invite splash banner of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:13 +#: interactions.api.models.guild.GuildPreview:7 of +msgid "The discovery splash banner of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:14 of +msgid "Whether the guild is owned." +msgstr "" + +#: interactions.api.models.guild.Guild:15 of +msgid "The ID of the owner of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:16 of +msgid "The permissions of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:17 of +msgid "The geographical region of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:18 of +msgid "The AFK voice channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:19 of +msgid "The timeout of the AFK voice channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:20 of +msgid "Whether widgets are enabled in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:21 of +msgid "The channel ID of the widget in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:22 of +msgid "The level of user verification of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:23 of +msgid "The default message notifications setting of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:24 of +msgid "The explicit content filter setting level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:25 of +msgid "The list of roles in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:26 +#: interactions.api.models.guild.GuildPreview:8 of +msgid "The list of emojis from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:27 +#: interactions.api.models.guild.GuildPreview:9 of +msgid "The list of features of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:28 of +msgid "The MFA level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:29 of +msgid "The application ID of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:30 of +msgid "The channel ID of the system of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:31 of +msgid "The channel ID of Discord's defined \"rules\" channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:32 of +msgid "The timestamp the member joined the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:33 of +msgid "Whether the guild is considered \"large.\"" +msgstr "" + +#: interactions.api.models.guild.Guild:34 of +msgid "Whether the guild is unavailable to access." +msgstr "" + +#: interactions.api.models.guild.Guild:35 of +msgid "The amount of members in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:36 of +msgid "The members in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:37 of +msgid "The channels in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:38 of +msgid "All known threads in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:39 of +msgid "The list of presences in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:40 of +msgid "The maximum amount of presences allowed in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:41 of +msgid "The maximum amount of members allowed in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:42 of +msgid "The vanity URL of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:43 +#: interactions.api.models.guild.GuildPreview:12 of +msgid "The description of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:44 of +msgid "The banner of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:45 of +msgid "The server boost level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:46 of +msgid "The amount of server boosters in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:47 of +msgid "The \"preferred\" local region of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:48 of +msgid "The channel ID for community updates of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:49 of +msgid "" +"The maximum amount of video streaming members in a channel allowed in a " +"guild." +msgstr "" + +#: interactions.api.models.guild.Guild:50 +#: interactions.api.models.guild.GuildPreview:10 of +msgid "The approximate amount of members in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:51 +#: interactions.api.models.guild.GuildPreview:11 of +msgid "The approximate amount of presences in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:52 of +msgid "The welcome screen of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:53 of +msgid "The NSFW safety filter level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:54 of +msgid "The stage instance of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:55 of +msgid "The list of stickers from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild:56 of +msgid "Whether the guild has the boost progress bar enabled." +msgstr "" + +#: interactions.api.models.guild.Guild.ban:1 of +msgid "Bans a member from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" +msgstr "" + +#: interactions.api.models.guild.Guild.remove_ban:1 of +msgid "Removes the ban of a user." +msgstr "" + +#: interactions.api.models.guild.Guild.remove_ban:3 of +msgid "The id of the user to remove the ban from" +msgstr "" + +#: interactions.api.models.guild.Guild.remove_ban:5 of +msgid "The reason for the removal of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.kick:1 of +msgid "Kicks a member from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.kick:3 of +msgid "The id of the member to kick" +msgstr "" + +#: interactions.api.models.guild.Guild.kick:5 of +msgid "The reason for the kick" +msgstr "" + +#: interactions.api.models.guild.Guild.add_member_role:1 of +msgid "This method adds a role to a member." +msgstr "" + +#: interactions.api.models.guild.Guild.add_member_role:3 of +msgid "The role to add. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.guild.Guild.add_member_role:4 of +msgid "" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" +msgstr "" + +#: interactions.api.models.guild.Guild.remove_member_role:1 of +msgid "This method removes a or multiple role(s) from a member." +msgstr "" + +#: interactions.api.models.guild.Guild.remove_member_role:3 of +msgid "The role to remove. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.guild.Guild.remove_member_role:5 of +msgid "The id of the member to remove the roles from" +msgstr "" + +#: interactions.api.models.guild.Guild.remove_member_role:7 of +msgid "The reason why the roles are removed" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:1 of +msgid "Creates a new role in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:3 of +msgid "The name of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:5 of +msgid "RGB color value as integer, default ``0``" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:7 of +msgid "Bitwise value of the enabled/disabled permissions" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:9 of +msgid "" +"Whether the role should be displayed separately in the sidebar, default " +"``False``" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:11 of +msgid "The role's icon image (if the guild has the ROLE_ICONS feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:13 of +msgid "" +"The role's unicode emoji as a standard emoji (if the guild has the " +"ROLE_ICONS feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:15 of +msgid "Whether the role should be mentionable, default ``False``" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:17 of +msgid "The reason why the role is created, default ``None``" +msgstr "" + +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.search_members of +msgid "Returns" +msgstr "" + +#: interactions.api.models.guild.Guild.create_role:19 of +msgid "The created Role" +msgstr "" + +#: interactions.api.models.guild.Guild.get_member:1 of +msgid "" +"Searches for the member with specified id in the guild and returns the " +"member as member object." +msgstr "" + +#: interactions.api.models.guild.Guild.get_member:3 of +msgid "The id of the member to search for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_member:5 of +msgid "The member searched for" +msgstr "" + +#: interactions.api.models.guild.Guild.delete_channel:1 of +msgid "Deletes a channel from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_channel:3 of +msgid "The id of the channel to delete" +msgstr "" + +#: interactions.api.models.guild.Guild.delete_role:1 of +msgid "Deletes a role from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_role:3 of +msgid "The id of the role to delete" +msgstr "" + +#: interactions.api.models.guild.Guild.delete_emoji:5 +#: interactions.api.models.guild.Guild.delete_role:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:1 of +msgid "Edits a role in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:3 of +msgid "The id of the role to edit" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:5 of +msgid "The name of the role, defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:7 of +msgid "RGB color value as integer, defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:11 of +msgid "" +"Whether the role should be displayed separately in the sidebar, defaults " +"to the current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:13 of +msgid "" +"The role's icon image (if the guild has the ROLE_ICONS feature), defaults" +" to the current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:15 of +msgid "" +"The role's unicode emoji as a standard emoji (if the guild has the " +"ROLE_ICONS feature), defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:17 of +msgid "" +"Whether the role should be mentionable, defaults to the current value of " +"the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:19 of +msgid "The reason why the role is edited, default ``None``" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role:21 of +msgid "The modified role object" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:1 of +msgid "Creates a thread in the specified channel." +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:3 of +msgid "The name of the thread" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:5 of +msgid "The id of the channel to create the thread in" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:7 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:10 of +msgid "" +"The type of thread, defaults to public. ignored if creating thread from a" +" message" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:12 of +msgid "Boolean to display if the Thread is open to join or private." +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:14 of +msgid "An optional message to create a thread from." +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:16 of +msgid "An optional reason for the audit log" +msgstr "" + +#: interactions.api.models.guild.Guild.create_thread:18 of +msgid "The created thread" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:1 of +msgid "Creates a channel in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:3 of +msgid "The name of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:5 of +msgid "The type of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:7 of +msgid "The topic of that channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:9 of +msgid "(voice channel only) The bitrate (in bits) of the voice channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:11 of +msgid "(voice channel only) Maximum amount of users in the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:13 of +msgid "" +"Amount of seconds a user has to wait before sending another message " +"(0-21600)" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:15 of +msgid "Sorting position of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:17 of +msgid "The id of the parent category for a channel" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:19 +#: interactions.api.models.guild.Guild.modify_channel:22 of +msgid "The permission overwrites, if any" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:21 of +msgid "Whether the channel is nsfw or not, default ``False``" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:23 of +msgid "The reason for the creation" +msgstr "" + +#: interactions.api.models.guild.Guild.create_channel:25 of +msgid "The created channel" +msgstr "" + +#: interactions.api.models.guild.Guild.clone_channel:1 of +msgid "Clones a channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.clone_channel:3 of +msgid "The id of the channel to clone" +msgstr "" + +#: interactions.api.models.guild.Guild.clone_channel:5 of +msgid "The cloned channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:1 of +msgid "Edits a channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:4 of +msgid "" +"The fields `archived`, `auto_archive_duration` and `locked` require the " +"provided channel to be a thread." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:6 of +msgid "The id of the channel to modify" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:8 of +msgid "The name of the channel, defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:10 of +msgid "The topic of that channel, defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:12 of +msgid "" +"(voice channel only) The bitrate (in bits) of the voice channel, defaults" +" to the current value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:14 of +msgid "" +"(voice channel only) Maximum amount of users in the channel, defaults to " +"the current value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:16 of +msgid "" +"Amount of seconds a user has to wait before sending another message " +"(0-21600), defaults to the current value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:18 of +msgid "" +"Sorting position of the channel, defaults to the current value of the " +"channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:20 of +msgid "" +"The id of the parent category for a channel, defaults to the current " +"value of the channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:24 of +msgid "" +"Whether the channel is nsfw or not, defaults to the current value of the " +"channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:26 of +msgid "Whether the thread is archived" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:28 of +msgid "" +"The time after the thread is automatically archived. One of 60, 1440, " +"4320, 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:30 of +msgid "Whether the thread is locked" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:32 of +msgid "The reason for the edit" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_channel:34 of +msgid "The modified channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:1 of +msgid "Modifies a member of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:3 of +msgid "The id of the member to modify" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:5 of +msgid "The nickname of the member" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:7 of +msgid "A list of all role ids the member has" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:9 of +msgid "whether the user is muted in voice channels" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:11 of +msgid "whether the user is deafened in voice channels" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:13 of +msgid "id of channel to move user to (if they are connected to voice)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:15 of +msgid "" +"when the user's timeout will expire and the user will be able to " +"communicate in the guild again (up to 28 days in the future)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:17 of +msgid "The reason of the modifying" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_member:19 of +msgid "The modified member" +msgstr "" + +#: interactions.api.models.guild.Guild.get_preview:1 of +msgid "Get the guild's preview." +msgstr "" + +#: interactions.api.models.guild.Guild.get_preview:3 of +msgid "the guild preview as object" +msgstr "" + +#: interactions.api.models.guild.Guild.leave:1 of +msgid "Removes the bot from the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify:1 of +msgid "Modifies the current guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify:3 +#: interactions.api.models.guild.Guild.set_afk_channel:3 +#: interactions.api.models.guild.Guild.set_name:3 of +msgid "The new name of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:5 of +msgid "The verification level of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:7 of +msgid "The default message notification level for members" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:9 of +msgid "The explicit content filter level for media content" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:11 of +msgid "The id for the afk voice channel" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:13 of +msgid "Afk timeout in seconds" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:15 of +msgid "" +"1024x1024 png/jpeg/gif image for the guild icon (can be animated gif when" +" the server has the ANIMATED_ICON feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:17 of +msgid "" +"The id of the user to transfer the guild ownership to. You must be the " +"owner to perform this" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:19 of +msgid "" +"16:9 png/jpeg image for the guild splash (when the server has the " +"INVITE_SPLASH feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:21 of +msgid "" +"16:9 png/jpeg image for the guild discovery splash (when the server has " +"the DISCOVERABLE feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:23 of +msgid "" +"16:9 png/jpeg image for the guild banner (when the server has the BANNER " +"feature; can be animated gif when the server has the ANIMATED_BANNER " +"feature)" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:25 of +msgid "" +"The id of the channel where guild notices such as welcome messages and " +"boost events are posted" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:27 of +msgid "Whether to suppress member join notifications in the system channel or not" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:29 of +msgid "" +"Whether to suppress server boost notifications in the system channel or " +"not" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:31 of +msgid "Whether to suppress server setup tips in the system channel or not" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:33 of +msgid "" +"Whether to hide member join sticker reply buttons in the system channel " +"or not" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:35 of +msgid "The id of the channel where guilds display rules and/or guidelines" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:37 of +msgid "" +"The id of the channel where admins and moderators of community guilds " +"receive notices from Discord" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:39 of +msgid "" +"The preferred locale of a community guild used in server discovery and " +"notices from Discord; defaults to \"en-US\"" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:41 of +msgid "The description for the guild, if the guild is discoverable" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:43 of +msgid "Whether the guild's boost progress bar is enabled" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:45 +#: interactions.api.models.guild.Guild.modify_role_position:7 +#: interactions.api.models.guild.Guild.modify_role_positions:5 of +msgid "The reason for the modifying" +msgstr "" + +#: interactions.api.models.guild.Guild.modify:47 of +msgid "The modified guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_name:1 of +msgid "Sets the name of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_afk_channel:5 +#: interactions.api.models.guild.Guild.set_afk_timeout:5 +#: interactions.api.models.guild.Guild.set_banner:5 +#: interactions.api.models.guild.Guild.set_default_message_notifications:5 +#: interactions.api.models.guild.Guild.set_description:5 +#: interactions.api.models.guild.Guild.set_discovery_splash:5 +#: interactions.api.models.guild.Guild.set_explicit_content_filter:5 +#: interactions.api.models.guild.Guild.set_icon:5 +#: interactions.api.models.guild.Guild.set_name:5 +#: interactions.api.models.guild.Guild.set_preferred_locale:5 +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled:5 +#: interactions.api.models.guild.Guild.set_public_updates_channel:5 +#: interactions.api.models.guild.Guild.set_rules_channel:5 +#: interactions.api.models.guild.Guild.set_splash:5 +#: interactions.api.models.guild.Guild.set_system_channel:5 +#: interactions.api.models.guild.Guild.set_verification_level:5 of +msgid "The reason of the edit" +msgstr "" + +#: interactions.api.models.guild.Guild.set_verification_level:1 of +msgid "Sets the verification level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_verification_level:3 of +msgid "The new verification level of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_default_message_notifications:1 of +msgid "Sets the default message notifications level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_default_message_notifications:3 of +msgid "The new default message notification level of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_explicit_content_filter:1 of +msgid "Sets the explicit content filter level of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_explicit_content_filter:3 of +msgid "The new explicit content filter level of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_afk_channel:1 of +msgid "Sets the afk channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_afk_timeout:1 of +msgid "Sets the afk timeout of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_afk_timeout:3 of +msgid "The new afk timeout of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_system_channel:1 of +msgid "Sets the system channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_system_channel:3 of +msgid "The new system channel id of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_rules_channel:1 of +msgid "Sets the rules channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_rules_channel:3 of +msgid "The new rules channel id of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_public_updates_channel:1 of +msgid "Sets the public updates channel of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_public_updates_channel:3 of +msgid "The new public updates channel id of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_preferred_locale:1 of +msgid "Sets the preferred locale of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_preferred_locale:3 of +msgid "The new preferredlocale of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_description:1 of +msgid "Sets the description of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_description:3 of +msgid "The new description of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled:1 of +msgid "Sets the visibility of the premium progress bar of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled:3 of +msgid "Whether the bar is enabled or not" +msgstr "" + +#: interactions.api.models.guild.Guild.set_icon:1 of +msgid "Sets the icon of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_icon:3 of +msgid "The new icon of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_splash:1 of +msgid "Sets the splash of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_splash:3 of +msgid "The new splash of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_discovery_splash:1 of +msgid "Sets the discovery_splash of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_discovery_splash:3 of +msgid "The new discovery_splash of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.set_banner:1 of +msgid "Sets the banner of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.set_banner:3 of +msgid "The new banner of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:1 of +msgid "creates a scheduled event for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:3 +#: interactions.api.models.guild.Guild.modify_scheduled_event:5 of +msgid "The name of the event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:5 +#: interactions.api.models.guild.Guild.modify_scheduled_event:7 of +msgid "The entity type of the scheduled event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:7 +#: interactions.api.models.guild.Guild.modify_scheduled_event:9 of +msgid "The time to schedule the scheduled event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:9 +#: interactions.api.models.guild.Guild.modify_scheduled_event:11 of +msgid "The time when the scheduled event is scheduled to end" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:11 +#: interactions.api.models.guild.Guild.modify_scheduled_event:13 of +msgid "The entity metadata of the scheduled event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:13 +#: interactions.api.models.guild.Guild.modify_scheduled_event:15 of +msgid "The channel id of the scheduled event." +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:15 +#: interactions.api.models.guild.Guild.modify_scheduled_event:17 of +msgid "The description of the scheduled event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:17 +#: interactions.api.models.guild.Guild.modify_scheduled_event:21 of +msgid "The cover image of the scheduled event" +msgstr "" + +#: interactions.api.models.guild.Guild.create_scheduled_event:19 of +msgid "The created event" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_scheduled_event:1 of +msgid "Edits a scheduled event of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_scheduled_event:3 of +msgid "The id of the event to edit" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_scheduled_event:23 of +msgid "The modified event" +msgstr "" + +#: interactions.api.models.guild.Guild.delete_scheduled_event:1 of +msgid "Deletes a scheduled event of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_scheduled_event:3 of +msgid "The id of the event to delete" +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_channels:1 of +msgid "Gets all channels of the guild as list." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_channels:3 of +msgid "The channels of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_roles:1 of +msgid "Gets all roles of the guild as list." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_roles:3 of +msgid "The roles of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_role:1 of +msgid "Gets a role of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_role:3 of +msgid "The id of the role to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_role:5 of +msgid "The role as object" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_position:1 of +msgid "Modifies the position of a role in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_position:3 of +msgid "The id of the role to modify the position of" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_position:5 of +msgid "The new position of the role" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_position:9 +#: interactions.api.models.guild.Guild.modify_role_positions:7 of +msgid "List of guild roles with updated hierarchy" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_positions:1 of +msgid "Modifies the positions of multiple roles in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_role_positions:3 of +msgid "A list of dicts containing roles (id) and their new positions (position)" +msgstr "" + +#: interactions.api.models.guild.Guild.get_bans:1 of +msgid "Gets a list of banned users." +msgstr "" + +#: interactions.api.models.guild.Guild.get_bans:3 of +msgid "Number of users to return. Defaults to 1000." +msgstr "" + +#: interactions.api.models.guild.Guild.get_bans:5 of +msgid "Consider only users before the given User ID snowflake." +msgstr "" + +#: interactions.api.models.guild.Guild.get_bans:7 of +msgid "Consider only users after the given User ID snowflake." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_bans:3 +#: interactions.api.models.guild.Guild.get_bans:9 of +msgid "List of banned users with reasons" +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_bans:1 of +msgid "Gets all bans of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_emoji:1 of +msgid "Gets an emoji of the guild and returns it." +msgstr "" + +#: interactions.api.models.guild.Guild.get_emoji:3 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.guild.Guild.get_emoji:5 of +msgid "The specified Emoji, if found" +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_emoji:1 of +msgid "Gets all emojis of a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_emoji:3 of +msgid "All emojis of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.create_emoji:1 of +msgid "Creates an Emoji in the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_emoji:3 of +msgid "The image of the emoji." +msgstr "" + +#: interactions.api.models.guild.Guild.create_emoji:5 of +msgid "The name of the emoji. If not specified, the filename will be used" +msgstr "" + +#: interactions.api.models.guild.Guild.create_emoji:7 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of +msgid "The reason of the creation" +msgstr "" + +#: interactions.api.models.guild.Guild.delete_emoji:1 of +msgid "Deletes an emoji of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_emoji:3 of +msgid "The emoji or the id of the emoji to delete" +msgstr "" + +#: interactions.api.models.guild.Guild.get_list_of_members:1 of +msgid "Lists the members of a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_list_of_members:3 of +msgid "How many members to get from the API. Max is 1000." +msgstr "" + +#: interactions.api.models.guild.Guild.get_list_of_members:5 of +msgid "Get only Members after this member." +msgstr "" + +#: interactions.api.models.guild.Guild.get_list_of_members:7 of +msgid "A list of members" +msgstr "" + +#: interactions.api.models.guild.Guild.search_members:1 of +msgid "" +"Search the guild for members whose username or nickname starts with " +"provided string." +msgstr "" + +#: interactions.api.models.guild.Guild.search_members:3 of +msgid "The string to search for" +msgstr "" + +#: interactions.api.models.guild.Guild.search_members:5 of +msgid "The number of members to return." +msgstr "" + +#: interactions.api.models.guild.Guild.search_members:7 of +msgid "A list of matching members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_members:1 of +msgid "Gets all members of a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_members:3 of +msgid "Calling this method can lead to rate-limits in larger guilds." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_members:5 of +msgid "Returns a list of all members of the guild" +msgstr "" + +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + +#: interactions.api.models.guild.Guild.icon_url:1 of +msgid "" +"Returns the URL of the guild's icon. :return: URL of the guild's icon " +"(None will be returned if no icon is set) :rtype: str" +msgstr "" + +#: interactions.api.models.guild.Guild.banner_url:1 of +msgid "" +"Returns the URL of the guild's banner. :return: URL of the guild's banner" +" (None will be returned if no banner is set) :rtype: str" +msgstr "" + +#: interactions.api.models.guild.Guild.splash_url:1 of +msgid "" +"Returns the URL of the guild's invite splash banner. :return: URL of the " +"guild's invite splash banner (None will be returned if no banner is set) " +":rtype: str" +msgstr "" + +#: interactions.api.models.guild.Guild.discovery_splash_url:1 of +msgid "" +"Returns the URL of the guild's discovery splash banner. :return: URL of " +"the guild's discovery splash banner (None will be returned if no banner " +"is set) :rtype: str" +msgstr "" + +#: interactions.api.models.guild.GuildPreview:1 of +msgid "A class object representing the preview of a guild." +msgstr "" + +#: interactions.api.models.guild.Invite:1 of +msgid "The invite object." +msgstr "" + +#: interactions.api.models.guild.Invite:3 of +msgid "The amount of uses on this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:4 of +msgid "The amount of maximum uses on this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:5 of +msgid "The maximum age of this invite, in seconds." +msgstr "" + +#: interactions.api.models.guild.Invite:6 of +msgid "A detection of whether this invite only grants temporary membership." +msgstr "" + +#: interactions.api.models.guild.Invite:7 of +msgid "The time when this invite was created." +msgstr "" + +#: interactions.api.models.guild.Invite:8 of +msgid "The time when this invite will expire." +msgstr "" + +#: interactions.api.models.guild.Invite:9 of +msgid "The type of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:10 of +msgid "The user who created this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:11 of +msgid "The code of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:12 of +msgid "The guild ID of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:13 of +msgid "The channel ID of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:14 of +msgid "The type of the target user of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:15 of +msgid "The target user of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:16 of +msgid "The target type of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:17 of +msgid "The guild of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:18 of +msgid "The channel of this invite." +msgstr "" + +#: interactions.api.models.guild.Invite:19 of +msgid "The approximate amount of total members in a guild." +msgstr "" + +#: interactions.api.models.guild.Invite:20 of +msgid "The aprpoximate amount of online members in a guild." +msgstr "" + +#: interactions.api.models.guild.Invite:21 of +msgid "A scheduled guild event object included in the invite." +msgstr "" + +#: interactions.api.models.guild.Invite.delete:1 of +msgid "Deletes the invite" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.gw.po b/docs/locale/es/LC_MESSAGES/api.models.gw.po new file mode 100644 index 000000000..fe823c232 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.gw.po @@ -0,0 +1,825 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.gw.rst:4 +msgid "Gateway-specific Event Models" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:1 of +msgid "" +"A class object representing the gateway event " +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:9 of +msgid "" +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:5 of +msgid "The application ID associated with the event." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:6 of +msgid "The guild ID associated with the event." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:7 of +msgid "The ID of the command associated with the event. (?)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:8 of +msgid "The updated permissions of the associated command/event." +msgstr "" + +#: interactions.api.models.gw.EmbeddedActivity:1 of +msgid "A class object representing the event ``EMBEDDED_ACTIVITY_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.EmbeddedActivity:4 +#: interactions.api.models.gw.GuildJoinRequest:4 of +msgid "This is entirely undocumented by the API." +msgstr "" + +#: interactions.api.models.gw.EmbeddedActivity:6 of +msgid "The list of users of the event." +msgstr "" + +#: interactions.api.models.gw.ChannelPins:3 +#: interactions.api.models.gw.EmbeddedActivity:7 +#: interactions.api.models.gw.GuildBan:3 +#: interactions.api.models.gw.GuildEmojis:3 +#: interactions.api.models.gw.GuildIntegrations:3 +#: interactions.api.models.gw.GuildJoinRequest:7 +#: interactions.api.models.gw.GuildMember:3 +#: interactions.api.models.gw.GuildMembers:3 +#: interactions.api.models.gw.GuildRole:3 +#: interactions.api.models.gw.GuildStickers:3 +#: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.Presence:4 +#: interactions.api.models.gw.ReactionRemove:10 +#: interactions.api.models.gw.ThreadList:3 +#: interactions.api.models.gw.ThreadMembers:4 of +msgid "The guild ID of the event." +msgstr "" + +#: interactions.api.models.gw.EmbeddedActivity:8 of +msgid "The embedded presence activity of the associated event." +msgstr "" + +#: interactions.api.models.gw.ChannelPins:4 +#: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageReaction:4 +#: interactions.api.models.gw.ReactionRemove:8 of +msgid "The channel ID of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:1 of +msgid "" +"A class object representing the gateway events ``INTEGRATION_CREATE``, " +"``INTEGRATION_UPDATE`` and ``INTEGRATION_DELETE``." +msgstr "" + +#: interactions.api.models.gw.Integration:4 of +msgid "" +"The documentation of this event is the same as " +":class:`interactions.api.models.guild.Guild`. The only key missing " +"attribute is ``guild_id``. Likewise, the documentation below reflects " +"this." +msgstr "" + +#: interactions.api.models.gw.Integration:8 +#: interactions.api.models.gw.ThreadMembers:3 of +msgid "The ID of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:9 of +msgid "The name of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:10 of +msgid "The type of integration in the event." +msgstr "" + +#: interactions.api.models.gw.Integration:11 of +msgid "Whether the integration of the event is enabled or not." +msgstr "" + +#: interactions.api.models.gw.Integration:12 of +msgid "Whether the integration of the event is syncing or not." +msgstr "" + +#: interactions.api.models.gw.Integration:13 of +msgid "" +"The role ID that the integration in the event uses for \"subscribed\" " +"users." +msgstr "" + +#: interactions.api.models.gw.Integration:14 of +msgid "Whether emoticons of the integration's event should be enabled or not." +msgstr "" + +#: interactions.api.models.gw.Integration:15 of +msgid "The expiration behavior of the integration of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:16 of +msgid "" +"The \"grace period\" of the integration of the event when expired -- how " +"long it can still be used." +msgstr "" + +#: interactions.api.models.gw.GuildBan:4 +#: interactions.api.models.gw.GuildMember:5 +#: interactions.api.models.gw.Integration:17 +#: interactions.api.models.gw.Presence:3 of +msgid "The user of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:18 of +msgid "The account of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:19 of +msgid "The time that the integration of the event was last synced." +msgstr "" + +#: interactions.api.models.gw.Integration:20 of +msgid "The current subscriber count of the event." +msgstr "" + +#: interactions.api.models.gw.Integration:21 of +msgid "Whether the integration of the event was revoked for use or not." +msgstr "" + +#: interactions.api.models.gw.Integration:22 of +msgid "The application used for the integration of the event." +msgstr "" + +#: interactions.api.models.gw.ChannelPins:1 of +msgid "A class object representing the gateway event ``CHANNEL_PINS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.ChannelPins:5 of +msgid "The time that the event took place." +msgstr "" + +#: interactions.api.models.gw.ThreadMembers:1 of +msgid "A class object representing the gateway event ``THREAD_MEMBERS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.ThreadMembers:5 of +msgid "The member count of the event." +msgstr "" + +#: interactions.api.models.gw.ThreadMembers:6 of +msgid "The added members of the thread of the event." +msgstr "" + +#: interactions.api.models.gw.ThreadMembers:7 of +msgid "The removed IDs of members of the thread of the event." +msgstr "" + +#: interactions.api.models.gw.ThreadList:1 of +msgid "A class object representing the gateway event ``THREAD_LIST_SYNC``." +msgstr "" + +#: interactions.api.models.gw.ThreadList:4 of +msgid "The channel IDs of the event." +msgstr "" + +#: interactions.api.models.gw.ThreadList:5 of +msgid "The threads of the event." +msgstr "" + +#: interactions.api.models.gw.ThreadList:6 of +msgid "The members of the thread of the event." +msgstr "" + +#: interactions.api.models.gw.ReactionRemove:1 of +msgid "" +"A class object representing the gateway events " +"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " +"``MESSAGE_REACTION_REMOVE_EMOJI``." +msgstr "" + +#: interactions.api.models.gw.ReactionRemove:4 of +msgid "" +"This class inherits the already existing attributes of " +":class:`interactions.api.models.gw.Reaction`. The main missing attribute " +"is ``member``." +msgstr "" + +#: interactions.api.models.gw.GuildJoinRequest:6 +#: interactions.api.models.gw.MessageReaction:3 +#: interactions.api.models.gw.ReactionRemove:7 of +msgid "The user ID of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReaction:5 +#: interactions.api.models.gw.ReactionRemove:9 of +msgid "The message ID of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReaction:8 +#: interactions.api.models.gw.ReactionRemove:11 of +msgid "The emoji of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReaction:1 of +msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgstr "" + +#: interactions.api.models.gw.MessageReaction:7 of +msgid "The member of the event." +msgstr "" + +#: interactions.api.models.gw.GuildIntegrations:1 of +msgid "" +"A class object representing the gateway event " +"``GUILD_INTEGRATIONS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.GuildBan:1 of +msgid "A class object representing the gateway event ``GUILD_BAN_ADD``." +msgstr "" + +#: interactions.api.models.gw.Webhooks:1 of +msgid "A class object representing the gateway event ``WEBHOOKS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.Webhooks:3 of +msgid "The channel ID of the associated event." +msgstr "" + +#: interactions.api.models.gw.Webhooks:4 of +msgid "The guild ID of the associated event." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:1 of +msgid "A class object representing the gateway event ``GUILD_MEMBERS_CHUNK``." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:4 of +msgid "The members of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:5 of +msgid "The current chunk index of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:6 of +msgid "The total chunk count of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:7 of +msgid "A list of not found members in the event if an invalid request was made." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:8 of +msgid "A list of presences in the event." +msgstr "" + +#: interactions.api.models.gw.GuildMembers:9 of +msgid "The \"nonce\" of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMember:1 of +msgid "" +"A class object representing the gateway events ``GUILD_MEMBER_ADD``, " +"``GUILD_MEMBER_UPDATE`` and ``GUILD_MEMBER_REMOVE``." +msgstr "" + +#: interactions.api.models.gw.GuildMember:4 of +msgid "The roles of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMember:6 of +msgid "The nickname of the user of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMember:7 of +msgid "The avatar URL of the user of the event." +msgstr "" + +#: interactions.api.models.gw.GuildMember:8 of +msgid "The time that the user of the event joined at." +msgstr "" + +#: interactions.api.models.gw.GuildMember:9 of +msgid "The time that the user of the event has since had \"premium.\"" +msgstr "" + +#: interactions.api.models.gw.GuildMember:10 of +msgid "Whether the member of the event is deafened or not." +msgstr "" + +#: interactions.api.models.gw.GuildMember:11 of +msgid "Whether the member of the event is muted or not." +msgstr "" + +#: interactions.api.models.gw.GuildMember:12 of +msgid "" +"Whether the member of the event is still pending -- pass membership " +"screening -- or not." +msgstr "" + +#: interactions.api.models.gw.GuildMember.id:1 of +msgid "Returns the ID of the user." +msgstr "" + +#: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.mention +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.send of +msgid "Returns" +msgstr "" + +#: interactions.api.models.gw.GuildMember.id:3 of +msgid "The ID of the user" +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.mention +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send of +msgid "Return type" +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + +#: interactions.api.models.gw.GuildMember.mention:1 of +msgid "Returns a string that allows you to mention the given member." +msgstr "" + +#: interactions.api.models.gw.GuildMember.mention:3 of +msgid "The string of the mentioned member." +msgstr "" + +#: interactions.api.models.gw.GuildMember.ban:1 of +msgid "Bans the member from a guild." +msgstr "" + +#: interactions.api.models.gw.GuildMember.ban:3 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.gw.GuildMember.ban:5 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + +#: interactions.api.models.gw.GuildMember.kick:1 of +msgid "Kicks the member from a guild." +msgstr "" + +#: interactions.api.models.gw.GuildMember.kick:3 of +msgid "The reason for the kick" +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_role:1 of +msgid "This method adds a role to a member." +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_role:3 of +msgid "The role to add. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_role:5 of +msgid "The reason why the roles are added" +msgstr "" + +#: interactions.api.models.gw.GuildMember.remove_role:1 of +msgid "This method removes a role from a member." +msgstr "" + +#: interactions.api.models.gw.GuildMember.remove_role:3 of +msgid "The role to remove. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.gw.GuildMember.remove_role:5 of +msgid "The reason why the roles are removed" +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:1 of +msgid "Sends a DM to the member." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:3 of +msgid "The contents of the message as a string or string-converted value." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:5 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:7 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:9 of +msgid "A file or list of files to be attached to the message." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:11 of +msgid "An embed, or list of embeds for the message." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:13 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.gw.GuildMember.send:15 of +msgid "The sent message as an object." +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:1 of +msgid "Modifies the member of a guild." +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:3 of +msgid "The nickname of the member" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:5 of +msgid "A list of all role ids the member has" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:7 of +msgid "whether the user is muted in voice channels" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:9 of +msgid "whether the user is deafened in voice channels" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:11 of +msgid "id of channel to move user to (if they are connected to voice)" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:13 of +msgid "" +"when the user's timeout will expire and the user will be able to " +"communicate in the guild again (up to 28 days in the future)" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:15 of +msgid "The reason of the modifying" +msgstr "" + +#: interactions.api.models.gw.GuildMember.modify:17 of +msgid "The modified member object" +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_to_thread:1 of +msgid "Adds the member to a thread." +msgstr "" + +#: interactions.api.models.gw.GuildMember.add_to_thread:3 of +msgid "The id of the thread to add the member to" +msgstr "" + +#: interactions.api.models.gw.GuildStickers:1 of +msgid "A class object representing the gateway event ``GUILD_STICKERS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.GuildStickers:4 of +msgid "The stickers of the event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEventUser:1 of +msgid "" +"A class object representing the gateway events " +"``GUILD_SCHEDULED_EVENT_USER_ADD`` and " +"``GUILD_SCHEDULED_EVENT_USER_REMOVE``" +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEventUser:3 of +msgid "The ID of the guild scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEventUser:4 of +msgid "The ID of the guild associated with this event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEventUser:5 of +msgid "The ID of the user associated with this event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:1 of +msgid "" +"A class object representing gateway events " +"``GUILD_SCHEDULED_EVENT_CREATE``, ``GUILD_SCHEDULED_EVENT_UPDATE``, " +"``GUILD_SCHEDULED_EVENT_DELETE``." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:4 of +msgid "" +"Some attributes are optional via creator_id/creator implementation by the" +" API: \"`creator_id` will be null and `creator` will not be included for " +"events created before October 25th, 2021, when the concept of " +"`creator_id` was introduced and tracked.\"" +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:7 of +msgid "The ID of the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:8 of +msgid "The ID of the guild that this scheduled event belongs to." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:9 of +msgid "The channel ID in which the scheduled event belongs to, if any." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:10 of +msgid "The ID of the user that created the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:11 of +msgid "The name of the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:12 of +msgid "The description of the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:13 of +msgid "The scheduled event start time." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:14 of +msgid "The scheduled event end time, if any." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:15 of +msgid "The privacy level of the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:16 of +msgid "The type of the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:17 of +msgid "The ID of the entity associated with the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:18 of +msgid "Additional metadata associated with the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:19 of +msgid "The user that created the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:20 of +msgid "The number of users subscribed to the scheduled event." +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:21 of +msgid "The status of the scheduled event" +msgstr "" + +#: interactions.api.models.gw.GuildScheduledEvent:22 of +msgid "The hash containing the image of an event, if applicable." +msgstr "" + +#: interactions.api.models.gw.Presence:1 of +msgid "A class object representing the gateway event ``PRESENCE_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.Presence:5 of +msgid "The status of the event." +msgstr "" + +#: interactions.api.models.gw.Presence:6 of +msgid "The activities of the event." +msgstr "" + +#: interactions.api.models.gw.Presence:7 of +msgid "The client status across platforms in the event." +msgstr "" + +#: interactions.api.models.gw.GuildJoinRequest:1 of +msgid "" +"A class object representing the gateway events " +"``GUILD_JOIN_REQUEST_CREATE``, ``GUILD_JOIN_REQUEST_UPDATE``, and " +"``GUILD_JOIN_REQUEST_DELETE``" +msgstr "" + +#: interactions.api.models.gw.GuildEmojis:1 of +msgid "A class object representing the gateway event ``GUILD_EMOJIS_UPDATE``." +msgstr "" + +#: interactions.api.models.gw.GuildEmojis:4 of +msgid "The emojis of the event." +msgstr "" + +#: interactions.api.models.gw.GuildRole:1 of +msgid "" +"A class object representing the gateway events ``GUILD_ROLE_CREATE``, " +"``GUILD_ROLE_UPDATE`` and ``GUILD_ROLE_DELETE``." +msgstr "" + +#: interactions.api.models.gw.GuildRole:4 of +msgid "The role of the event." +msgstr "" + +#: interactions.api.models.gw.GuildRole:5 of +msgid "The role ID of the event." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.member.po b/docs/locale/es/LC_MESSAGES/api.models.member.po new file mode 100644 index 000000000..ce23f99ac --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.member.po @@ -0,0 +1,296 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.member.rst:4 +msgid "Member Models" +msgstr "" + +#: interactions.api.models.member.Member:1 of +msgid "A class object representing the user of a guild, known as a \"member.\"" +msgstr "" + +#: interactions.api.models.member.Member:4 of +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." +msgstr "" + +#: interactions.api.models.member.Member of +msgid "Variables" +msgstr "" + +#: interactions.api.models.member.Member:8 of +msgid "The user of the guild." +msgstr "" + +#: interactions.api.models.member.Member:9 of +msgid "The nickname of the member." +msgstr "" + +#: interactions.api.models.member.Member:10 of +msgid "The hash containing the user's guild avatar, if applicable." +msgstr "" + +#: interactions.api.models.member.Member:11 of +msgid "The list of roles of the member." +msgstr "" + +#: interactions.api.models.member.Member:12 of +msgid "The timestamp the member joined the guild at." +msgstr "" + +#: interactions.api.models.member.Member:13 of +msgid "The timestamp the member has been a server booster since." +msgstr "" + +#: interactions.api.models.member.Member:14 of +msgid "Whether the member is deafened." +msgstr "" + +#: interactions.api.models.member.Member:15 of +msgid "Whether the member is muted." +msgstr "" + +#: interactions.api.models.member.Member:16 of +msgid "Whether the member is pending to pass membership screening." +msgstr "" + +#: interactions.api.models.member.Member:17 of +msgid "Whether the member has permissions." +msgstr "" + +#: interactions.api.models.member.Member:18 of +msgid "How long until they're unmuted, if any." +msgstr "" + +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.member.Member.id:1 of +msgid "Returns the ID of the user." +msgstr "" + +#: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.mention +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.send of +msgid "Returns" +msgstr "" + +#: interactions.api.models.member.Member.id:3 of +msgid "The ID of the user" +msgstr "" + +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.mention +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Return type" +msgstr "" + +#: interactions.api.models.member.Member.mention:1 of +msgid "Returns a string that allows you to mention the given member." +msgstr "" + +#: interactions.api.models.member.Member.mention:3 of +msgid "The string of the mentioned member." +msgstr "" + +#: interactions.api.models.member.Member.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.member.Member.name:3 of +msgid "The name of the member" +msgstr "" + +#: interactions.api.models.member.Member.ban:1 of +msgid "Bans the member from a guild." +msgstr "" + +#: interactions.api.models.member.Member.ban:3 of +msgid "The id of the guild to ban the member from" +msgstr "" + +#: interactions.api.models.member.Member.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.member.Member.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + +#: interactions.api.models.member.Member.kick:1 of +msgid "Kicks the member from a guild." +msgstr "" + +#: interactions.api.models.member.Member.kick:3 of +msgid "The id of the guild to kick the member from" +msgstr "" + +#: interactions.api.models.member.Member.kick:5 of +msgid "The reason for the kick" +msgstr "" + +#: interactions.api.models.member.Member.add_role:1 of +msgid "This method adds a role to a member." +msgstr "" + +#: interactions.api.models.member.Member.add_role:3 of +msgid "The role to add. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.member.Member.add_role:5 of +msgid "The id of the guild to add the roles to the member" +msgstr "" + +#: interactions.api.models.member.Member.add_role:7 of +msgid "The reason why the roles are added" +msgstr "" + +#: interactions.api.models.member.Member.remove_role:1 of +msgid "This method removes a role from a member." +msgstr "" + +#: interactions.api.models.member.Member.remove_role:3 of +msgid "The role to remove. Either ``Role`` object or role_id" +msgstr "" + +#: interactions.api.models.member.Member.remove_role:5 of +msgid "The id of the guild to remove the roles of the member" +msgstr "" + +#: interactions.api.models.member.Member.remove_role:7 of +msgid "The reason why the roles are removed" +msgstr "" + +#: interactions.api.models.member.Member.send:1 of +msgid "Sends a DM to the member." +msgstr "" + +#: interactions.api.models.member.Member.send:3 of +msgid "The contents of the message as a string or string-converted value." +msgstr "" + +#: interactions.api.models.member.Member.send:5 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.member.Member.send:7 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." +msgstr "" + +#: interactions.api.models.member.Member.send:9 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" +msgstr "" + +#: interactions.api.models.member.Member.send:11 of +msgid "A file or list of files to be attached to the message." +msgstr "" + +#: interactions.api.models.member.Member.send:13 of +msgid "An embed, or list of embeds for the message." +msgstr "" + +#: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of +msgid "The sent message as an object." +msgstr "" + +#: interactions.api.models.member.Member.modify:1 of +msgid "Modifies the member of a guild." +msgstr "" + +#: interactions.api.models.member.Member.modify:3 of +msgid "The id of the guild to modify the member on" +msgstr "" + +#: interactions.api.models.member.Member.modify:5 of +msgid "The nickname of the member" +msgstr "" + +#: interactions.api.models.member.Member.modify:7 of +msgid "A list of all role ids the member has" +msgstr "" + +#: interactions.api.models.member.Member.modify:9 of +msgid "whether the user is muted in voice channels" +msgstr "" + +#: interactions.api.models.member.Member.modify:11 of +msgid "whether the user is deafened in voice channels" +msgstr "" + +#: interactions.api.models.member.Member.modify:13 of +msgid "id of channel to move user to (if they are connected to voice)" +msgstr "" + +#: interactions.api.models.member.Member.modify:15 of +msgid "" +"when the user's timeout will expire and the user will be able to " +"communicate in the guild again (up to 28 days in the future)" +msgstr "" + +#: interactions.api.models.member.Member.modify:17 of +msgid "The reason of the modifying" +msgstr "" + +#: interactions.api.models.member.Member.modify:19 of +msgid "The modified member object" +msgstr "" + +#: interactions.api.models.member.Member.add_to_thread:1 of +msgid "Adds the member to a thread." +msgstr "" + +#: interactions.api.models.member.Member.add_to_thread:3 of +msgid "The id of the thread to add the member to" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "" +"Returns the URL of the member's avatar for the specified guild. :param " +"guild_id: The id of the guild to get the member's avatar from :type " +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.message.po b/docs/locale/es/LC_MESSAGES/api.models.message.po new file mode 100644 index 000000000..5bcd77f9c --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.message.po @@ -0,0 +1,1095 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.message.rst:4 +msgid "Message Models" +msgstr "" + +#: interactions.api.models.message.MessageType:1 of +msgid "An enumerable object representing the types of messages." +msgstr "" + +#: interactions.api.models.message.MessageType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." +msgstr "" + +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji +#: interactions.api.models.message.Message +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Variables" +msgstr "" + +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." +msgstr "" + +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" +msgstr "" + +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." +msgstr "" + +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." +msgstr "" + +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." +msgstr "" + +#: interactions.api.models.message.Message:8 of +msgid "Message contents." +msgstr "" + +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." +msgstr "" + +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." +msgstr "" + +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." +msgstr "" + +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" +msgstr "" + +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." +msgstr "" + +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" +msgstr "" + +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." +msgstr "" + +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" +msgstr "" + +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" +msgstr "" + +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." +msgstr "" + +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" +msgstr "" + +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." +msgstr "" + +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." +msgstr "" + +#: interactions.api.models.message.Message:22 of +msgid "Type of message" +msgstr "" + +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" +msgstr "" + +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" +msgstr "" + +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" +msgstr "" + +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." +msgstr "" + +#: interactions.api.models.message.Message:27 of +msgid "Message flags" +msgstr "" + +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." +msgstr "" + +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." +msgstr "" + +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." +msgstr "" + +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." +msgstr "" + +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." +msgstr "" + +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji +#: interactions.api.models.message.Emoji.delete +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message +#: interactions.api.models.message.Message.create_reaction +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." +msgstr "" + +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_channel +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin +#: interactions.api.models.message.Message.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." +msgstr "" + +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." +msgstr "" + +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." +msgstr "" + +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." +msgstr "" + +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." +msgstr "" + +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." +msgstr "" + +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." +msgstr "" + +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." +msgstr "" + +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." +msgstr "" + +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" +msgstr "" + +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" +msgstr "" + +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." +msgstr "" + +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." +msgstr "" + +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." +msgstr "" + +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" +msgstr "" + +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" +msgstr "" + +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." +msgstr "" + +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" +msgstr "" + +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." +msgstr "" + +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" +msgstr "" + +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" +msgstr "" + +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." +msgstr "" + +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" +msgstr "" + +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" +msgstr "" + +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." +msgstr "" + +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" +msgstr "" + +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." +msgstr "" + +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." +msgstr "" + +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." +msgstr "" + +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." +msgstr "" + +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" +msgstr "" + +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" +msgstr "" + +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" +msgstr "" + +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." +msgstr "" + +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" +msgstr "" + +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +msgstr "" + +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" +msgstr "" + +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." +msgstr "" + +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" +msgstr "" + +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." +msgstr "" + +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." +msgstr "" + +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." +msgstr "" + +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." +msgstr "" + +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." +msgstr "" + +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." +msgstr "" + +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." +msgstr "" + +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +msgstr "" + +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." +msgstr "" + +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." +msgstr "" + +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.remove_field:1 of +msgid "Remove field at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.remove_author:1 of +msgid "Removes the embed's author" +msgstr "" + +#: interactions.api.models.message.Embed.set_author:1 of +msgid "Sets the embed's author" +msgstr "" + +#: interactions.api.models.message.Embed.set_author:3 of +msgid "The name of the author" +msgstr "" + +#: interactions.api.models.message.Embed.set_author:5 of +msgid "Url of author" +msgstr "" + +#: interactions.api.models.message.Embed.set_author:7 of +msgid "Url of author icon (only supports http(s) and attachments)" +msgstr "" + +#: interactions.api.models.message.Embed.set_author:9 of +msgid "A proxied url of author icon" +msgstr "" + +#: interactions.api.models.message.Embed.set_footer:1 of +msgid "Sets the embed's footer" +msgstr "" + +#: interactions.api.models.message.Embed.set_footer:3 of +msgid "The text of the footer" +msgstr "" + +#: interactions.api.models.message.Embed.set_footer:5 of +msgid "Url of footer icon (only supports http(s) and attachments)" +msgstr "" + +#: interactions.api.models.message.Embed.set_footer:7 of +msgid "A proxied url of footer icon" +msgstr "" + +#: interactions.api.models.message.Embed.set_image:1 of +msgid "Sets the embed's image" +msgstr "" + +#: interactions.api.models.message.Embed.set_image:3 of +msgid "Url of the image" +msgstr "" + +#: interactions.api.models.message.Embed.set_image:5 of +msgid "A proxied url of the image" +msgstr "" + +#: interactions.api.models.message.Embed.set_image:7 of +msgid "The image's height" +msgstr "" + +#: interactions.api.models.message.Embed.set_image:9 of +msgid "The image's width" +msgstr "" + +#: interactions.api.models.message.Embed.set_video:1 of +msgid "Sets the embed's video" +msgstr "" + +#: interactions.api.models.message.Embed.set_video:3 of +msgid "Url of the video" +msgstr "" + +#: interactions.api.models.message.Embed.set_video:5 of +msgid "A proxied url of the video" +msgstr "" + +#: interactions.api.models.message.Embed.set_video:7 of +msgid "The video's height" +msgstr "" + +#: interactions.api.models.message.Embed.set_video:9 of +msgid "The video's width" +msgstr "" + +#: interactions.api.models.message.Embed.set_thumbnail:1 of +msgid "Sets the embed's thumbnail" +msgstr "" + +#: interactions.api.models.message.Embed.set_thumbnail:3 of +msgid "Url of the thumbnail" +msgstr "" + +#: interactions.api.models.message.Embed.set_thumbnail:5 of +msgid "A proxied url of the thumbnail" +msgstr "" + +#: interactions.api.models.message.Embed.set_thumbnail:7 of +msgid "The thumbnail's height" +msgstr "" + +#: interactions.api.models.message.Embed.set_thumbnail:9 of +msgid "The thumbnail's width" +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" +msgstr "" + +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" +msgstr "" + +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." +msgstr "" + +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" +msgstr "" + +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." +msgstr "" + +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." +msgstr "" + +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." +msgstr "" + +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" +msgstr "" + +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." +msgstr "" + +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" +msgstr "" + +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." +msgstr "" + +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." +msgstr "" + +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." +msgstr "" + +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." +msgstr "" + +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." +msgstr "" + +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." +msgstr "" + +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." +msgstr "" + +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." +msgstr "" + +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.message.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." +msgstr "" + +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" +msgstr "" + +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" +msgstr "" + +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" +msgstr "" + +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" +msgstr "" + +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." +msgstr "" + +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" +msgstr "" + +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" +msgstr "" + +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" +msgstr "" + +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." +msgstr "" + +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" +msgstr "" + +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" +msgstr "" + +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" +msgstr "" + +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." +msgstr "" + +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." +msgstr "" + +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" +msgstr "" + +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +msgstr "" + +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." +msgstr "" + +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" +msgstr "" + +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." +msgstr "" + +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." +msgstr "" + +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.misc.po b/docs/locale/es/LC_MESSAGES/api.models.misc.po new file mode 100644 index 000000000..cfed122db --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.misc.po @@ -0,0 +1,289 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.misc.rst:4 +msgid "Miscellanous Models" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + +#: interactions.api.models.misc.Snowflake:1 of +msgid "The Snowflake object." +msgstr "" + +#: interactions.api.models.misc.Snowflake:3 of +msgid "" +"This snowflake object will have features closely related to the API " +"schema. In turn, compared to regular d.py's treated snowflakes, these " +"will be treated as strings." +msgstr "" + +#: interactions.api.models.misc.Snowflake:8 of +msgid "(Basically, snowflakes will be treated as if they were from d.py 0.16.12)" +msgstr "" + +#: interactions.api.models.misc.Snowflake:11 of +msgid "" +"You can still provide integers to them, to ensure ease of use of " +"transition and/or if discord API for some odd reason will switch to " +"integer." +msgstr "" + +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + +#: interactions.api.models.misc.Snowflake.increment:1 of +msgid "" +"This is the 'Increment' portion of the snowflake. This is incremented for" +" every ID generated on that process." +msgstr "" + +#: interactions.api.models.misc.Snowflake.epoch +#: interactions.api.models.misc.Snowflake.increment +#: interactions.api.models.misc.Snowflake.timestamp of +msgid "Returns" +msgstr "" + +#: interactions.api.models.misc.Snowflake.increment:4 of +msgid "An integer denoting the increment." +msgstr "" + +#: interactions.api.models.misc.Snowflake.worker_id:1 of +msgid "" +"This is the Internal Worker ID of the snowflake. :return: An integer " +"denoting the internal worker ID." +msgstr "" + +#: interactions.api.models.misc.Snowflake.process_id:1 of +msgid "" +"This is the Internal Process ID of the snowflake. :return: An integer " +"denoting the internal process ID." +msgstr "" + +#: interactions.api.models.misc.Snowflake.epoch:1 of +msgid "This is the Timestamp field of the snowflake." +msgstr "" + +#: interactions.api.models.misc.Snowflake.epoch:3 of +msgid "A float containing the seconds since Discord Epoch." +msgstr "" + +#: interactions.api.models.misc.Snowflake.timestamp:1 of +msgid "The Datetime object variation of the Timestamp field of the snowflake." +msgstr "" + +#: interactions.api.models.misc.Snowflake.timestamp:3 of +msgid "The converted Datetime object from the Epoch. This respects UTC." +msgstr "" + +#: interactions.api.models.misc.Color:1 of +msgid "An object representing Discord branding colors." +msgstr "" + +#: interactions.api.models.misc.Color:4 of +msgid "" +"This object only intends to cover the branding colors and no others. The " +"main reason behind this is due to the current accepted standard of using " +"hex codes or other custom-defined colors." +msgstr "" + +#: interactions.api.models.misc.Color.blurple:1 of +msgid "Returns a hexadecimal value of the blurple color." +msgstr "" + +#: interactions.api.models.misc.Color.green:1 of +msgid "Returns a hexadecimal value of the green color." +msgstr "" + +#: interactions.api.models.misc.Color.yellow:1 of +msgid "Returns a hexadecimal value of the yellow color." +msgstr "" + +#: interactions.api.models.misc.Color.fuchsia:1 of +msgid "Returns a hexadecimal value of the fuchsia color." +msgstr "" + +#: interactions.api.models.misc.Color.red:1 of +msgid "Returns a hexadecimal value of the red color." +msgstr "" + +#: interactions.api.models.misc.Color.white:1 of +msgid "Returns a hexadecimal value of the white color." +msgstr "" + +#: interactions.api.models.misc.Color.black:1 of +msgid "Returns a hexadecimal value of the black color." +msgstr "" + +#: interactions.api.models.misc.ClientStatus:1 of +msgid "An object that symbolizes the status per client device per session." +msgstr "" + +#: interactions.api.models.misc.ClientStatus:3 of +msgid "User's status set for an active desktop application session" +msgstr "" + +#: interactions.api.models.misc.ClientStatus:4 of +msgid "User's status set for an active mobile application session" +msgstr "" + +#: interactions.api.models.misc.ClientStatus:5 of +msgid "User's status set for an active web application session" +msgstr "" + +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + +#: interactions.api.models.misc.Image:1 of +msgid "This class object allows you to upload Images to the Discord API." +msgstr "" + +#: interactions.api.models.misc.Image:3 of +msgid "" +"If a fp is not given, this will try to open & send a local file at the " +"location specified in the 'file' parameter." +msgstr "" + +#: interactions.api.models.misc.Image.filename:1 of +msgid "Returns the name of the file." +msgstr "" + +#: interactions.api.models.misc.File:1 of +msgid "A File object to be sent as an attachment along with a message." +msgstr "" + +#: interactions.api.models.misc.File:3 of +msgid "" +"If a fp is not given, this will try to open & send a local file at the " +"location specified in the 'filename' parameter." +msgstr "" + +#: interactions.api.models.misc.File:7 of +msgid "If a description is not given the file's basename is used instead." +msgstr "" + +#: interactions.api.models.misc.Overwrite:1 of +msgid "This is used for the PermissionOverride object." +msgstr "" + +#: interactions.api.models.misc.Overwrite:3 of +msgid "Role or User ID" +msgstr "" + +#: interactions.api.models.misc.Overwrite:4 of +msgid "Type that corresponds ot the ID; 0 for role and 1 for member." +msgstr "" + +#: interactions.api.models.misc.Overwrite:5 +#: interactions.api.models.misc.Overwrite:6 of +msgid "Permission bit set." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.po b/docs/locale/es/LC_MESSAGES/api.models.po new file mode 100644 index 000000000..4a5447cbe --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.po @@ -0,0 +1,23 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.rst:4 +msgid "Model Objects" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.presence.po b/docs/locale/es/LC_MESSAGES/api.models.presence.po new file mode 100644 index 000000000..347c24dbc --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.presence.po @@ -0,0 +1,233 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.presence.rst:4 +msgid "Presence Models" +msgstr "" + +#: interactions.api.models.presence.PresenceParty:1 of +msgid "A class object representing the party data of a presence." +msgstr "" + +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Variables" +msgstr "" + +#: interactions.api.models.presence.PresenceParty:3 of +msgid "ID of the party." +msgstr "" + +#: interactions.api.models.presence.PresenceParty:4 of +msgid "An array denoting the party's current and max size" +msgstr "" + +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.presence.PresenceAssets:1 of +msgid "A class object representing the assets of a presence." +msgstr "" + +#: interactions.api.models.presence.PresenceAssets:3 of +msgid "ID for a large asset of the activity" +msgstr "" + +#: interactions.api.models.presence.PresenceAssets:4 of +msgid "Text associated with the large asset" +msgstr "" + +#: interactions.api.models.presence.PresenceAssets:5 of +msgid "ID for a small asset of the activity" +msgstr "" + +#: interactions.api.models.presence.PresenceAssets:6 of +msgid "Text associated with the small asset" +msgstr "" + +#: interactions.api.models.presence.PresenceSecrets:1 of +msgid "A class object representing \"secret\" join information of a presence." +msgstr "" + +#: interactions.api.models.presence.PresenceSecrets:3 of +msgid "Join secret" +msgstr "" + +#: interactions.api.models.presence.PresenceSecrets:4 of +msgid "Spectate secret" +msgstr "" + +#: interactions.api.models.presence.PresenceSecrets:5 of +msgid "Instanced match secret" +msgstr "" + +#: interactions.api.models.presence.PresenceTimestamp:1 of +msgid "A class object representing the timestamp data of a presence." +msgstr "" + +#: interactions.api.models.presence.PresenceTimestamp:3 of +msgid "Unix time in ms when the activity started" +msgstr "" + +#: interactions.api.models.presence.PresenceTimestamp:4 of +msgid "Unix time in ms when the activity ended" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:1 of +msgid "A class object representing the current activity data of a presence." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:4 of +msgid "" +"When using this model to instantiate alongside the client, if you provide" +" a type 1 ( or PresenceActivityType.STREAMING ), then the ``url`` " +"attribute is necessary." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of +msgid "The activity name" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:11 of +msgid "The activity type" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:12 of +msgid "stream url (if type is 1)" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:14 of +msgid "Unix timestamps for start and/or end of the game" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:15 of +msgid "Application ID for the game" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:16 of +msgid "What the player is currently doing" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:17 of +msgid "Current party status" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:18 of +msgid "The emoji used for the custom status" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:19 of +msgid "Info for the current players' party" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:20 of +msgid "Images for the presence and their associated hover texts" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:21 of +msgid "for RPC join/spectate" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:22 of +msgid "A status denoting if the activity is a game session" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:23 of +msgid "activity flags" +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity.gateway_json:1 of +msgid "" +"This returns the JSON representing the ClientPresence sending via the " +"Gateway." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity.gateway_json:4 of +msgid "" +"This is NOT used for standard presence activity reading by other users, " +"i.e. User activity reading. You can use the `_json` attribute instead." +msgstr "" + +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "A class object representing all supported Discord activity types." +msgstr "" + +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.presence.ClientPresence:1 of +msgid "" +"An object that symbolizes the presence of the current client's session " +"upon creation." +msgstr "" + +#: interactions.api.models.presence.ClientPresence:3 of +msgid "" +"Unix time in milliseconds of when the client went idle. None if it is not" +" idle." +msgstr "" + +#: interactions.api.models.presence.ClientPresence:4 of +msgid "Array of activity objects." +msgstr "" + +#: interactions.api.models.presence.ClientPresence:5 of +msgid "The client's new status." +msgstr "" + +#: interactions.api.models.presence.ClientPresence:6 of +msgid "Whether the client is afk or not." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.role.po b/docs/locale/es/LC_MESSAGES/api.models.role.po new file mode 100644 index 000000000..c78eeec53 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.role.po @@ -0,0 +1,199 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.role.rst:4 +msgid "Role Models" +msgstr "" + +#: interactions.api.models.role.Role:1 of +msgid "A class object representing a role." +msgstr "" + +#: interactions.api.models.role.Role interactions.api.models.role.RoleTags of +msgid "Variables" +msgstr "" + +#: interactions.api.models.role.Role:3 of +msgid "Role ID" +msgstr "" + +#: interactions.api.models.role.Role:4 of +msgid "Role name" +msgstr "" + +#: interactions.api.models.role.Role:5 of +msgid "Role color in integer representation" +msgstr "" + +#: interactions.api.models.role.Role:6 of +msgid "A status denoting if this role is hoisted" +msgstr "" + +#: interactions.api.models.role.Role:7 of +msgid "Role icon hash, if any." +msgstr "" + +#: interactions.api.models.role.Role:8 of +msgid "Role unicode emoji" +msgstr "" + +#: interactions.api.models.role.Role:9 of +msgid "Role position" +msgstr "" + +#: interactions.api.models.role.Role:10 of +msgid "Role permissions as a bit set" +msgstr "" + +#: interactions.api.models.role.Role:11 of +msgid "A status denoting if this role is managed by an integration" +msgstr "" + +#: interactions.api.models.role.Role:12 of +msgid "A status denoting if this role is mentionable" +msgstr "" + +#: interactions.api.models.role.Role:13 of +msgid "The tags this role has" +msgstr "" + +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.role.Role.mention:1 of +msgid "Returns a string that allows you to mention the given role." +msgstr "" + +#: interactions.api.models.role.Role.mention +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position of +msgid "Returns" +msgstr "" + +#: interactions.api.models.role.Role.mention:3 of +msgid "The string of the mentioned role." +msgstr "" + +#: interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.mention +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position of +msgid "Return type" +msgstr "" + +#: interactions.api.models.role.Role.delete:1 of +msgid "Deletes the role from the guild." +msgstr "" + +#: interactions.api.models.role.Role.delete:3 of +msgid "The id of the guild to delete the role from" +msgstr "" + +#: interactions.api.models.role.Role.delete:5 of +msgid "The reason for the deletion" +msgstr "" + +#: interactions.api.models.role.Role.modify:1 of +msgid "Edits the role in a guild." +msgstr "" + +#: interactions.api.models.role.Role.modify:3 of +msgid "The id of the guild to edit the role on" +msgstr "" + +#: interactions.api.models.role.Role.modify:5 of +msgid "The name of the role, defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:7 of +msgid "RGB color value as integer, defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:11 of +msgid "" +"Whether the role should be displayed separately in the sidebar, defaults " +"to the current value of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:13 of +msgid "" +"The role's icon image (if the guild has the ROLE_ICONS feature), defaults" +" to the current value of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:15 of +msgid "" +"The role's unicode emoji as a standard emoji (if the guild has the " +"ROLE_ICONS feature), defaults to the current value of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:17 of +msgid "" +"Whether the role should be mentionable, defaults to the current value of " +"the role" +msgstr "" + +#: interactions.api.models.role.Role.modify:19 of +msgid "The reason why the role is edited, default ``None``" +msgstr "" + +#: interactions.api.models.role.Role.modify:21 of +msgid "The modified role object" +msgstr "" + +#: interactions.api.models.role.Role.modify_position:1 of +msgid "Modifies the position of a role in the guild." +msgstr "" + +#: interactions.api.models.role.Role.modify_position:3 of +msgid "The id of the guild to modify the role position on" +msgstr "" + +#: interactions.api.models.role.Role.modify_position:5 of +msgid "The new position of the role" +msgstr "" + +#: interactions.api.models.role.Role.modify_position:7 of +msgid "The reason for the modifying" +msgstr "" + +#: interactions.api.models.role.Role.modify_position:9 of +msgid "List of guild roles with updated hierarchy" +msgstr "" + +#: interactions.api.models.role.RoleTags:1 of +msgid "A class object representing the tags of a role." +msgstr "" + +#: interactions.api.models.role.RoleTags:3 of +msgid "The id of the bot this role belongs to" +msgstr "" + +#: interactions.api.models.role.RoleTags:4 of +msgid "The id of the integration this role belongs to" +msgstr "" + +#: interactions.api.models.role.RoleTags:5 of +msgid "Whether if this is the guild's premium subscriber role" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.team.po b/docs/locale/es/LC_MESSAGES/api.models.team.po new file mode 100644 index 000000000..2958a4252 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.team.po @@ -0,0 +1,185 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.team.rst:4 +msgid "Team Models" +msgstr "" + +#: interactions.api.models.team.Team:1 of +msgid "A class object representing a team." +msgstr "" + +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Variables" +msgstr "" + +#: interactions.api.models.team.Team:3 of +msgid "The hash of the team's icon" +msgstr "" + +#: interactions.api.models.team.Team:4 of +msgid "The team's unique ID" +msgstr "" + +#: interactions.api.models.team.Team:5 of +msgid "The members of the team" +msgstr "" + +#: interactions.api.models.team.Team:6 of +msgid "The team name" +msgstr "" + +#: interactions.api.models.team.Team:7 of +msgid "The User ID of the current team owner" +msgstr "" + +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.team.TeamMember:1 of +msgid "A class object representing the member of a team." +msgstr "" + +#: interactions.api.models.team.TeamMember:4 of +msgid "" +"The membership state is either a 1 for invited, or 2 for accepted. At the" +" moment, permissions will always be [\"*\"]." +msgstr "" + +#: interactions.api.models.team.TeamMember:7 of +msgid "The user's membership state on the team" +msgstr "" + +#: interactions.api.models.team.TeamMember:8 of +msgid "Team Member permissions" +msgstr "" + +#: interactions.api.models.team.TeamMember:9 of +msgid "ID of the team that they're a member of." +msgstr "" + +#: interactions.api.models.team.TeamMember:10 of +msgid "The user object." +msgstr "" + +#: interactions.api.models.team.Application:1 of +msgid "A class object representing an application." +msgstr "" + +#: interactions.api.models.team.Application:4 of +msgid "``type`` and ``hook`` are currently undocumented in the API." +msgstr "" + +#: interactions.api.models.team.Application:6 of +msgid "Application ID" +msgstr "" + +#: interactions.api.models.team.Application:7 of +msgid "Application Name" +msgstr "" + +#: interactions.api.models.team.Application:8 of +msgid "Icon hash of the application" +msgstr "" + +#: interactions.api.models.team.Application:9 of +msgid "Application Description" +msgstr "" + +#: interactions.api.models.team.Application:10 of +msgid "An array of rpc origin urls, if RPC is used." +msgstr "" + +#: interactions.api.models.team.Application:11 of +msgid "A status denoting if anyone can invite the bot to guilds" +msgstr "" + +#: interactions.api.models.team.Application:12 of +msgid "" +"A status denoting whether full Oauth2 is required for the app's bot to " +"join a guild" +msgstr "" + +#: interactions.api.models.team.Application:13 of +msgid "URL of the app's Terms of Service" +msgstr "" + +#: interactions.api.models.team.Application:14 of +msgid "URL of the app's Privacy Policy" +msgstr "" + +#: interactions.api.models.team.Application:15 of +msgid "User object of the owner" +msgstr "" + +#: interactions.api.models.team.Application:16 of +msgid "Summary of the store page, if this application is a game sold on Discord" +msgstr "" + +#: interactions.api.models.team.Application:17 of +msgid "" +"Hex encoded key for verification in interactions and/or the GameSDK's " +"GetTicket" +msgstr "" + +#: interactions.api.models.team.Application:18 of +msgid "A list of team members, if this app belongs to a team." +msgstr "" + +#: interactions.api.models.team.Application:19 of +msgid "Guild ID linked, if this app is a game sold on Discord" +msgstr "" + +#: interactions.api.models.team.Application:20 of +msgid "Game SKU ID, if this app is a game sold on Discord" +msgstr "" + +#: interactions.api.models.team.Application:21 of +msgid "" +"URL slug that links to the store page, if this app is a game sold on " +"Discord" +msgstr "" + +#: interactions.api.models.team.Application:22 of +msgid "The app's default rich presence invite cover image" +msgstr "" + +#: interactions.api.models.team.Application:23 of +msgid "The application's public flags" +msgstr "" + +#: interactions.api.models.team.Application.icon_url:1 of +msgid "Returns the URL of the application's icon" +msgstr "" + +#: interactions.api.models.team.Application.icon_url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.team.Application.icon_url:3 of +msgid "URL of the application's icon." +msgstr "" + +#: interactions.api.models.team.Application.icon_url of +msgid "Return type" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.user.po b/docs/locale/es/LC_MESSAGES/api.models.user.po new file mode 100644 index 000000000..5721c56da --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.user.po @@ -0,0 +1,135 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.user.rst:4 +msgid "User Models" +msgstr "" + +#: interactions.api.models.user.User:1 of +msgid "A class object representing a user." +msgstr "" + +#: interactions.api.models.user.User of +msgid "Variables" +msgstr "" + +#: interactions.api.models.user.User:3 of +msgid "The User ID" +msgstr "" + +#: interactions.api.models.user.User:4 of +msgid "The Username associated (not necessarily unique across the platform)" +msgstr "" + +#: interactions.api.models.user.User:5 of +msgid "The User's 4-digit discord-tag (i.e.: XXXX)" +msgstr "" + +#: interactions.api.models.user.User:6 of +msgid "The user's avatar hash, if any" +msgstr "" + +#: interactions.api.models.user.User:7 of +msgid "A status denoting if the user is a bot" +msgstr "" + +#: interactions.api.models.user.User:8 of +msgid "A status denoting if the user is an Official Discord System user" +msgstr "" + +#: interactions.api.models.user.User:9 of +msgid "A status denoting if the user has 2fa on their account" +msgstr "" + +#: interactions.api.models.user.User:10 of +msgid "The user's banner hash, if any" +msgstr "" + +#: interactions.api.models.user.User:11 of +msgid "The user's banner color as a hex, if any" +msgstr "" + +#: interactions.api.models.user.User:12 of +msgid "The user's banner color as an integer represented of hex color codes" +msgstr "" + +#: interactions.api.models.user.User:13 of +msgid "The user's chosen language option" +msgstr "" + +#: interactions.api.models.user.User:14 of +msgid "Whether the email associated with this account has been verified" +msgstr "" + +#: interactions.api.models.user.User:15 of +msgid "The user's email, if any" +msgstr "" + +#: interactions.api.models.user.User:16 of +msgid "The user's flags" +msgstr "" + +#: interactions.api.models.user.User:17 of +msgid "The type of Nitro subscription the user has" +msgstr "" + +#: interactions.api.models.user.User:18 of +msgid "The user's public flags" +msgstr "" + +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.user.User.mention:1 of +msgid "Returns a string that allows you to mention the given user." +msgstr "" + +#: interactions.api.models.user.User.avatar_url +#: interactions.api.models.user.User.banner_url +#: interactions.api.models.user.User.mention of +msgid "Returns" +msgstr "" + +#: interactions.api.models.user.User.mention:3 of +msgid "The string of the mentioned user." +msgstr "" + +#: interactions.api.models.user.User.avatar_url +#: interactions.api.models.user.User.banner_url +#: interactions.api.models.user.User.mention of +msgid "Return type" +msgstr "" + +#: interactions.api.models.user.User.avatar_url:1 of +msgid "Returns the URL of the user's avatar" +msgstr "" + +#: interactions.api.models.user.User.avatar_url:3 of +msgid "URL of the user's avatar." +msgstr "" + +#: interactions.api.models.user.User.banner_url:1 of +msgid "Returns the URL of the user's banner." +msgstr "" + +#: interactions.api.models.user.User.banner_url:3 of +msgid "URL of the user's banner (None will be returned if no banner is set)" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.webhook.po b/docs/locale/es/LC_MESSAGES/api.models.webhook.po new file mode 100644 index 000000000..be10a2fd1 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.webhook.po @@ -0,0 +1,259 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.models.webhook.rst:4 +msgid "Webhook Models" +msgstr "" + +#: interactions.api.models.webhook.Webhook:1 of +msgid "A class object representing a Webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook of +msgid "Variables" +msgstr "" + +#: interactions.api.models.webhook.Webhook:3 of +msgid "the id of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook:4 of +msgid "the type of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook:5 of +msgid "the guild id this webhook is for, if any" +msgstr "" + +#: interactions.api.models.webhook.Webhook:6 of +msgid "the channel id this webhook is for, if any" +msgstr "" + +#: interactions.api.models.webhook.Webhook:7 of +msgid "" +"the user this webhook was created by (not returned when getting a webhook" +" with its token)" +msgstr "" + +#: interactions.api.models.webhook.Webhook:8 of +msgid "the default name of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook:9 of +msgid "the default user avatar hash of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook:10 of +msgid "the secure token of the webhook (returned for Incoming Webhooks)" +msgstr "" + +#: interactions.api.models.webhook.Webhook:11 of +msgid "the bot/OAuth2 application that created this webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook:12 of +msgid "" +"the guild of the channel that this webhook is following (returned for " +"Channel Follower Webhooks)" +msgstr "" + +#: interactions.api.models.webhook.Webhook:13 of +msgid "" +"the channel that this webhook is following (returned for Channel Follower" +" Webhooks)" +msgstr "" + +#: interactions.api.models.webhook.Webhook:14 of +msgid "" +"the url used for executing the webhook (returned by the webhooks OAuth2 " +"flow)" +msgstr "" + +#: interactions.api.models.webhook.Webhook +#: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.execute +#: interactions.api.models.webhook.Webhook.get +#: interactions.api.models.webhook.Webhook.modify of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:3 +#: interactions.api.models.webhook.Webhook.get:3 of +msgid "The HTTPClient of the bot, has to be set to `bot._http`." +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:5 of +msgid "The ID of the channel to create the webhook in." +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:7 of +msgid "The name of the webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:9 of +msgid "The avatar of the Webhook, if any." +msgstr "" + +#: interactions.api.models.webhook.Webhook.avatar_url +#: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.execute +#: interactions.api.models.webhook.Webhook.get +#: interactions.api.models.webhook.Webhook.modify of +msgid "Returns" +msgstr "" + +#: interactions.api.models.webhook.Webhook.create:11 of +msgid "The created webhook as object" +msgstr "" + +#: interactions.api.models.webhook.Webhook.avatar_url +#: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete +#: interactions.api.models.webhook.Webhook.execute +#: interactions.api.models.webhook.Webhook.get +#: interactions.api.models.webhook.Webhook.modify of +msgid "Return type" +msgstr "" + +#: interactions.api.models.webhook.Webhook.get:1 of +msgid "Gets an existing webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.get:5 of +msgid "The ID of the webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.get:7 of +msgid "The token of the webhook, optional" +msgstr "" + +#: interactions.api.models.webhook.Webhook.get:9 of +msgid "The Webhook object" +msgstr "" + +#: interactions.api.models.webhook.Webhook.modify:1 of +msgid "Modifies the current webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.modify:3 of +msgid "The new name of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook.modify:5 of +msgid "" +"The channel id of the webhook. If not provided, the webhook token will be" +" used for authentication" +msgstr "" + +#: interactions.api.models.webhook.Webhook.modify:7 of +msgid "The new avatar of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook.modify:9 of +msgid "The modified webhook object" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:1 of +msgid "Executes the webhook. All parameters to this function are optional." +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:4 of +msgid "The ``components`` argument requires an application-owned webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:6 of +msgid "the message contents (up to 2000 characters)" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:8 of +msgid "override the default username of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:10 of +msgid "override the default avatar of the webhook" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:12 of +msgid "true if this is a TTS message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:14 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:16 of +msgid "embedded ``rich`` content" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:18 of +msgid "allowed mentions for the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:20 of +msgid "the components to include with the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of +msgid "" +"Send a message to a specified thread within a webhook's channel. The " +"thread will automatically be unarchived" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:26 of +msgid "The sent message, if present" +msgstr "" + +#: interactions.api.models.webhook.Webhook.delete:1 of +msgid "Deletes the webhook." +msgstr "" + +#: interactions.api.models.webhook.Webhook.avatar_url:1 of +msgid "Returns the URL of the webhook's avatar." +msgstr "" + +#: interactions.api.models.webhook.Webhook.avatar_url:3 of +msgid "URL of the webhook's avatar" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.po b/docs/locale/es/LC_MESSAGES/api.po new file mode 100644 index 000000000..239f6eb9e --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.po @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../api.rst:11 +msgid "Client" +msgstr "" + +#: ../../api.rst:17 +msgid "Frameworks/Commands" +msgstr "" + +#: ../../api.rst:25 ../../api.rst:42 +msgid "Model/Design" +msgstr "" + +#: ../../api.rst:35 +msgid "Client Connections" +msgstr "" + +#: ../../api.rst:50 +msgid "Events" +msgstr "" + +#: ../../api.rst:4 +msgid "API Reference" +msgstr "" + +#: ../../api.rst:6 +msgid "This page outlines the API wrapper of discord-interactions." +msgstr "" + +#: ../../api.rst:9 +msgid "Interactions" +msgstr "" + +#: ../../api.rst:33 +msgid "Discord API" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/client.po b/docs/locale/es/LC_MESSAGES/client.po new file mode 100644 index 000000000..854019fc5 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/client.po @@ -0,0 +1,641 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../client.rst:4 +msgid "Bot Client" +msgstr "" + +#: interactions.client.bot.Client:1 of +msgid "" +"A class representing the client connection to Discord's gateway and API " +"via. WebSocket and HTTP." +msgstr "" + +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + +#: interactions.client.bot.Client of +msgid "Variables" +msgstr "" + +#: interactions.client.bot.Client:16 of +msgid "The asynchronous event loop of the client." +msgstr "" + +#: interactions.client.bot.Client:17 of +msgid "" +"The user-facing HTTP connection to the Web API, as its own separate " +"client." +msgstr "" + +#: interactions.client.bot.Client:18 of +msgid "An object-orientation of a websocket server connection to the Gateway." +msgstr "" + +#: interactions.client.bot.Client:19 of +msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:20 of +msgid "The list of bucketed shards for the application's connection." +msgstr "" + +#: interactions.client.bot.Client:21 of +msgid "The RPC-like presence shown on an application once connected." +msgstr "" + +#: interactions.client.bot.Client:22 of +msgid "The token of the application used for authentication when connecting." +msgstr "" + +#: interactions.client.bot.Client:23 of +msgid "The \"extensions\" or cog equivalence registered to the main client." +msgstr "" + +#: interactions.client.bot.Client:24 of +msgid "The application representation of the client." +msgstr "" + +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + +#: interactions.client.bot.Client.__register_events:1 of +msgid "Registers all raw gateway events to the known events." +msgstr "" + +#: interactions.client.bot.Client.__compare_sync:1 of +msgid "Compares an application command during the synchronization process." +msgstr "" + +#: interactions.client.bot.Client.__compare_sync:3 of +msgid "The application command to compare." +msgstr "" + +#: interactions.client.bot.Client.__compare_sync:5 of +msgid "The \"pool\" or list of commands to compare from." +msgstr "" + +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload +#: interactions.client.bot.Client.user_command of +msgid "Returns" +msgstr "" + +#: interactions.client.bot.Client.__compare_sync:7 of +msgid "Whether the command has changed or not." +msgstr "" + +#: interactions.client.bot.Client._ready:1 of +msgid "" +"Prepares the client with an internal \"ready\" check to ensure that all " +"conditions have been met in a chronological order:" +msgstr "" + +#: interactions.client.bot.Client._login:1 of +msgid "Makes a login with the Discord API." +msgstr "" + +#: interactions.client.bot.Client.wait_until_ready:1 of +msgid "Helper method that waits until the websocket is ready." +msgstr "" + +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." +msgstr "" + +#: interactions.client.bot.Client.__resolve_commands:4 +#: interactions.client.bot.Client.__sync:4 of +msgid "" +"This is an internal method. Do not call it unless you know what you are " +"doing!" +msgstr "" + +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + +#: interactions.client.bot.Client.event:1 of +msgid "A decorator for listening to events dispatched from the Gateway." +msgstr "" + +#: interactions.client.bot.Client.event:4 of +msgid "The coroutine of the event." +msgstr "" + +#: interactions.client.bot.Client.event:6 of +msgid "" +"The name of the event. If not given, this defaults to the coroutine's " +"name." +msgstr "" + +#: interactions.client.bot.Client.autocomplete:20 +#: interactions.client.bot.Client.command:65 +#: interactions.client.bot.Client.component:27 +#: interactions.client.bot.Client.event:8 +#: interactions.client.bot.Client.message_command:30 +#: interactions.client.bot.Client.modal:24 +#: interactions.client.bot.Client.user_command:30 of +msgid "A callable response." +msgstr "" + +#: interactions.client.bot.Client.change_presence:1 of +msgid "A method that changes the current client's presence on runtime." +msgstr "" + +#: interactions.client.bot.Client.change_presence:4 of +msgid "" +"There is a ratelimit to using this method (5 per minute). As there's no " +"gateway ratelimiter yet, breaking this ratelimit will force your bot to " +"disconnect." +msgstr "" + +#: interactions.client.bot.Client.change_presence:8 of +msgid "The presence to change the bot to on identify." +msgstr "" + +#: interactions.client.bot.Client.__check_command:1 of +msgid "Checks if a command is valid." +msgstr "" + +#: interactions.client.bot.Client.command:1 of +msgid "" +"A decorator for registering an application command to the Discord API, as" +" well as being able to listen for ``INTERACTION_CREATE`` dispatched " +"gateway events." +msgstr "" + +#: interactions.client.bot.Client.command:5 of +msgid "The structure of a chat-input command:" +msgstr "" + +#: interactions.client.bot.Client.command:13 of +msgid "" +"You are also able to establish it as a message or user command by simply " +"passing the ``type`` kwarg field into the decorator:" +msgstr "" + +#: interactions.client.bot.Client.command:22 +#: interactions.client.bot.Client.message_command:13 +#: interactions.client.bot.Client.user_command:13 of +msgid "" +"The ``scope`` kwarg field may also be used to designate the command in " +"question applicable to a guild or set of guilds." +msgstr "" + +#: interactions.client.bot.Client.command:25 of +msgid "" +"To properly utilise the ``default_member_permissions`` kwarg, it requires" +" OR'ing the permission values, similar to instantiating the client with " +"Intents. For example:" +msgstr "" + +#: interactions.client.bot.Client.command:34 of +msgid "Another example below for instance is an admin-only command:" +msgstr "" + +#: interactions.client.bot.Client.command:43 of +msgid "" +"If ``default_member_permissions`` is not given, this will default to " +"anyone that is able to use the command." +msgstr "" + +#: interactions.client.bot.Client.command:45 of +msgid "" +"The type of application command. Defaults to " +":meth:`interactions.enums.ApplicationCommandType.CHAT_INPUT` or ``1``." +msgstr "" + +#: interactions.client.bot.Client.command:47 of +msgid "" +"The name of the application command. This *is* required but kept optional" +" to follow kwarg rules." +msgstr "" + +#: interactions.client.bot.Client.command:49 of +msgid "" +"The description of the application command. This should be left blank if " +"you are not using ``CHAT_INPUT``." +msgstr "" + +#: interactions.client.bot.Client.command:51 of +msgid "The \"scope\"/applicable guilds the application command applies to." +msgstr "" + +#: interactions.client.bot.Client.command:53 of +msgid "" +"The \"arguments\"/options of an application command. This should be left " +"blank if you are not using ``CHAT_INPUT``." +msgstr "" + +#: interactions.client.bot.Client.command:55 +#: interactions.client.bot.Client.message_command:22 +#: interactions.client.bot.Client.user_command:22 of +msgid "" +"The dictionary of localization for the ``name`` field. This enforces the " +"same restrictions as the ``name`` field." +msgstr "" + +#: interactions.client.bot.Client.command:57 of +msgid "" +"The dictionary of localization for the ``description`` field. This " +"enforces the same restrictions as the ``description`` field." +msgstr "" + +#: interactions.client.bot.Client.command:59 +#: interactions.client.bot.Client.message_command:24 +#: interactions.client.bot.Client.user_command:24 of +msgid "" +"The permissions bit value of " +"``interactions.api.model.flags.Permissions``. If not given, defaults to " +":meth:`interactions.api.model.flags.Permissions.USE_APPLICATION_COMMANDS`" +" or ``2147483648``" +msgstr "" + +#: interactions.client.bot.Client.command:61 +#: interactions.client.bot.Client.message_command:26 +#: interactions.client.bot.Client.user_command:26 of +msgid "" +"The application permissions if executed in a Direct Message. Defaults to " +"``True``." +msgstr "" + +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + +#: interactions.client.bot.Client.message_command:1 of +msgid "" +"A decorator for registering a message context menu to the Discord API, as" +" well as being able to listen for ``INTERACTION_CREATE`` dispatched " +"gateway events." +msgstr "" + +#: interactions.client.bot.Client.message_command:5 of +msgid "The structure of a message context menu:" +msgstr "" + +#: interactions.client.bot.Client.message_command:16 +#: interactions.client.bot.Client.user_command:16 of +msgid "The name of the application command." +msgstr "" + +#: interactions.client.bot.Client.message_command:18 +#: interactions.client.bot.Client.user_command:18 of +msgid "" +"The \"scope\"/applicable guilds the application command applies to. " +"Defaults to ``None``." +msgstr "" + +#: interactions.client.bot.Client.message_command:20 +#: interactions.client.bot.Client.user_command:20 of +msgid "" +"The default permission of accessibility for the application command. " +"Defaults to ``True``." +msgstr "" + +#: interactions.client.bot.Client.user_command:1 of +msgid "" +"A decorator for registering a user context menu to the Discord API, as " +"well as being able to listen for ``INTERACTION_CREATE`` dispatched " +"gateway events." +msgstr "" + +#: interactions.client.bot.Client.user_command:5 of +msgid "The structure of a user context menu:" +msgstr "" + +#: interactions.client.bot.Client.component:1 of +msgid "" +"A decorator for listening to ``INTERACTION_CREATE`` dispatched gateway " +"events involving components." +msgstr "" + +#: interactions.client.bot.Client.component:4 of +msgid "The structure for a component callback:" +msgstr "" + +#: interactions.client.bot.Client.component:22 of +msgid "" +"The context of the component callback decorator inherits the same as of " +"the command decorator." +msgstr "" + +#: interactions.client.bot.Client.component:25 of +msgid "The component you wish to callback for." +msgstr "" + +#: interactions.client.bot.Client._find_command:1 of +msgid "" +"Iterates over `commands` and returns an :class:`ApplicationCommand` if it" +" matches the name from `command`" +msgstr "" + +#: interactions.client.bot.Client._find_command:3 of +msgid "The name of the command to match" +msgstr "" + +#: interactions.client.bot.Client._find_command:5 of +msgid "An ApplicationCommand model" +msgstr "" + +#: interactions.client.bot.Client.autocomplete:1 of +msgid "" +"A decorator for listening to ``INTERACTION_CREATE`` dispatched gateway " +"events involving autocompletion fields." +msgstr "" + +#: interactions.client.bot.Client.autocomplete:4 of +msgid "The structure for an autocomplete callback:" +msgstr "" + +#: interactions.client.bot.Client.autocomplete:16 of +msgid "The command, command ID, or command name with the option." +msgstr "" + +#: interactions.client.bot.Client.autocomplete:18 of +msgid "The name of the option to autocomplete." +msgstr "" + +#: interactions.client.bot.Client.modal:1 of +msgid "" +"A decorator for listening to ``INTERACTION_CREATE`` dispatched gateway " +"events involving modals." +msgstr "" + +#: interactions.client.bot.Client.modal:4 of +msgid "The structure for a modal callback:" +msgstr "" + +#: interactions.client.bot.Client.modal:19 of +msgid "" +"The context of the modal callback decorator inherits the same as of the " +"component decorator." +msgstr "" + +#: interactions.client.bot.Client.modal:22 of +msgid "The modal or custom_id of modal you wish to callback for." +msgstr "" + +#: interactions.client.bot.Client.load:1 of +msgid "" +"\"Loads\" an extension off of the current client by adding a new class " +"which is imported from the library." +msgstr "" + +#: interactions.client.bot.Client.load:4 +#: interactions.client.bot.Client.remove:3 of +msgid "The name of the extension." +msgstr "" + +#: interactions.client.bot.Client.load:6 +#: interactions.client.bot.Client.remove:7 of +msgid "The package of the extension." +msgstr "" + +#: interactions.client.bot.Client.load:8 +#: interactions.client.bot.Client.reload:14 of +msgid "Optional arguments to pass to the extension" +msgstr "" + +#: interactions.client.bot.Client.load:10 +#: interactions.client.bot.Client.reload:16 of +msgid "Optional keyword-only arguments to pass to the extension." +msgstr "" + +#: interactions.client.bot.Client.load:12 of +msgid "The loaded extension." +msgstr "" + +#: interactions.client.bot.Client.remove:1 of +msgid "Removes an extension out of the current client from an import resolve." +msgstr "" + +#: interactions.client.bot.Client.remove:5 of +msgid "Whether to remove commands before reloading. Defaults to True." +msgstr "" + +#: interactions.client.bot.Client.reload:1 of +msgid "\"Reloads\" an extension off of current client from an import resolve." +msgstr "" + +#: interactions.client.bot.Client.reload:4 of +msgid "" +"This will remove and re-add application commands, counting towards your " +"daily application command creation limit, as long as you have the " +"``remove_commands`` argument set to ``True``, what it is by default." +msgstr "" + +#: interactions.client.bot.Client.reload:8 of +msgid "The name of the extension" +msgstr "" + +#: interactions.client.bot.Client.reload:10 of +msgid "The package of the extension" +msgstr "" + +#: interactions.client.bot.Client.reload:12 of +msgid "Whether to remove commands before reloading. Defaults to True" +msgstr "" + +#: interactions.client.bot.Client.reload:18 of +msgid "The reloaded extension." +msgstr "" + +#: interactions.client.bot.Client.modify:1 of +msgid "Modify the bot user account settings." +msgstr "" + +#: interactions.client.bot.Client.modify:3 of +msgid "The new username of the bot" +msgstr "" + +#: interactions.client.bot.Client.modify:5 of +msgid "The new avatar of the bot" +msgstr "" + +#: interactions.client.bot.Client.modify:7 of +msgid "The modified User object" +msgstr "" + +#: interactions.client.bot.Client.__raw_socket_create:1 of +msgid "" +"This is an internal function that takes any gateway socket event and then" +" returns the data purely based off of what it does in the client " +"instantiation class." +msgstr "" + +#: interactions.client.bot.Client.__raw_socket_create:5 of +msgid "The data that is returned" +msgstr "" + +#: interactions.client.bot.Client.__raw_socket_create:7 of +msgid "A dictionary of raw data." +msgstr "" + +#: interactions.client.bot.Client.__raw_channel_create:1 of +msgid "" +"This is an internal function that caches the channel creates when " +"dispatched." +msgstr "" + +#: interactions.client.bot.Client.__raw_channel_create:3 of +msgid "The channel object data in question." +msgstr "" + +#: interactions.client.bot.Client.__raw_channel_create:5 of +msgid "The channel as a dictionary of raw data." +msgstr "" + +#: interactions.client.bot.Client.__raw_message_create:1 of +msgid "" +"This is an internal function that caches the message creates when " +"dispatched." +msgstr "" + +#: interactions.client.bot.Client.__raw_message_create:3 of +msgid "The message object data in question." +msgstr "" + +#: interactions.client.bot.Client.__raw_message_create:5 of +msgid "The message as a dictionary of raw data." +msgstr "" + +#: interactions.client.bot.Client.__raw_guild_create:1 of +msgid "This is an internal function that caches the guild creates on ready." +msgstr "" + +#: interactions.client.bot.Client.__raw_guild_create:3 of +msgid "The guild object data in question." +msgstr "" + +#: interactions.client.bot.Client.__raw_guild_create:5 of +msgid "The guild as a dictionary of raw data." +msgstr "" + +#: interactions.client.bot.Extension:1 of +msgid "" +"A class that allows you to represent \"extensions\" of your code, or " +"essentially cogs that can be ran independent of the root file in an " +"object-oriented structure." +msgstr "" + +#: interactions.client.bot.Extension:5 of +msgid "The structure of an extension:" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/context.po b/docs/locale/es/LC_MESSAGES/context.po new file mode 100644 index 000000000..3917f5b73 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/context.po @@ -0,0 +1,344 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../context.rst:4 +msgid "Event Context" +msgstr "" + +#: interactions.client.context._Context:1 of +msgid "" +"The base class of \"context\" for dispatched event data from the gateway." +" The premise of having this class is so that the user-facing API is able " +"to allow developers to easily access information presented from any event" +" in a \"contextualized\" sense." +msgstr "" + +#: interactions.client.context.CommandContext +#: interactions.client.context._Context of +msgid "Variables" +msgstr "" + +#: interactions.client.context._Context:7 of +msgid "The message data model." +msgstr "" + +#: interactions.client.context._Context:8 of +msgid "The member data model." +msgstr "" + +#: interactions.client.context._Context:9 of +msgid "The user data model." +msgstr "" + +#: interactions.client.context._Context:10 of +msgid "The channel data model." +msgstr "" + +#: interactions.client.context._Context:11 of +msgid "The guild data model." +msgstr "" + +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + +#: interactions.client.context._Context.get_channel:1 of +msgid "This gets the channel the context was invoked in." +msgstr "" + +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.get_channel +#: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.send of +msgid "Returns" +msgstr "" + +#: interactions.client.context._Context.get_channel:3 of +msgid "The channel as object" +msgstr "" + +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.get_channel +#: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Return type" +msgstr "" + +#: interactions.client.context._Context.get_guild:1 of +msgid "This gets the guild the context was invoked in." +msgstr "" + +#: interactions.client.context._Context.get_guild:3 of +msgid "The guild as object" +msgstr "" + +#: interactions.client.context.CommandContext.send:1 +#: interactions.client.context.ComponentContext.send:1 +#: interactions.client.context._Context.send:1 of +msgid "" +"This allows the invocation state described in the \"context\" to send an " +"interaction response." +msgstr "" + +#: interactions.client.context.CommandContext.send:4 +#: interactions.client.context.ComponentContext.send:4 +#: interactions.client.context._Context.send:4 of +msgid "The contents of the message as a string or string-converted value." +msgstr "" + +#: interactions.client.context.CommandContext.send:6 +#: interactions.client.context.ComponentContext.send:6 +#: interactions.client.context._Context.send:6 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:8 +#: interactions.client.context.ComponentContext.send:8 +#: interactions.client.context._Context.send:8 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" +msgstr "" + +#: interactions.client.context.CommandContext.send:10 +#: interactions.client.context.ComponentContext.send:10 +#: interactions.client.context._Context.send:10 of +msgid "An embed, or list of embeds for the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:12 +#: interactions.client.context.ComponentContext.send:12 +#: interactions.client.context._Context.send:12 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.client.context.CommandContext.send:14 +#: interactions.client.context.ComponentContext.send:14 +#: interactions.client.context._Context.send:14 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:16 +#: interactions.client.context.ComponentContext.send:16 +#: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of +msgid "The sent message as an object." +msgstr "" + +#: interactions.client.context.CommandContext.edit:1 +#: interactions.client.context.ComponentContext.edit:1 +#: interactions.client.context._Context.edit:1 of +msgid "" +"This allows the invocation state described in the \"context\" to send an " +"interaction response. This inherits the arguments of the Context " +"``.send()`` method." +msgstr "" + +#: interactions.client.context.CommandContext.edit:5 +#: interactions.client.context.ComponentContext.edit:5 +#: interactions.client.context._Context.edit:5 of +msgid "The edited message as an object." +msgstr "" + +#: interactions.client.context._Context.popup:1 of +msgid "This \"pops up\" a modal to present information back to the user." +msgstr "" + +#: interactions.client.context._Context.popup:4 of +msgid "The components you wish to show." +msgstr "" + +#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +msgid "" +"Update an object with new attributes. All data will be converted, and any" +" extra attributes will be put in _extras" +msgstr "" + +#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +msgid "The dictionary to update from" +msgstr "" + +#: interactions.client.context.CommandContext:1 of +msgid "" +"A derivation of :class:`interactions.context.Context` designed " +"specifically for application command data." +msgstr "" + +#: interactions.client.context.CommandContext:5 of +msgid "" +"The ``guild`` attribute of the base context is not accessible for any " +"interaction-related events since the current Discord API schema does not " +"return this as a value, but instead ``guild_id``. You will need to " +"manually fetch for this data for the time being." +msgstr "" + +#: interactions.client.context.CommandContext:11 of +msgid "" +"You can fetch with ``client.get_guild(guild_id)`` which will return a " +"JSON dictionary, which you can then use ``interactions.Guild(**data)`` " +"for an object or continue with a dictionary for your own purposes." +msgstr "" + +#: interactions.client.context.CommandContext:16 of +msgid "the HTTP client" +msgstr "" + +#: interactions.client.context.CommandContext:17 of +msgid "The ID of the interaction." +msgstr "" + +#: interactions.client.context.CommandContext:18 of +msgid "The application ID of the interaction." +msgstr "" + +#: interactions.client.context.CommandContext:19 of +msgid "The type of interaction." +msgstr "" + +#: interactions.client.context.CommandContext:20 of +msgid "The application command data." +msgstr "" + +#: interactions.client.context.CommandContext:21 of +msgid "The target selected if this interaction is invoked as a context menu." +msgstr "" + +#: interactions.client.context.CommandContext:22 of +msgid "The token of the interaction response." +msgstr "" + +#: interactions.client.context.CommandContext:23 of +msgid "The ID of the current guild." +msgstr "" + +#: interactions.client.context.CommandContext:24 of +msgid "The ID of the current channel." +msgstr "" + +#: interactions.client.context.CommandContext:25 of +msgid "Whether an original response was made or not." +msgstr "" + +#: interactions.client.context.CommandContext:26 of +msgid "Whether the response was deferred or not." +msgstr "" + +#: interactions.client.context.CommandContext:27 of +msgid "The selected language of the user invoking the interaction." +msgstr "" + +#: interactions.client.context.CommandContext:28 of +msgid "The guild's preferred language, if invoked in a guild." +msgstr "" + +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + +#: interactions.client.context.CommandContext.defer:1 of +msgid "" +"This \"defers\" an interaction response, allowing up to a 15-minute delay" +" between invocation and responding." +msgstr "" + +#: interactions.client.context.CommandContext.defer:4 +#: interactions.client.context.ComponentContext.defer:4 of +msgid "Whether the deferred state is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.delete:1 of +msgid "" +"This deletes the interaction response of a message sent by the " +"contextually derived information from this class." +msgstr "" + +#: interactions.client.context.CommandContext.delete:5 of +msgid "Doing this will proceed in the context message no longer being present." +msgstr "" + +#: interactions.client.context.CommandContext.populate:1 of +msgid "" +"This \"populates\" the list of choices that the client-end user will be " +"able to select from in the autocomplete field." +msgstr "" + +#: interactions.client.context.CommandContext.populate:5 of +msgid "" +"Only a maximum of ``25`` choices may be presented within an autocomplete " +"option." +msgstr "" + +#: interactions.client.context.CommandContext.populate:8 of +msgid "The choices you wish to present." +msgstr "" + +#: interactions.client.context.CommandContext.populate:10 of +msgid "The list of choices you've given." +msgstr "" + +#: interactions.client.context.ComponentContext:1 of +msgid "" +"A derivation of :class:`interactions.context.CommandContext` designed " +"specifically for component data." +msgstr "" + +#: interactions.client.context.ComponentContext.defer:1 of +msgid "" +"This \"defers\" a component response, allowing up to a 15-minute delay " +"between invocation and responding." +msgstr "" + +#: interactions.client.context.ComponentContext.defer:6 of +msgid "Whether you want to edit the original message or send a followup message" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/enums.po b/docs/locale/es/LC_MESSAGES/enums.po new file mode 100644 index 000000000..ec2f643f5 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/enums.po @@ -0,0 +1,202 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../enums.rst:4 +msgid "Enumerable Objects" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 of +msgid "An enumerable object representing the types of application commands." +msgstr "" + +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Variables" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:3 +#: interactions.client.enums.ButtonStyle:3 +#: interactions.client.enums.ComponentType:3 +#: interactions.client.enums.InteractionCallbackType:3 +#: interactions.client.enums.InteractionType:3 +#: interactions.client.enums.OptionType:3 +#: interactions.client.enums.PermissionType:3 +#: interactions.client.enums.TextStyleType:3 of +msgid "1" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:4 +#: interactions.client.enums.ButtonStyle:4 +#: interactions.client.enums.ComponentType:4 +#: interactions.client.enums.InteractionType:4 +#: interactions.client.enums.OptionType:4 +#: interactions.client.enums.PermissionType:4 +#: interactions.client.enums.TextStyleType:4 of +msgid "2" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:5 +#: interactions.client.enums.ButtonStyle:5 +#: interactions.client.enums.ComponentType:5 +#: interactions.client.enums.InteractionType:5 +#: interactions.client.enums.OptionType:5 +#: interactions.client.enums.PermissionType:5 of +msgid "3" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:6 +#: interactions.client.enums.ButtonStyle:6 +#: interactions.client.enums.ComponentType:6 +#: interactions.client.enums.InteractionCallbackType:4 +#: interactions.client.enums.InteractionType:6 +#: interactions.client.enums.OptionType:6 of +msgid "4" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.enums.InteractionType:1 of +msgid "An enumerable object representing the types of interactions." +msgstr "" + +#: interactions.client.enums.ButtonStyle:7 +#: interactions.client.enums.InteractionCallbackType:5 +#: interactions.client.enums.InteractionType:7 +#: interactions.client.enums.OptionType:7 of +msgid "5" +msgstr "" + +#: interactions.client.enums.InteractionCallbackType:1 of +msgid "" +"An enumerable object representing the callback types of interaction " +"responses." +msgstr "" + +#: interactions.client.enums.InteractionCallbackType:6 +#: interactions.client.enums.OptionType:8 of +msgid "6" +msgstr "" + +#: interactions.client.enums.InteractionCallbackType:7 +#: interactions.client.enums.OptionType:9 of +msgid "7" +msgstr "" + +#: interactions.client.enums.InteractionCallbackType:8 +#: interactions.client.enums.OptionType:10 of +msgid "8" +msgstr "" + +#: interactions.client.enums.InteractionCallbackType:9 +#: interactions.client.enums.OptionType:11 of +msgid "9" +msgstr "" + +#: interactions.client.enums.OptionType:1 of +msgid "" +"An enumerable object representing the types of an application command " +"option." +msgstr "" + +#: interactions.client.enums.OptionType:12 of +msgid "10" +msgstr "" + +#: interactions.client.enums.OptionType:13 of +msgid "11" +msgstr "" + +#: interactions.client.enums.PermissionType:1 of +msgid "" +"Enumerable object of literal integers holding equivocal values of a slash" +" command's permission(s)." +msgstr "" + +#: interactions.client.enums.ComponentType:1 of +msgid "An enumerable object representing the types of a component." +msgstr "" + +#: interactions.client.enums.ButtonStyle:1 of +msgid "An enumerable object representing the styles of button components." +msgstr "" + +#: interactions.client.enums.TextStyleType:1 of +msgid "An enumerable object representing the styles of text inputs." +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "An enumerable object representing Discord locales." +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/events.po b/docs/locale/es/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.base.po b/docs/locale/es/LC_MESSAGES/ext.base.po new file mode 100644 index 000000000..5a2fe3730 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.base.po @@ -0,0 +1,150 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.base.rst:4 +msgid "Core Model" +msgstr "" + +#: interactions.ext.base.Base:1 of +msgid "A class representing the base structure of a 3rd party." +msgstr "" + +#: interactions.ext.base.Base of +msgid "Variables" +msgstr "" + +#: interactions.ext.base.Base:3 of +msgid "The version of the library." +msgstr "" + +#: interactions.ext.base.Base:4 of +msgid "The name of the library." +msgstr "" + +#: interactions.ext.base.Base:5 of +msgid "The description of the library." +msgstr "" + +#: interactions.ext.base.Base:6 of +msgid "The long description of the library." +msgstr "" + +#: interactions.ext.base.Base:7 of +msgid "The repository link or the library." +msgstr "" + +#: interactions.ext.base.Base:8 of +msgid "The packages of the library." +msgstr "" + +#: interactions.ext.base.Base:9 of +msgid "The modules in the library required." +msgstr "" + +#: interactions.ext.base.Base:10 of +msgid "The objects running under the service." +msgstr "" + +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" +msgstr "" + +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." +msgstr "" + +#: interactions.ext.base.Base._check_service:3 of +msgid "The name of the service to check." +msgstr "" + +#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services of +msgid "Returns" +msgstr "" + +#: interactions.ext.base.Base._check_service:5 of +msgid "Whether the service exists or not." +msgstr "" + +#: interactions.ext.base.Base.add_service:1 of +msgid "" +"Adds a service to the 3rd party for ease of accessibility in calling. The" +" code theory behind this is to simplify the way you handle and manage the" +" calling of other objects, as well as accessing their information." +msgstr "" + +#: interactions.ext.base.Base.add_service:5 of +msgid "The object to add as a service." +msgstr "" + +#: interactions.ext.base.Base.add_service:7 of +msgid "The name of the object to map under." +msgstr "" + +#: interactions.ext.base.Base.add_service:9 of +msgid "The mapped relation between the object and name." +msgstr "" + +#: interactions.ext.base.Base.remove_service:1 of +msgid "" +"Removes a service from the 3rd party in the event that it is no longer " +"needed to be referred to for data." +msgstr "" + +#: interactions.ext.base.Base.remove_service:4 of +msgid "The name of the service to remove." +msgstr "" + +#: interactions.ext.base.Base.remove_service:6 of +msgid "If the service has been removed or not." +msgstr "" + +#: interactions.ext.base.Base.remove_service of +msgid "Raises" +msgstr "" + +#: interactions.ext.base.Base.remove_service:8 of +msgid "An unknown service in the base." +msgstr "" + +#: interactions.ext.base.Base.services:1 of +msgid "" +"Returns a view on all of the services currently stored under the 3rd " +"party." +msgstr "" + +#: interactions.ext.base.Base.services:3 of +msgid "A dictionary of objects sorted by their name." +msgstr "" + +#: interactions.ext.base.build:1 of +msgid "Builds the base 3rd party the same way as ``setup`` from ``setuptools``." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.converter.po b/docs/locale/es/LC_MESSAGES/ext.converter.po new file mode 100644 index 000000000..fdd604d85 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.converter.po @@ -0,0 +1,116 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.converter.rst:4 +msgid "Converter Model" +msgstr "" + +#: interactions.ext.converter.Converter:1 of +msgid "" +"A class representing the \"conversion\" or consistent mapping between two" +" objects' attributes." +msgstr "" + +#: interactions.ext.converter.Converter of +msgid "Variables" +msgstr "" + +#: interactions.ext.converter.Converter:4 of +msgid "The first object to be converted." +msgstr "" + +#: interactions.ext.converter.Converter:5 of +msgid "The second object to be converted." +msgstr "" + +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" +msgstr "" + +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter._map_attr +#: interactions.ext.converter.Converter.difference +#: interactions.ext.converter.Converter.get_attr +#: interactions.ext.converter.Converter.get_attrs +#: interactions.ext.converter.Converter.missing +#: interactions.ext.converter.Converter.ref of +msgid "Return type" +msgstr "" + +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." +msgstr "" + +#: interactions.ext.converter.Converter._map_attr +#: interactions.ext.converter.Converter.difference +#: interactions.ext.converter.Converter.get_attr +#: interactions.ext.converter.Converter.get_attrs +#: interactions.ext.converter.Converter.missing +#: interactions.ext.converter.Converter.ref of +msgid "Returns" +msgstr "" + +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." +msgstr "" + +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." +msgstr "" + +#: interactions.ext.converter.Converter.get_attr:3 of +msgid "The attribute to get." +msgstr "" + +#: interactions.ext.converter.Converter.get_attr:5 of +msgid "The mapped attribute." +msgstr "" + +#: interactions.ext.converter.Converter.get_attrs:1 of +msgid "Gets a list of mapped attributes." +msgstr "" + +#: interactions.ext.converter.Converter.get_attrs:3 of +msgid "The list of mapped attributes." +msgstr "" + +#: interactions.ext.converter.Converter.ref:1 of +msgid "Gets the \"referenced\" model, or first." +msgstr "" + +#: interactions.ext.converter.Converter.ref:3 of +msgid "The referenced model." +msgstr "" + +#: interactions.ext.converter.Converter.difference:1 of +msgid "Gets a list of keys and values that the models don't share in common." +msgstr "" + +#: interactions.ext.converter.Converter.difference:3 +#: interactions.ext.converter.Converter.missing:3 of +msgid "A list of dictionaries" +msgstr "" + +#: interactions.ext.converter.Converter.missing:1 of +msgid "" +"Gets a list of keys and values missing from the \"referenced\" or first " +"model." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.error.po b/docs/locale/es/LC_MESSAGES/ext.error.po new file mode 100644 index 000000000..ca0f95fca --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.error.po @@ -0,0 +1,100 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.error.rst:4 +msgid "Error Exceptions" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "An enumerable object representing the type of error responses raised." +msgstr "" + +#: interactions.ext.error.ErrorType of +msgid "Variables" +msgstr "" + +#: interactions.ext.error.ErrorType:3 of +msgid "" +"You cannot have more than one alphanumeric identifier, or identifier with" +" a missing value." +msgstr "" + +#: interactions.ext.error.ErrorType:4 of +msgid "You cannot have a missing numerical value." +msgstr "" + +#: interactions.ext.error.ErrorType:5 of +msgid "" +"A version can only have one main author. The rest of the authors must be " +"co-authors." +msgstr "" + +#: interactions.ext.error.ErrorType:6 of +msgid "The service specified does not exist." +msgstr "" + +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.ext.error.IncorrectAlphanumeric:1 of +msgid "" +"An exception raised whenever a ``Version`` object has an incorrect " +"alphanumeric formatting." +msgstr "" + +#: interactions.ext.error.MissingNumeric:1 of +msgid "" +"An exception raised whenever a ``Version`` object has an incorrect " +"numerical formatting." +msgstr "" + +#: interactions.ext.error.TooManyAuthors:1 of +msgid "" +"An exception raised whenever a ``VersionAuthor`` object have too many " +"\"main\" authors." +msgstr "" + +#: interactions.ext.error.UnknownService:1 of +msgid "An exception raised whenever a ``Base`` object cannot find a service." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/es/LC_MESSAGES/ext.gettingstarted.po new file mode 100644 index 000000000..0de3ee399 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.gettingstarted.po @@ -0,0 +1,225 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.gettingstarted.rst:2 +msgid "Getting started." +msgstr "" + +#: ../../ext.gettingstarted.rst:5 +msgid "Developing a 3rd party." +msgstr "" + +#: ../../ext.gettingstarted.rst:7 +msgid "" +"Getting started with making a 3rd party library is pretty hard. Most of " +"the time, you'll find yourself often checking the source code and " +"directly making changes to the library. We want to make a change to that," +" and additionally, make it easier for developers to find creativity in " +"the simplicity of our overengineered product." +msgstr "" + +#: ../../ext.gettingstarted.rst:14 +msgid "" +"If you're not familiar with the source code of the library, you should " +"probably read the documentation first." +msgstr "" + +#: ../../ext.gettingstarted.rst:17 +msgid "" +"Basing your 3rd party libraries off of our ``unstable`` branch is a bad " +"practice as this is regarded as our development branch. Breaking changes " +"may become common, and as a result pose a risk in affecting your 3rd " +"party. For this reason, we recommend you use the latest PyPI release or " +"``stable`` branch." +msgstr "" + +#: ../../ext.gettingstarted.rst:24 +msgid "Installing" +msgstr "" + +#: ../../ext.gettingstarted.rst:26 +msgid "" +"Installing the external framework is a rather trivial process. You do not" +" need to run any special installation on the library, as this comes built" +" into our main core. However, you will need to install the dependencies " +"involved with the library." +msgstr "" + +#: ../../ext.gettingstarted.rst:31 +msgid "" +"If you do not already have this library installed, you can do with this " +"line below:" +msgstr "" + +#: ../../ext.gettingstarted.rst:39 +msgid "Creating the base." +msgstr "" + +#: ../../ext.gettingstarted.rst:41 +msgid "" +"For every official 3rd party library of interactions.py, we have a " +"\"core\" for it, otherwise known as the base. This base is what we use to" +" allow developers to easily setup their project onto PyPI and build, as " +"well as storing additional information that bot developers can read off " +"of for their bots." +msgstr "" + +#: ../../ext.gettingstarted.rst:46 +msgid "This code shows a basic example for creating the base of a 3rd party:" +msgstr "" + +#: ../../ext.gettingstarted.rst:71 +msgid "" +"This configures the base of the library in a rather simple manner: you " +"give the name and description of the 3rd party, as well as its own " +"official version and link for reference. This is all that is required to " +"build the library. The rest of the field that can be filled in are " +"optional. You can look at the :ref:`Base class ` for" +" more information." +msgstr "" + +#: ../../ext.gettingstarted.rst:78 +msgid "Defining a version." +msgstr "" + +#: ../../ext.gettingstarted.rst:80 +msgid "" +"As you may have noticed in the ``Base`` class, we have a ``Version`` " +"class that helps define the version of the 3rd party. This is required to" +" be written in our class for numerous reasons:" +msgstr "" + +#: ../../ext.gettingstarted.rst:83 +msgid "To help enforce consistency in the formatting of 3rd party versions." +msgstr "" + +#: ../../ext.gettingstarted.rst:84 +msgid "To allow for easy version comparison." +msgstr "" + +#: ../../ext.gettingstarted.rst:85 +msgid "Forced semantic versioning." +msgstr "" + +#: ../../ext.gettingstarted.rst:87 +msgid "" +"This class is our most advanced and complicated one due to the abundant " +"nature in emphasising a proper versioning system. We have a few options " +"for versioning, and we have a few rules to follow." +msgstr "" + +#: ../../ext.gettingstarted.rst:90 +msgid "" +"Major, minor and patch versions **must** be declared as either their " +"respective key-word arguments, or under the ``version`` kwarg." +msgstr "" + +#: ../../ext.gettingstarted.rst:91 +msgid "" +"The version should not be author-less. Every library has an author behind" +" a version." +msgstr "" + +#: ../../ext.gettingstarted.rst:92 +msgid "" +"The version should not be a pre-release. Pre-releases are not supported " +"by the official PyPI. To release as alpha or beta, use the " +"``extend_version()`` method." +msgstr "" + +#: ../../ext.gettingstarted.rst:93 +msgid "" +"A version cannot contain more than 1 main author. If you have multiple " +"authors, you should label them as co-authors instead." +msgstr "" + +#: ../../ext.gettingstarted.rst:94 +msgid "An alphanumeric version can only contain one instance of its own." +msgstr "" + +#: ../../ext.gettingstarted.rst:96 +msgid "" +"With these rules out of the way, let's look at a simple implementation of" +" the ``Version`` class alongside its brother, ``VersionAuthor`` for " +"adding authors of a version:" +msgstr "" + +#: ../../ext.gettingstarted.rst:120 +msgid "" +"This code example can also show you the ways of retreiving information " +"from a version. As seen here, this is a highly versatile class. These " +"following are the shown methods and their purposes:" +msgstr "" + +#: ../../ext.gettingstarted.rst:124 +msgid "The ``version`` attribute is the version string." +msgstr "" + +#: ../../ext.gettingstarted.rst:125 +msgid "The ``major`` attribute is the major version number, e.g. \"x.0.0\"" +msgstr "" + +#: ../../ext.gettingstarted.rst:126 +msgid "The ``minor`` attribute is the minor version number, e.g. \"0.x.0\"" +msgstr "" + +#: ../../ext.gettingstarted.rst:127 +msgid "The ``patch`` attribute is the patch version number, e.g. \"0.0.x\"" +msgstr "" + +#: ../../ext.gettingstarted.rst:128 +msgid "" +"The ``authors`` property method is a list of authors, regardless of if " +"one is a co-author or not." +msgstr "" + +#: ../../ext.gettingstarted.rst:129 +msgid "" +"The ``is_alphanumeric`` property method is a boolean that indicates if " +"the version is alphanumeric." +msgstr "" + +#: ../../ext.gettingstarted.rst:132 +msgid "Converting models from one to another." +msgstr "" + +#: ../../ext.gettingstarted.rst:134 +msgid "" +"The term \"conversion\" is a gross exaggeration of what we're actually " +"doing here. The problem that we've found with bot developers cross-" +"referencing from different libraries is that their data models are simply" +" different in design and structure. In order to combat against this, we " +"have decided to create a conversion tool that will allow us to convert " +"between models. This tool also allows for better comparison that will " +"save the average developer many lines of code from having to be written. " +"This is a basic example of how we \"convert\" these models:" +msgstr "" + +#: ../../ext.gettingstarted.rst:162 +msgid "What about errors?" +msgstr "" + +#: ../../ext.gettingstarted.rst:164 +msgid "" +"Don't worry---we've got you covered there. Each of our tools will raise " +"special error exceptions that you can listen to. Since this is a pretty " +"self-explanitory subject, we recommend :ref:`reading the documentation " +"` on this." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.po b/docs/locale/es/LC_MESSAGES/ext.po new file mode 100644 index 000000000..f3afe86ec --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.po @@ -0,0 +1,50 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.rst:19 +msgid "Tools:" +msgstr "" + +#: ../../ext.rst:4 +msgid "External Framework" +msgstr "" + +#: ../../ext.rst:6 +msgid "" +"Are you trying to build your own 3rd party library, but you don't want to" +" monkey-patch your own solutions into the current existing library " +"codebase? Are you wanting to avoid having to modify the architecture of " +"the library to specifically suit you or others needs? Well, now we have " +"something to introduce to you: ``interactions.ext``. The officially given" +" software development kit (SDK) tools suite made by developers; for " +"developers." +msgstr "" + +#: ../../ext.rst:13 +msgid "How does the framework... work?" +msgstr "" + +#: ../../ext.rst:15 +msgid "" +"Great question! We're glad you asked. The framework is a set of tools " +"that are designed to make your life easier. There are a few tools that we" +" provide out of the box, but you can also create some of your own. We'll " +"be covering each one of these tools in great detail." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/ext.version.po b/docs/locale/es/LC_MESSAGES/ext.version.po new file mode 100644 index 000000000..850829199 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/ext.version.po @@ -0,0 +1,200 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../ext.version.rst:4 +msgid "Versioning Models" +msgstr "" + +#: interactions.ext.version.VersionAuthor:1 of +msgid "A class representing the author involved in a version." +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.VersionAuthor of +msgid "Variables" +msgstr "" + +#: interactions.ext.version.VersionAuthor:3 of +msgid "The hashed representation of the class." +msgstr "" + +#: interactions.ext.version.VersionAuthor:4 of +msgid "Whether this is a co-author or not." +msgstr "" + +#: interactions.ext.version.VersionAuthor:5 of +msgid "Whether the author is active or not." +msgstr "" + +#: interactions.ext.version.VersionAuthor:6 of +msgid "The email of the author." +msgstr "" + +#: interactions.ext.version.VersionAuthor:7 of +msgid "The name of the author." +msgstr "" + +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + +#: interactions.ext.version.VersionAuthor.is_co_author:1 of +msgid "Returns whether the author is a co-author or not." +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.ext.version.Version:1 of +msgid "A class representing how a version is structured for a 3rd party library." +msgstr "" + +#: interactions.ext.version.Version:4 of +msgid "" +"This class respects the design and application of Semantic Versioning " +"2.0.0, (SemVer) a widely accepted standardisation of version control for " +"modules and projects." +msgstr "" + +#: interactions.ext.version.Version:8 of +msgid "The major version." +msgstr "" + +#: interactions.ext.version.Version:9 of +msgid "The minor version." +msgstr "" + +#: interactions.ext.version.Version:10 of +msgid "The patch version." +msgstr "" + +#: interactions.ext.version.Version:11 of +msgid "The authors tied to the version release." +msgstr "" + +#: interactions.ext.version.Version:12 of +msgid "The representation of the version." +msgstr "" + +#: interactions.ext.version.Version:13 of +msgid "The alphanumeric typing of the version." +msgstr "" + +#: interactions.ext.version.Version.major:1 of +msgid "Returns the major version." +msgstr "" + +#: interactions.ext.version.Version.minor:1 of +msgid "Returns the minor version." +msgstr "" + +#: interactions.ext.version.Version.patch:1 of +msgid "Returns the patch version." +msgstr "" + +#: interactions.ext.version.Version.author:1 of +msgid "" +"Returns the author of the version. If multiple authors exist, it will " +"choose the only one that is not a co-author." +msgstr "" + +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version of +msgid "Returns" +msgstr "" + +#: interactions.ext.version.Version.author:4 of +msgid "The author of the version, if one exists." +msgstr "" + +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.extend_version of +msgid "Raises" +msgstr "" + +#: interactions.ext.version.Version.author:6 of +msgid "Too many main authors were found." +msgstr "" + +#: interactions.ext.version.Version.authors:1 of +msgid "Returns the list of authors under the version." +msgstr "" + +#: interactions.ext.version.Version.authors:3 of +msgid "The authors of the version, if any exist." +msgstr "" + +#: interactions.ext.version.Version.is_alphanumeric:1 of +msgid "Returns whether the version is alphanumeric or not." +msgstr "" + +#: interactions.ext.version.Version.extend_version:1 of +msgid "Allows the version to be extended upon with an alphanumeric format." +msgstr "" + +#: interactions.ext.version.Version.extend_version:3 of +msgid "" +"Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " +"respectively." +msgstr "" + +#: interactions.ext.version.Version.extend_version:5 of +msgid "The new version with the alphanumeric." +msgstr "" + +#: interactions.ext.version.Version.extend_version:7 of +msgid "The alphanumeric version was incorrectly formatted." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/faq.po b/docs/locale/es/LC_MESSAGES/faq.po new file mode 100644 index 000000000..1bf421161 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/faq.po @@ -0,0 +1,523 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../faq.rst:2 +msgid "Frequently Asked Questions" +msgstr "" + +#: ../../faq.rst:4 +msgid "" +"Got a question about our library? Well, your answer is probably laying " +"somewhere around here." +msgstr "" + +#: ../../faq.rst:8 +msgid "" +"This page is maintained by the Helpers of the Discord server, and " +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." +msgstr "" + +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" +msgstr "" + +#: ../../faq.rst:16 +msgid "" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." +msgstr "" + +#: ../../faq.rst:21 +msgid "Are you going to/will/consider fork(ing) discord.py?" +msgstr "" + +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 +msgid "" +"The long answer is a list of numerous reasons as to why this decision was" +" made:" +msgstr "" + +#: ../../faq.rst:26 +msgid "" +"There are/will be numerous forks out there for discord.py, and because of" +" that, we cannot safely guarantee our ability to help users out who may " +"be using their own form of modified code." +msgstr "" + +#: ../../faq.rst:27 +msgid "" +"The original purpose of this library was to act as an extension of " +"discord.py, but due to the issue of constantly having to monkeypatch " +"solutions into their codebase to keep our library working introduced " +"extreme technical debt. Forking discord.py and building off of it does " +"not change anything from our issue of avoiding this." +msgstr "" + +#: ../../faq.rst:28 +msgid "" +"The goal of this library is to solely implement support and integrate the" +" use of interactions from the Discord API. Making this library unique in " +"a sense that we only do this seemed reasonable and within our margin of " +"standards at the time." +msgstr "" + +#: ../../faq.rst:29 +msgid "" +"The message intent will inevitably be forced as a privileged intent in " +"April 2022. The practicality of trying to support message commands will " +"be infeasible since Discord Developers have `already admitted`_ that " +"\"not wanting to implement application commands\" will not be a valid " +"reason for applying for this privileged intent." +msgstr "" + +#: ../../faq.rst:30 +msgid "" +"Forking discord.py would be a massive change to our current codebase, " +"throwing away all of the effort we've put into it so far, and basically " +"just be rewriting how v2.0a was created. That would make it nothing more " +"than discord.py-interactions at that point -- plus, we're already a " +"library that keeps very similar naming conventions as discord.py does, so" +" this is pointless." +msgstr "" + +#: ../../faq.rst:34 +msgid "Will discord.py be able to work with this library?" +msgstr "" + +#: ../../faq.rst:35 +msgid "The short answer is: **yes.**" +msgstr "" + +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 +msgid "" +"However, the term \"work\" is loosely structured here. Imagine it like " +"taping a hole in the wall instead of repairing the wall. We're " +"essentially \"plastering\" support for discord.py instead of doing the " +"surgery on its internal organs to make it work well with our library. As " +"it currently stands, **interactions.py and discord.py** are API wrappers." +" You will be able to run code *alongside* one another, and you will be " +"able to plug in some classes, but the data conversion **must be exact.**" +msgstr "" + +#: ../../faq.rst:49 +msgid "What does that mean? Well, we'll show you:" +msgstr "" + +#: ../../faq.rst:78 +msgid "" +"Both of these variables ``interactions`` and ``dpy`` will be able to run " +"in the same established environment, and additionally will both function " +"properly as their respective libraries intend them to. This " +"implementation uses asyncio.gather to execute both starts simultaneously " +"as asyncio tasks, and runs them under one singular loop." +msgstr "" + +#: ../../faq.rst:82 +msgid "" +"Compared to traditional startup commands, ``interactions.ready()`` and " +"``dpy.start()`` is used instead of the typical ``interactions.start()`` " +"and ``dpy.run()`` methods because of synchronous/async functions. " +"``asyncio.gather()`` works with coroutines, hence the transition." +msgstr "" + +#: ../../faq.rst:86 +msgid "What about the models, though? That's a simple answer:" +msgstr "" + +#: ../../faq.rst:101 +msgid "" +"Both of these will be able to both run and give their proper value. It is" +" *very* important to note here, though, that you **must** be returning " +"back the exact same information that our objects depend on. A missing " +"class instance can easily lead to it breaking, hence the \"plastering\" " +"that is going on here." +msgstr "" + +#: ../../faq.rst:107 +msgid "Where should we go with discord.py being gone?" +msgstr "" + +#: ../../faq.rst:108 +msgid "" +"The most *biased* answer would be to, of course, *use interactions.py.* " +"We already offer a lot of the integral API wrapper aspects as discord.py " +"does, however, we only specialize in interactions. Which means things " +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" +msgstr "" + +#: ../../faq.rst:112 +msgid "Cooldowns" +msgstr "" + +#: ../../faq.rst:113 +msgid "Message commands" +msgstr "" + +#: ../../faq.rst:114 +msgid "Voice clients" +msgstr "" + +#: ../../faq.rst:116 +msgid "" +"There are other libraries of course though. As a general rule of thumb, " +"if you're looking to do mainly slash commands and that tidbit then we " +"highly recommend using our library, especially as **discord-components** " +"merges as of version 4.0. But if you want something way more open and " +"versatile, then we recommend these sources:" +msgstr "" + +#: ../../faq.rst:120 +msgid "`Pycord`_ (the most actively maintained)." +msgstr "" + +#: ../../faq.rst:121 +msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." +msgstr "" + +#: ../../faq.rst:122 +msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." +msgstr "" + +#: ../../faq.rst:124 +msgid "" +"It's personally recommended from the library developer to seek these " +"paths instead of sticking to an older version of a library, e.g. " +"discord.py 1.7.3 or 2.0.0a as they can eventually become deprecated with " +"more pending changes to the API by Discord engineers." +msgstr "" + +#: ../../faq.rst:129 +msgid "Why are you not supporting cooldowns?" +msgstr "" + +#: ../../faq.rst:130 +msgid "" +"Cooldowns aren't really an actual feature of the Discord API itself, but " +"rather more of a convenient feature implemented in discord.py in order to" +" avoid spamming of commands." +msgstr "" + +#: ../../faq.rst:133 +msgid "**What if people spam slash/sub commands?**" +msgstr "" + +#: ../../faq.rst:135 +msgid "" +"That's the neat part: it's really hard to do that, and most of the time, " +"they won't. Unless they copy the exact string that was used when you open" +" up the UI element to do it numerous times, most users do and will not be" +" able to know how to do this. However, if you as a bot developer feel at " +"unease about this, you are more than welcome to implement your own " +"cooldown methods yourself. Cooldowns were an ultimatum that came as the " +"result of message commands being able to be spam-able, and since we won't" +" be supporting them, there's no feasibility to having them in our " +"library." +msgstr "" + +#: ../../faq.rst:143 +msgid "Will we not be able to create message commands?" +msgstr "" + +#: ../../faq.rst:144 +msgid "" +"This is a tricky question to really answer. If you want the *technical* " +"answer: you can definitely create them with our library, however, you'll " +"have to program them in the ``on_message_create`` listener event that we " +"use. This is already something a majority of discord.py bot developers " +"frown upon doing, so this is at your own risk to code your own command " +"handlers into it. Luckily, you can take a page out of discord.js' book if" +" you want to do this, since they've never heard of an external command " +"handler framework before in their entire life." +msgstr "" + +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 +msgid "" +"I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " +"execute helper methods!" +msgstr "" + +#: ../../faq.rst:184 +msgid "Probably you are doing something like this:" +msgstr "" + +#: ../../faq.rst:191 +msgid "" +"And the error occurs in the line where you try to send something. You can" +" fix this easy by adding one argument:" +msgstr "" + +#: ../../faq.rst:198 +msgid "" +"You have to add this extra argument for every object you instantiate by " +"yourself if you want to use it's methods" +msgstr "" + +#: ../../faq.rst:202 +msgid "" +"Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" +" Why?" +msgstr "" + +#: ../../faq.rst:203 +msgid "" +"At the moment the Discord API does *not* include them into their " +"responses. You can get those object via the ``get_channel()`` and " +"``get_guild()`` methods of the Context and Message model." +msgstr "" + +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" +msgstr "" + +#: ../../faq.rst:209 +msgid "" +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" +msgstr "" + +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/get.po b/docs/locale/es/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/index.po b/docs/locale/es/LC_MESSAGES/index.po new file mode 100644 index 000000000..91465f9df --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/index.po @@ -0,0 +1,249 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../index.rst:47 +msgid "Pages:" +msgstr "" + +#: ../../index.rst:4 +msgid "interactions.py" +msgstr "" + +#: ../../index.rst:5 +msgid "" +"Ever since December 2019, this open-source project has become the " +"culmination of dedication and research towards figuring out the best way " +"to bring **interactions from Discord to you:** we are an easy, simple, " +"scalable and modular library for Discord interactions." +msgstr "" + +#: ../../index.rst:7 +msgid "" +"Tired of using numerous module dependencies for slash commands and " +"buttons?" +msgstr "" + +#: ../../index.rst:8 +msgid "Looking for a compatible library that implements all interactions?" +msgstr "" + +#: ../../index.rst:9 +msgid "Itching to get your hands on slash commands, but in a simple manner?" +msgstr "" + +#: ../../index.rst:11 +msgid "" +"Look no more! The goal of this library is to make all three of these " +"questions go from possibilites to trivial matters." +msgstr "" + +#: ../../index.rst:14 +msgid "What can we do?" +msgstr "" + +#: ../../index.rst:15 +msgid "" +"Our library---inside and out, offers numerous benefits and presents " +"itself as a worthy module in your bot's dependencies:" +msgstr "" + +#: ../../index.rst:17 +msgid "The base features of our library, built with our API include:" +msgstr "" + +#: ../../index.rst:19 +msgid "" +"**Dynamic object data generation**: all event data dispatched from the " +"Gateway is dynamically transformed and generated into two-way " +"serializable JSON objects." +msgstr "" + +#: ../../index.rst:20 +msgid "" +"**Sane rate limiting**: our HTTP client implements pre-emptive rate limit" +" avoidance, so your bot is guaranteed to never hit HTTP ``429``." +msgstr "" + +#: ../../index.rst:21 +msgid "" +"**On-demand cache**: every HTTP request and Gateway event made is cached " +"when needed, so you never have to save information yourself." +msgstr "" + +#: ../../index.rst:22 +msgid "" +"**Simplified data models**: every object presented is accessible as " +"either a raw dictionary/``application/json`` or list of recursive " +"attributes." +msgstr "" + +#: ../../index.rst:24 +msgid "Some more unique features that are exclusive to our interactions include:" +msgstr "" + +#: ../../index.rst:26 +msgid "" +"**Event-triggered callbacks**: whether a component, application command " +"or interaction response, you'll never need to worry about bridging " +"responses." +msgstr "" + +#: ../../index.rst:27 +msgid "" +"**Dual-way decorator logic**: a decorator can act as both a constructor " +"for an interaction, as well as a callback." +msgstr "" + +#: ../../index.rst:28 +msgid "" +"**API-strict naming**: no more confusion with the naming approach of many" +" libraries; we follow the naming style of interactions from the " +"officially curated Discord Developers documentation." +msgstr "" + +#: ../../index.rst:29 +msgid "" +"**Extensive framework structure**: build your own tools and technologies " +"for our library to develop and integrate community creations." +msgstr "" + +#: ../../index.rst:32 +msgid "What do we not offer?" +msgstr "" + +#: ../../index.rst:33 +msgid "" +"While we certainly offer a lot of benefits, we unfortunately have our own" +" downsides:" +msgstr "" + +#: ../../index.rst:36 +msgid "" +"This list is subject to change as time goes on: some of these items may " +"be added to the core of the library in the future." +msgstr "" + +#: ../../index.rst:40 +msgid "No native cooldown decorator/method." +msgstr "" + +#: ../../index.rst:41 +msgid "Lack of automatic sharding and voice clients." +msgstr "" + +#: ../../index.rst:44 +msgid "Where do I start?" +msgstr "" + +#: ../../index.rst:45 +msgid "Please look at our pages below to find out where to go." +msgstr "" + +#: ../../index.rst:58 +msgid "How can I contribute?" +msgstr "" + +#: ../../index.rst:59 +msgid "" +"Please read up on our `contribution requirements`_ for the project. This " +"open-source project also enforces the `MIT License`_." +msgstr "" + +#: ../../index.rst:61 +msgid "This open-source project utilizes the following workflows for development:" +msgstr "" + +#: ../../index.rst:63 +msgid "" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" +" to format and check for severity/QOL-breaking changes." +msgstr "" + +#: ../../index.rst:65 +msgid "**black** ``22.6.0``" +msgstr "" + +#: ../../index.rst:66 +msgid "**flake8** ``4.0.1``" +msgstr "" + +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" +msgstr "" + +#: ../../index.rst:69 +msgid "" +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." +msgstr "" + +#: ../../index.rst:70 +msgid "" +"**Conventional Commits** ``1.0.0``: every commit that we make to our " +"branches use the official specification of CC 1.0.0 to make git graphs " +"easier when improving and refining communication between code reviews, " +"Pull Requests and commits." +msgstr "" + +#: ../../index.rst:73 +msgid "When can I start?" +msgstr "" + +#: ../../index.rst:74 +msgid "" +"We also have some extra ground rules about making any specific " +"contributions involving:" +msgstr "" + +#: ../../index.rst:76 +msgid "" +"We do not accept abstraction-based requests. (e.g. ``colour`` for " +"``color``)" +msgstr "" + +#: ../../index.rst:77 +msgid "A request has to be approved by at least one developer." +msgstr "" + +#: ../../index.rst:78 +msgid "" +"You must be willing to change/adhere to reviews from participants **where" +" necessary.**" +msgstr "" + +#: ../../index.rst:81 +msgid "I think I'm all ready!" +msgstr "" + +#: ../../index.rst:82 +msgid "Feel free to begin making `Pull Requests`_ and `Issues`_ on our GitHub!" +msgstr "" + +#: ../../index.rst:85 +msgid "Advanced Search" +msgstr "" + +#: ../../index.rst:87 +msgid ":ref:`genindex`" +msgstr "" + +#: ../../index.rst:88 +msgid ":ref:`modindex`" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/migration.po b/docs/locale/es/LC_MESSAGES/migration.po new file mode 100644 index 000000000..9f0d8e6aa --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/migration.po @@ -0,0 +1,150 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../migration.rst:2 +msgid "Migration" +msgstr "" + +#: ../../migration.rst:4 +msgid "" +"This page aims to serve as a guide towards helping users understand any " +"breaking or otherwise important design choices made between versions to " +"guide towards easy migration between one another." +msgstr "" + +#: ../../migration.rst:8 +msgid "4.0.1 → 4.0.2" +msgstr "" + +#: ../../migration.rst:10 +msgid "" +"The biggest major change between these two versions is the way " +"``HTTPClient`` and modelled API schema objects are used. In ``4.0.2``, a " +"new ``_client`` attribute is added in model objects in order to use " +"helper methods. This will not be needed if you're working with dispatched" +" events from the Gateway, however, manually generating your own model " +"object for use will need it appended as a key-word argument. The example " +"below shows this change:" +msgstr "" + +#: ../../migration.rst:25 +msgid "" +"This change was added in favor for being able to use endpoints in an " +"abstracted state." +msgstr "" + +#: ../../migration.rst:28 +msgid "4.0.2 → 4.1.0" +msgstr "" + +#: ../../migration.rst:30 +msgid "" +"``4.1.0`` introduces numerous breaking changes that affect the bot " +"developers' ability to work with mainly modifying the way our Gateway " +"processes information, as well as supplying a ``reason`` argument to " +"``HTTPClient``-based methods." +msgstr "" + +#: ../../migration.rst:33 +msgid "" +"In this version, you are no longer required to give a ``reason`` for " +"every HTTP request. You can instead send it as an optional, which will " +"work to keep any existing modifications of our codebase from breaking." +msgstr "" + +#: ../../migration.rst:36 +msgid "" +"Additionally, modifying the way information is dispatched from the " +"Gateway must be done like this now:" +msgstr "" + +#: ../../migration.rst:49 +msgid "" +"We recommend that working in correspondence with this, you should be " +"making use of our ``interactions.ext`` SDK framework." +msgstr "" + +#: ../../migration.rst:51 +msgid "" +"A slight, yet another breaking change we made was dundering numerous " +"attributes in our internal models. You will now need to refer to the " +"client's HTTP object as ``_http`` instead of ``http``. In order to view " +"the full list of these, we highly encourage you to view the documentation" +" readily available." +msgstr "" + +#: ../../migration.rst:55 +msgid "" +"The last, and most major change is the introduction of the " +"``MESSAGE_CONTENT`` privileged intent in the library. Because of " +"``4.1.0`` using version 10 of the Discord API, this intent is now " +"required for reading all message content. In order to make sure your bot " +"works still, you will need to enable this intent in your bot's developer " +"portal and add the intent to your current intents when connecting:" +msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.command.po b/docs/locale/es/LC_MESSAGES/models.command.po new file mode 100644 index 000000000..5c72da5b0 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/models.command.po @@ -0,0 +1,527 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.command.rst:4 +msgid "Application Command Models" +msgstr "" + +#: interactions.client.models.command.Choice:1 of +msgid "A class object representing the choice of an option." +msgstr "" + +#: interactions.client.models.command.Choice:4 of +msgid "" +"``value`` allows ``float`` as a passable value type, whereas it's " +"supposed to be ``double``." +msgstr "" + +#: interactions.client.models.command.Choice:7 of +msgid "The structure for a choice:" +msgstr "" + +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission of +msgid "Variables" +msgstr "" + +#: interactions.client.models.command.Choice:13 of +msgid "The name of the choice." +msgstr "" + +#: interactions.client.models.command.Choice:14 of +msgid "The returned value of the choice." +msgstr "" + +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of +msgid "" +"The dictionary of localization for the ``name`` field. This enforces the " +"same restrictions as the ``name`` field." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.command.Option:1 of +msgid "A class object representing the option of an application command." +msgstr "" + +#: interactions.client.models.command.Option:4 of +msgid "``options`` is only present for when a subcommand has been established." +msgstr "" + +#: interactions.client.models.command.Option:7 of +msgid "" +"``min_values`` and ``max_values`` are useful primarily for integer based " +"options." +msgstr "" + +#: interactions.client.models.command.Option:10 of +msgid "The structure for an option:" +msgstr "" + +#: interactions.client.models.command.Option:22 of +msgid "The type of option." +msgstr "" + +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of +msgid "The name of the option." +msgstr "" + +#: interactions.client.models.command.Option:24 of +msgid "The description of the option." +msgstr "" + +#: interactions.client.models.command.Option:25 of +msgid "Whether the option is currently being autocompleted or not." +msgstr "" + +#: interactions.client.models.command.Option:26 of +msgid "Whether the option has to be filled out." +msgstr "" + +#: interactions.client.models.command.Option:27 of +msgid "The value that's currently typed out, if autocompleting." +msgstr "" + +#: interactions.client.models.command.Option:28 of +msgid "The list of choices to select from." +msgstr "" + +#: interactions.client.models.command.Option:29 of +msgid "The list of subcommand options included." +msgstr "" + +#: interactions.client.models.command.Option:30 of +msgid "Restrictive shown channel types, if given." +msgstr "" + +#: interactions.client.models.command.Option:31 of +msgid "The minimum value supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:32 of +msgid "The maximum value supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:33 of +msgid "A status denoting whether this option is an autocomplete option." +msgstr "" + +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of +msgid "" +"The dictionary of localization for the ``description`` field. This " +"enforces the same restrictions as the ``description`` field." +msgstr "" + +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + +#: interactions.client.models.command.Permission:1 of +msgid "A class object representing the permission of an application command." +msgstr "" + +#: interactions.client.models.command.Permission:3 of +msgid "The structure for a permission:" +msgstr "" + +#: interactions.client.models.command.Permission:12 of +msgid "The ID of the permission." +msgstr "" + +#: interactions.client.models.command.Permission:13 of +msgid "The type of permission." +msgstr "" + +#: interactions.client.models.command.Permission:14 of +msgid "The permission state. ``True`` for allow, ``False`` for disallow." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:1 of +msgid "A class object representing all types of commands." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:4 of +msgid "" +"This object is inferred upon whenever the client is caching information " +"about commands from an HTTP request and/or the Gateway. Do not use this " +"object for declaring commands." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:8 of +msgid "The ID of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:9 of +msgid "The application command type." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:10 of +msgid "The general application ID of the command itself." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:11 of +msgid "The guild ID of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:12 of +msgid "The name of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:13 of +msgid "The description of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:14 of +msgid "The \"options\"/arguments of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:15 of +msgid "The default permission accessibility state of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:16 of +msgid "The Application Command version autoincrement identifier." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:17 of +msgid "The default member permission state of the application command." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:18 of +msgid "The application permissions if executed in a Direct Message." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:19 of +msgid "The localisation dictionary for the application command name, if any." +msgstr "" + +#: interactions.client.models.command.ApplicationCommand:20 of +msgid "" +"The localisation dictionary for the application command description, if " +"any." +msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.component.po b/docs/locale/es/LC_MESSAGES/models.component.po new file mode 100644 index 000000000..ae186054c --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/models.component.po @@ -0,0 +1,342 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.component.rst:4 +msgid "Component Models" +msgstr "" + +#: interactions.client.models.component.SelectOption:1 of +msgid "" +"A class object representing the select option of a select menu. The " +"structure for a select option: ::" +msgstr "" + +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Variables" +msgstr "" + +#: interactions.client.models.component.SelectOption:8 of +msgid "The label of the select option." +msgstr "" + +#: interactions.client.models.component.SelectOption:9 of +msgid "The returned value of the select option." +msgstr "" + +#: interactions.client.models.component.SelectOption:10 of +msgid "The description of the select option." +msgstr "" + +#: interactions.client.models.component.SelectOption:11 of +msgid "The emoji used alongside the label of the select option." +msgstr "" + +#: interactions.client.models.component.SelectOption:12 of +msgid "Whether the select option is the default for the select menu." +msgstr "" + +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.component.SelectMenu:1 of +msgid "" +"A class object representing the select menu of a component. The structure" +" for a select menu: ::" +msgstr "" + +#: interactions.client.models.component.SelectMenu:8 of +msgid "The type of select menu. Always defaults to ``3``." +msgstr "" + +#: interactions.client.models.component.SelectMenu:9 of +msgid "The customized \"ID\" of the select menu." +msgstr "" + +#: interactions.client.models.component.SelectMenu:10 of +msgid "The list of select options in the select menu." +msgstr "" + +#: interactions.client.models.component.SelectMenu:11 of +msgid "The placeholder of the select menu." +msgstr "" + +#: interactions.client.models.component.Component:19 +#: interactions.client.models.component.SelectMenu:12 of +msgid "The minimum \"options\"/values to choose from the component." +msgstr "" + +#: interactions.client.models.component.Component:20 +#: interactions.client.models.component.SelectMenu:13 of +msgid "The maximum \"options\"/values to choose from the component." +msgstr "" + +#: interactions.client.models.component.SelectMenu:14 of +msgid "Whether the select menu is unable to be used." +msgstr "" + +#: interactions.client.models.component.Button:1 of +msgid "" +"A class object representing the button of a component. The structure for " +"a button: ::" +msgstr "" + +#: interactions.client.models.component.Button:8 of +msgid "The type of button. Always defaults to ``2``." +msgstr "" + +#: interactions.client.models.component.Button:9 of +msgid "The style of the button." +msgstr "" + +#: interactions.client.models.component.Button:10 of +msgid "The label of the button." +msgstr "" + +#: interactions.client.models.component.Button:11 of +msgid "The emoji used alongside the label of the button." +msgstr "" + +#: interactions.client.models.component.Button:12 of +msgid "The customized \"ID\" of the button." +msgstr "" + +#: interactions.client.models.component.Button:13 of +msgid "The URL route/path of the button." +msgstr "" + +#: interactions.client.models.component.Button:14 of +msgid "Whether the button is unable to be used." +msgstr "" + +#: interactions.client.models.component.Component:1 of +msgid "" +"A class object representing the component in an interaction " +"response/followup." +msgstr "" + +#: interactions.client.models.component.Component:4 of +msgid "" +"``components`` is only applicable if an ActionRow is supported, otherwise" +" ActionRow-less will be opted. ``list`` is in reference to the class." +msgstr "" + +#: interactions.client.models.component.Component:7 of +msgid "" +"This object class is only inferred upon when the gateway is processing " +"back information involving a component. Do not use this object for " +"sending." +msgstr "" + +#: interactions.client.models.component.Component:10 of +msgid "The type of component." +msgstr "" + +#: interactions.client.models.component.Component:11 of +msgid "The customized \"ID\" of the component." +msgstr "" + +#: interactions.client.models.component.Component:12 of +msgid "Whether the component is unable to be used." +msgstr "" + +#: interactions.client.models.component.Component:13 of +msgid "The style of the component." +msgstr "" + +#: interactions.client.models.component.Component:14 of +msgid "The label of the component." +msgstr "" + +#: interactions.client.models.component.Component:15 of +msgid "The emoji used alongside the label of the component." +msgstr "" + +#: interactions.client.models.component.Component:16 of +msgid "The URl route/path of the component." +msgstr "" + +#: interactions.client.models.component.Component:17 of +msgid "The \"choices\"/options of the component." +msgstr "" + +#: interactions.client.models.component.Component:18 of +msgid "The placeholder text/value of the component." +msgstr "" + +#: interactions.client.models.component.Component:21 of +msgid "A list of components nested in the component." +msgstr "" + +#: interactions.client.models.component.Component:22 of +msgid "The minimum input length to choose from the component." +msgstr "" + +#: interactions.client.models.component.Component:23 of +msgid "The maximum input length to choose from the component." +msgstr "" + +#: interactions.client.models.component.Component:24 of +msgid "Whether this component is required to be filled." +msgstr "" + +#: interactions.client.models.component.Component:25 of +msgid "The pre-filled value of the component." +msgstr "" + +#: interactions.client.models.component.TextInput:1 of +msgid "" +"A class object representing the text input of a modal. The structure for " +"a text input: ::" +msgstr "" + +#: interactions.client.models.component.TextInput:10 of +msgid "The type of input. Always defaults to ``4``." +msgstr "" + +#: interactions.client.models.component.TextInput:11 of +msgid "The style of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:12 of +msgid "The custom Id of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:13 of +msgid "The label of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:14 of +msgid "The pre-filled value of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:15 of +msgid "Whether the input is required or not." +msgstr "" + +#: interactions.client.models.component.TextInput:16 of +msgid "The placeholder of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:17 of +msgid "The minimum length of the input." +msgstr "" + +#: interactions.client.models.component.TextInput:18 of +msgid "The maximum length of the input." +msgstr "" + +#: interactions.client.models.component.Modal:1 of +msgid "A class object representing a modal." +msgstr "" + +#: interactions.client.models.component.Modal:8 of +msgid "The structure for a modal: ::" +msgstr "" + +#: interactions.client.models.component.Modal:6 of +msgid "interactions.Modal(" +msgstr "" + +#: interactions.client.models.component.Modal:5 of +msgid "" +"title=\"Application Form\", custom_id=\"mod_app_form\", " +"components=[interactions.TextInput(...)]," +msgstr "" + +#: interactions.client.models.component.Modal:8 of +msgid ")" +msgstr "" + +#: interactions.client.models.component.Modal:10 of +msgid "The custom ID of the modal." +msgstr "" + +#: interactions.client.models.component.Modal:11 of +msgid "The title of the modal." +msgstr "" + +#: interactions.client.models.component.Modal:12 of +msgid "The components of the modal." +msgstr "" + +#: interactions.client.models.component.ActionRow:1 of +msgid "" +"A class object representing the action row for interaction responses " +"holding components." +msgstr "" + +#: interactions.client.models.component.ActionRow:4 of +msgid "" +"A message cannot have more than 5 ActionRow's supported. An ActionRow may" +" also support only 1 text input component only." +msgstr "" + +#: interactions.client.models.component.ActionRow:13 of +msgid "The structure for an action row: ::" +msgstr "" + +#: interactions.client.models.component.ActionRow:9 of +msgid "" +"# \"...\" represents a component object. # Method 1: " +"interactions.ActionRow(...) # Method 2: " +"interactions.ActionRow(components=[...])" +msgstr "" + +#: interactions.client.models.component.ActionRow:15 of +msgid "The type of component. Always defaults to ``1``." +msgstr "" + +#: interactions.client.models.component.ActionRow:16 of +msgid "A list of components the ActionRow has, if any." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.misc.po b/docs/locale/es/LC_MESSAGES/models.misc.po new file mode 100644 index 000000000..9ea8f4346 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/models.misc.po @@ -0,0 +1,151 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.misc.rst:4 +msgid "Miscellaneous Models" +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:1 of +msgid "A class representing the resolved information of an interaction data." +msgstr "" + +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Variables" +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:3 of +msgid "The resolved users data." +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:4 of +msgid "The resolved members data." +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:5 of +msgid "The resolved roles data." +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:6 of +msgid "The resolved channels data." +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:7 of +msgid "The resolved messages data." +msgstr "" + +#: interactions.client.models.misc.InteractionResolvedData:8 of +msgid "The resolved attachments data." +msgstr "" + +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.misc.InteractionData:1 of +msgid "A class object representing the data of an interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:3 of +msgid "The ID of the interaction data." +msgstr "" + +#: interactions.client.models.misc.InteractionData:4 of +msgid "The name of the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:5 of +msgid "The type of command from the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:6 of +msgid "The resolved version of the data." +msgstr "" + +#: interactions.client.models.misc.InteractionData:7 of +msgid "The options of the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:8 of +msgid "The custom ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:9 of +msgid "The type of component from the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:10 of +msgid "The values of the selected options in the interaction." +msgstr "" + +#: interactions.client.models.misc.InteractionData:11 of +msgid "The targeted ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:1 of +msgid "A class object representing an interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:3 of +msgid "The ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:4 of +msgid "The application's ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:5 of +msgid "The type of interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:6 of +msgid "The data of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:7 of +msgid "The guild ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:8 of +msgid "The channel ID of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:9 of +msgid "The member who invoked the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:10 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:11 of +msgid "The token of the interaction." +msgstr "" + +#: interactions.client.models.misc.Interaction:12 of +msgid "The version of the interaction as an autoincrement identifier." +msgstr "" + +#: interactions.client.models.misc.Interaction:13 of +msgid "The message of the interaction." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.po b/docs/locale/es/LC_MESSAGES/models.po new file mode 100644 index 000000000..04da90614 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/models.po @@ -0,0 +1,23 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.rst:4 +msgid "Interaction Models" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.utils.po b/docs/locale/es/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/quickstart.po b/docs/locale/es/LC_MESSAGES/quickstart.po new file mode 100644 index 000000000..89ed78f26 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/quickstart.po @@ -0,0 +1,675 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../quickstart.rst:2 +msgid "Quickstart" +msgstr "" + +#: ../../quickstart.rst:5 +msgid "Installing" +msgstr "" + +#: ../../quickstart.rst:7 +msgid "" +"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" +" library in Python has to be installed through the `pip` file. Run this " +"in your terminal/command line in order to install our library:" +msgstr "" + +#: ../../quickstart.rst:11 +msgid "``pip install -U discord-py-interactions``" +msgstr "" + +#: ../../quickstart.rst:14 +msgid "Creating a Bot" +msgstr "" + +#: ../../quickstart.rst:16 +msgid "" +"Before you can run your Bot, you have to create it first. If you did it " +"already, make sure you :ref:`invited ` your Bot properly." +msgstr "" + +#: ../../quickstart.rst:18 +msgid "" +"In order to create your Bot, you need to create an application first. Go " +"to the `discord applications page`_ for that. After you logged in, you " +"will see this at the top:" +msgstr "" + +#: ../../quickstart.rst:23 +msgid "" +"Click the ``New Application`` button, enter a name and then click " +"``create``." +msgstr "" + +#: ../../quickstart.rst:25 +msgid "The name you choose is going to be your Bots name." +msgstr "" + +#: ../../quickstart.rst:27 +msgid "You will be redirected to a new page. On the left you will see this:" +msgstr "" + +#: ../../quickstart.rst:31 +msgid "" +"Click on ``Bot``. You again will be redirected to another page, looking " +"like this:" +msgstr "" + +#: ../../quickstart.rst:35 +msgid "Click on ``Add Bot`` and then on ``Yes, do it!``." +msgstr "" + +#: ../../quickstart.rst:37 +msgid "And that's it! You created your Bot!" +msgstr "" + +#: ../../quickstart.rst:40 +msgid "" +"You will see a field called ``TOKEN``. This is the access token, used to " +"run your bot. You will need this later to start your Bot." +msgstr "" + +#: ../../quickstart.rst:43 +msgid "" +"**Do NOT give this to other persons! They can get full control over your " +"Bot with your token and execute what they want!**" +msgstr "" + +#: ../../quickstart.rst:45 +msgid "" +"If you revealed your token, you should **immediately** go to your Bots " +"application page and click the ``Regenerate`` Button under your token. " +"This will delete the old token, so your bot can't be run with it anymore." +msgstr "" + +#: ../../quickstart.rst:49 +msgid "Invite the Bot to your guild" +msgstr "" + +#: ../../quickstart.rst:50 +msgid "" +"Now you have a Bot, but you can't create commands because it isn't in any" +" guilds. So, let's invite it to your guild!" +msgstr "" + +#: ../../quickstart.rst:54 +msgid "Click on ``OAuth2``, then on ``URL Generator``." +msgstr "" + +#: ../../quickstart.rst:56 +msgid "" +"You have to enable the ``bot`` and ``application.commands`` scope, to " +"allow your bot to create slash commands." +msgstr "" + +#: ../../quickstart.rst:60 +msgid "" +"After setting that up, a ``BOT PERMISSIONS`` field will appear. You can " +"choose permissions you want to have your bot there." +msgstr "" + +#: ../../quickstart.rst:62 +msgid "" +"When you are done with choosing the permissions, go to the bottom of the " +"page, copy the the url and open it in a new window." +msgstr "" + +#: ../../quickstart.rst:64 +msgid "" +"You will be prompted to a new page. Select your guild, click " +"``Authorise`` and your Bot should show up in your guild." +msgstr "" + +#: ../../quickstart.rst:66 +msgid "Now you can go on with running your bot and creating your first commands!" +msgstr "" + +#: ../../quickstart.rst:71 +msgid "Running the Bot and creating commands" +msgstr "" + +#: ../../quickstart.rst:73 +msgid "" +"Bots can be a little confusing to create. That's why we've decided to try" +" and make the process as streamlined as humanly possible, in order for it" +" to be friendlier to understand for our fellow bot developers. Please " +"note that **a Discord bot should not be your first project if you're " +"learning how to code**. There are plenty of other projects to consider " +"first before this, as a Discord bot is not exactly beginner-friendly." +msgstr "" + +#: ../../quickstart.rst:81 +msgid "First, let's run the bot:" +msgstr "" + +#: ../../quickstart.rst:92 +msgid "And that's it! Your bot should now turn online in discord!" +msgstr "" + +#: ../../quickstart.rst:94 +msgid "Let's take a look now at what is happening here:" +msgstr "" + +#: ../../quickstart.rst:96 +msgid "" +"``import interactions`` -- This is the import line. If this returns a " +"``ModuleNotFoundError``, please look at our section on how to " +":ref:`install ` here." +msgstr "" + +#: ../../quickstart.rst:97 +msgid "" +"``bot = interactions.Client(token=\"your_secret_bot_token\")`` -- This is" +" the ``bot`` variable that defines our bot. This basically instantiates " +"the :ref:`application client `, which requires a " +"``token`` keyword-argument to be passed. You have to put in your " +"(previously mentioned) secret token here." +msgstr "" + +#: ../../quickstart.rst:98 +msgid "" +"``bot.start()`` -- Finally, this is what tells our library to turn your " +"bot from offline to online." +msgstr "" + +#: ../../quickstart.rst:102 +msgid "Now, let's create our first slash command:" +msgstr "" + +#: ../../quickstart.rst:120 +msgid "Now, let's look what the new parts of the code are doing:" +msgstr "" + +#: ../../quickstart.rst:122 +msgid "" +"``@bot.command()`` -- This is something known as a *decorator* in Python." +" This decorator is in charge and responsible of making sure that the " +"Discord API is told about the slash/sub command that you wish to create, " +"and sends an HTTP request correspondingly. Any changes to the information" +" contained in this decorator will be synchronously updated with the API " +"automatically for you. The ``scope`` field shown here is optional, which " +"represents a guild command if you wish to have a command appear in only " +"specific servers that bot is in. This can be a guild object or the ID." +msgstr "" + +#: ../../quickstart.rst:123 +msgid "``name`` -- This is the name of your command." +msgstr "" + +#: ../../quickstart.rst:124 +msgid "``description`` -- This is the description of your command." +msgstr "" + +#: ../../quickstart.rst:125 +msgid "" +"``async def my_first_command(ctx: interactions.CommandContext):`` -- This" +" here is called our \"command coroutine,\" or what our library internally" +" calls upon each time it recognizes an interaction event from the Discord" +" API that affiliates with the data we've put into the decorator above it." +" Please note that ``ctx`` is an abbreviation for :ref:`context " +"`." +msgstr "" + +#: ../../quickstart.rst:126 +msgid "" +"``await ctx.send(\"Hi there!\")`` -- This sends the response to your " +"command." +msgstr "" + +#: ../../quickstart.rst:128 +msgid "Here is another way we can create the same command:" +msgstr "" + +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 +msgid "Difference between global and guild slash commands:" +msgstr "" + +#: ../../quickstart.rst:156 +msgid "" +"guild slash commands are instantly available in the guild with the given " +"id. In order to copy your guild ID you have to enable the developer mode " +"in discord and then right-click on the guild. This is also shown in the " +"pictures beyond." +msgstr "" + +#: ../../quickstart.rst:157 +msgid "" +"global commands are created by *not* including the ``scope`` argument " +"into the ``@bot.command`` decorator. They will appear in all guilds your " +"Bot is in. This process can take up to one hour to be completed on all " +"guilds." +msgstr "" + +#: ../../quickstart.rst:164 +msgid "Next, let's create an Option" +msgstr "" + +#: ../../quickstart.rst:166 +msgid "" +":ref:`Options ` are extra " +"arguments of a command, filled in by the user executing the command." +msgstr "" + +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 +msgid "The limit for options per command is 25." +msgstr "" + +#: ../../quickstart.rst:218 +msgid "Nested commands: subcommands" +msgstr "" + +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." +msgstr "" + +#: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 +msgid "Special type of commands: Context menus" +msgstr "" + +#: ../../quickstart.rst:387 +msgid "" +"While, granted that application commands are way more intuitive and " +"easier to work with as both a bot developer and user from a UX approach, " +"some may not want to always type the same command over and over again to " +"repeat a repetitive task. Introducing: **context menus.** Also known as " +"\"user\" and \"message\" respectively, this simple switch in command " +"structure allows you to quickly empower your bot with the ability to make" +" right-click actions with menial effort." +msgstr "" + +#: ../../quickstart.rst:393 +msgid "" +"In order to create a menu-based command, all you need to do is simply add" +" this one line into your ``@command`` decorator:" +msgstr "" + +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 +msgid "" +"The structure of a menu command differs significantly from that of a " +"regular one:" +msgstr "" + +#: ../../quickstart.rst:417 +msgid "You cannot have any options or choices." +msgstr "" + +#: ../../quickstart.rst:418 +msgid "You cannot have a description." +msgstr "" + +#: ../../quickstart.rst:419 +msgid "The ``name`` filter follows a different regex pattern." +msgstr "" + +#: ../../quickstart.rst:422 +msgid "Creating and sending Components" +msgstr "" + +#: ../../quickstart.rst:424 +msgid "" +"Being able to run your own commands is very useful for a lot of " +"automation-related purposes as a bot developer, however, we also have " +"something that we're able to introduce for both the developer and a user " +"to use that will be the \"sprinkles\" on top of a cupcake, so-to-speak: " +"components." +msgstr "" + +#: ../../quickstart.rst:429 +msgid "" +"Components are ways of being able to select pre-defined data, or define " +"your own. They're very simple but quite powerful when put into practice " +"This code block below shows a simplified implementation of a component:" +msgstr "" + +#: ../../quickstart.rst:455 +msgid "" +"This is a design that we ended up choosing to simplify responding to " +"buttons when someone presses on one, and to allow bot developers to plug " +"in *which* button they want a response to. No more ``wait_for_component``" +" and ``wait_for`` functions with huge if-else chains; this removes " +"redundancy in your code and overall eases into the practice of " +"modularity." +msgstr "" + +#: ../../quickstart.rst:462 +msgid "What kinds of components are there?" +msgstr "" + +#: ../../quickstart.rst:464 +msgid "" +"As a bot developer, this may be fairly important for you to want to know." +" Different components provide difference user experiences, interactions " +"and results. Currently you can choose between three components that " +"Discord provides: a ``Button``, ``SelectMenu`` and ``TextInput``. You're " +"able to `find these component types`_ here." +msgstr "" + +#: ../../quickstart.rst:471 +msgid "How do I send components in a row?" +msgstr "" + +#: ../../quickstart.rst:473 +msgid "" +"You are also able to organize these components into rows, which are " +"defined as ``ActionRow``'s. It is worth noting that you can have only a " +"maximum of 5 per message that you send. This code block below shows how:" +msgstr "" + +#: ../../quickstart.rst:505 +msgid "" +"By default, the ``components`` keyword-argument field in the context " +"sending method will always support ``ActionRow``-less sending: you only " +"need to declare rows whenever you need or want to. This field will also " +"support raw arrays and tables, if you so wish to choose to not use our " +"class objects instead." +msgstr "" + +#: ../../quickstart.rst:511 +msgid "" +"You cannot use ``TextInput`` with the above shown method. Look :ref:`here" +" ` how to create and send them." +msgstr "" + +#: ../../quickstart.rst:516 +msgid "Creating a TextInput" +msgstr "" + +#: ../../quickstart.rst:517 +msgid "You want to get a Text from a user? You can use ``TextInput`` for that." +msgstr "" + +#: ../../quickstart.rst:529 +msgid "" +"But how to send it? You can't use ``ctx.send`` for it. Take a look at " +":ref:`Modals ` for that." +msgstr "" + +#: ../../quickstart.rst:533 +msgid "Modals" +msgstr "" + +#: ../../quickstart.rst:534 +msgid "" +"Modals are a new way to interact with a user. Currently only a " +"``TextInput`` component is supported. You can have up to five " +"``TextInput`` in a Modal." +msgstr "" + +#: ../../quickstart.rst:547 +msgid "with the ``TextInput`` example from above we get:" +msgstr "" + +#: ../../quickstart.rst:552 +msgid "Responding to a Modal interaction" +msgstr "" + +#: ../../quickstart.rst:560 +msgid "" +"You can respond to a modal the same way as you would respond to a normal " +"``chat-input`` command, except your function has an extra argument for " +"the text what was put into the modal." +msgstr "" + +#: ../../quickstart.rst:563 +msgid "Adding v2 Permissions" +msgstr "" + +#: ../../quickstart.rst:565 +msgid "" +"v2 permissions consist of the ``default_member_permissions`` and " +"``dm_permission`` keyword arguments. Similar to adding privileged " +"intents, you add permissions (like admin-only, ``BAN_MEMBERS``-only, " +"etc.) as follows:" +msgstr "" + +#: ../../quickstart.rst:604 +msgid "" +"Adding guild-only commands is easier as the only thing it takes is a " +"boolean. Here's an example of a guild-only command:" +msgstr "" + +#: ../../quickstart.rst:623 +msgid "" +"Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " +"Just to note that this argument's mainly used for global commands. Guild " +"commands with this argument will have no effect." +msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.cache.po b/docs/locale/fr/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/fr/LC_MESSAGES/api.cache.po +++ b/docs/locale/fr/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.dispatch.po b/docs/locale/fr/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/fr/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/fr/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.enums.po b/docs/locale/fr/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.enums.po +++ b/docs/locale/fr/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.error.po b/docs/locale/fr/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/fr/LC_MESSAGES/api.error.po +++ b/docs/locale/fr/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.gateway.po b/docs/locale/fr/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/fr/LC_MESSAGES/api.gateway.po +++ b/docs/locale/fr/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/fr/LC_MESSAGES/api.http.po b/docs/locale/fr/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/fr/LC_MESSAGES/api.http.po +++ b/docs/locale/fr/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.channel.po b/docs/locale/fr/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.flags.po b/docs/locale/fr/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.guild.po b/docs/locale/fr/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/fr/LC_MESSAGES/api.models.gw.po b/docs/locale/fr/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.member.po b/docs/locale/fr/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.member.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.message.po b/docs/locale/fr/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.message.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.misc.po b/docs/locale/fr/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.po b/docs/locale/fr/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.presence.po b/docs/locale/fr/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/fr/LC_MESSAGES/api.models.role.po b/docs/locale/fr/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.role.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.team.po b/docs/locale/fr/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.team.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.user.po b/docs/locale/fr/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.user.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.webhook.po b/docs/locale/fr/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.po b/docs/locale/fr/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.po +++ b/docs/locale/fr/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/client.po b/docs/locale/fr/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/fr/LC_MESSAGES/client.po +++ b/docs/locale/fr/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/context.po b/docs/locale/fr/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/fr/LC_MESSAGES/context.po +++ b/docs/locale/fr/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/fr/LC_MESSAGES/enums.po b/docs/locale/fr/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/fr/LC_MESSAGES/enums.po +++ b/docs/locale/fr/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/events.po b/docs/locale/fr/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/ext.base.po b/docs/locale/fr/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.base.po +++ b/docs/locale/fr/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/fr/LC_MESSAGES/ext.converter.po b/docs/locale/fr/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.converter.po +++ b/docs/locale/fr/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/fr/LC_MESSAGES/ext.error.po b/docs/locale/fr/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.error.po +++ b/docs/locale/fr/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/fr/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/fr/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/fr/LC_MESSAGES/ext.po b/docs/locale/fr/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.po +++ b/docs/locale/fr/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/fr/LC_MESSAGES/ext.version.po b/docs/locale/fr/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.version.po +++ b/docs/locale/fr/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/fr/LC_MESSAGES/faq.po b/docs/locale/fr/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/fr/LC_MESSAGES/faq.po +++ b/docs/locale/fr/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/get.po b/docs/locale/fr/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/index.po b/docs/locale/fr/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/fr/LC_MESSAGES/index.po +++ b/docs/locale/fr/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/migration.po b/docs/locale/fr/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/fr/LC_MESSAGES/migration.po +++ b/docs/locale/fr/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.command.po b/docs/locale/fr/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/fr/LC_MESSAGES/models.command.po +++ b/docs/locale/fr/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.component.po b/docs/locale/fr/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/fr/LC_MESSAGES/models.component.po +++ b/docs/locale/fr/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.misc.po b/docs/locale/fr/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/fr/LC_MESSAGES/models.misc.po +++ b/docs/locale/fr/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.po b/docs/locale/fr/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/fr/LC_MESSAGES/models.po +++ b/docs/locale/fr/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/fr/LC_MESSAGES/models.utils.po b/docs/locale/fr/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/quickstart.po b/docs/locale/fr/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/fr/LC_MESSAGES/quickstart.po +++ b/docs/locale/fr/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.cache.po b/docs/locale/hi/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/hi/LC_MESSAGES/api.cache.po +++ b/docs/locale/hi/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.dispatch.po b/docs/locale/hi/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/hi/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/hi/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.enums.po b/docs/locale/hi/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.enums.po +++ b/docs/locale/hi/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.error.po b/docs/locale/hi/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/hi/LC_MESSAGES/api.error.po +++ b/docs/locale/hi/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.gateway.po b/docs/locale/hi/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/hi/LC_MESSAGES/api.gateway.po +++ b/docs/locale/hi/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/hi/LC_MESSAGES/api.http.po b/docs/locale/hi/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/hi/LC_MESSAGES/api.http.po +++ b/docs/locale/hi/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.channel.po b/docs/locale/hi/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.flags.po b/docs/locale/hi/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.guild.po b/docs/locale/hi/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/hi/LC_MESSAGES/api.models.gw.po b/docs/locale/hi/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.member.po b/docs/locale/hi/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.member.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.message.po b/docs/locale/hi/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.message.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.misc.po b/docs/locale/hi/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.po b/docs/locale/hi/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.presence.po b/docs/locale/hi/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/hi/LC_MESSAGES/api.models.role.po b/docs/locale/hi/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.role.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.team.po b/docs/locale/hi/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.team.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.user.po b/docs/locale/hi/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.user.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.webhook.po b/docs/locale/hi/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.po b/docs/locale/hi/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.po +++ b/docs/locale/hi/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/client.po b/docs/locale/hi/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/hi/LC_MESSAGES/client.po +++ b/docs/locale/hi/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/context.po b/docs/locale/hi/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/hi/LC_MESSAGES/context.po +++ b/docs/locale/hi/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/hi/LC_MESSAGES/enums.po b/docs/locale/hi/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/hi/LC_MESSAGES/enums.po +++ b/docs/locale/hi/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/events.po b/docs/locale/hi/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/ext.base.po b/docs/locale/hi/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.base.po +++ b/docs/locale/hi/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/hi/LC_MESSAGES/ext.converter.po b/docs/locale/hi/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.converter.po +++ b/docs/locale/hi/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/hi/LC_MESSAGES/ext.error.po b/docs/locale/hi/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.error.po +++ b/docs/locale/hi/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/hi/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/hi/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/hi/LC_MESSAGES/ext.po b/docs/locale/hi/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.po +++ b/docs/locale/hi/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/hi/LC_MESSAGES/ext.version.po b/docs/locale/hi/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.version.po +++ b/docs/locale/hi/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/hi/LC_MESSAGES/faq.po b/docs/locale/hi/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/hi/LC_MESSAGES/faq.po +++ b/docs/locale/hi/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/get.po b/docs/locale/hi/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/index.po b/docs/locale/hi/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/hi/LC_MESSAGES/index.po +++ b/docs/locale/hi/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/migration.po b/docs/locale/hi/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/hi/LC_MESSAGES/migration.po +++ b/docs/locale/hi/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.command.po b/docs/locale/hi/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/hi/LC_MESSAGES/models.command.po +++ b/docs/locale/hi/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.component.po b/docs/locale/hi/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/hi/LC_MESSAGES/models.component.po +++ b/docs/locale/hi/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.misc.po b/docs/locale/hi/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/hi/LC_MESSAGES/models.misc.po +++ b/docs/locale/hi/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.po b/docs/locale/hi/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/hi/LC_MESSAGES/models.po +++ b/docs/locale/hi/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/hi/LC_MESSAGES/models.utils.po b/docs/locale/hi/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/quickstart.po b/docs/locale/hi/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/hi/LC_MESSAGES/quickstart.po +++ b/docs/locale/hi/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.cache.po b/docs/locale/it/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/it/LC_MESSAGES/api.cache.po +++ b/docs/locale/it/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.dispatch.po b/docs/locale/it/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/it/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/it/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.enums.po b/docs/locale/it/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/it/LC_MESSAGES/api.enums.po +++ b/docs/locale/it/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.error.po b/docs/locale/it/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/it/LC_MESSAGES/api.error.po +++ b/docs/locale/it/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.gateway.po b/docs/locale/it/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/it/LC_MESSAGES/api.gateway.po +++ b/docs/locale/it/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/it/LC_MESSAGES/api.http.po b/docs/locale/it/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/it/LC_MESSAGES/api.http.po +++ b/docs/locale/it/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.channel.po b/docs/locale/it/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/it/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.flags.po b/docs/locale/it/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/it/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.guild.po b/docs/locale/it/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/it/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/it/LC_MESSAGES/api.models.gw.po b/docs/locale/it/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/it/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.member.po b/docs/locale/it/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.member.po +++ b/docs/locale/it/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.message.po b/docs/locale/it/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.message.po +++ b/docs/locale/it/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.misc.po b/docs/locale/it/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/it/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.po b/docs/locale/it/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.po +++ b/docs/locale/it/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/it/LC_MESSAGES/api.models.presence.po b/docs/locale/it/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/it/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/it/LC_MESSAGES/api.models.role.po b/docs/locale/it/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.role.po +++ b/docs/locale/it/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.team.po b/docs/locale/it/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.team.po +++ b/docs/locale/it/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.user.po b/docs/locale/it/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.user.po +++ b/docs/locale/it/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.webhook.po b/docs/locale/it/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/it/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.po b/docs/locale/it/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/it/LC_MESSAGES/api.po +++ b/docs/locale/it/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/client.po b/docs/locale/it/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/it/LC_MESSAGES/client.po +++ b/docs/locale/it/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/context.po b/docs/locale/it/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/it/LC_MESSAGES/context.po +++ b/docs/locale/it/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/it/LC_MESSAGES/enums.po b/docs/locale/it/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/it/LC_MESSAGES/enums.po +++ b/docs/locale/it/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/events.po b/docs/locale/it/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/ext.base.po b/docs/locale/it/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/it/LC_MESSAGES/ext.base.po +++ b/docs/locale/it/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/it/LC_MESSAGES/ext.converter.po b/docs/locale/it/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/it/LC_MESSAGES/ext.converter.po +++ b/docs/locale/it/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/it/LC_MESSAGES/ext.error.po b/docs/locale/it/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/it/LC_MESSAGES/ext.error.po +++ b/docs/locale/it/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/it/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/it/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/it/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/it/LC_MESSAGES/ext.po b/docs/locale/it/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/it/LC_MESSAGES/ext.po +++ b/docs/locale/it/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/it/LC_MESSAGES/ext.version.po b/docs/locale/it/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/it/LC_MESSAGES/ext.version.po +++ b/docs/locale/it/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/it/LC_MESSAGES/faq.po b/docs/locale/it/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/it/LC_MESSAGES/faq.po +++ b/docs/locale/it/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/get.po b/docs/locale/it/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/index.po b/docs/locale/it/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/it/LC_MESSAGES/index.po +++ b/docs/locale/it/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/migration.po b/docs/locale/it/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/it/LC_MESSAGES/migration.po +++ b/docs/locale/it/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.command.po b/docs/locale/it/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/it/LC_MESSAGES/models.command.po +++ b/docs/locale/it/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.component.po b/docs/locale/it/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/it/LC_MESSAGES/models.component.po +++ b/docs/locale/it/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.misc.po b/docs/locale/it/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/it/LC_MESSAGES/models.misc.po +++ b/docs/locale/it/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.po b/docs/locale/it/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/it/LC_MESSAGES/models.po +++ b/docs/locale/it/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/it/LC_MESSAGES/models.utils.po b/docs/locale/it/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/quickstart.po b/docs/locale/it/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/it/LC_MESSAGES/quickstart.po +++ b/docs/locale/it/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.cache.po b/docs/locale/pl/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/pl/LC_MESSAGES/api.cache.po +++ b/docs/locale/pl/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.dispatch.po b/docs/locale/pl/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/pl/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/pl/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.enums.po b/docs/locale/pl/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.enums.po +++ b/docs/locale/pl/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.error.po b/docs/locale/pl/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/pl/LC_MESSAGES/api.error.po +++ b/docs/locale/pl/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.gateway.po b/docs/locale/pl/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/pl/LC_MESSAGES/api.gateway.po +++ b/docs/locale/pl/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/pl/LC_MESSAGES/api.http.po b/docs/locale/pl/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/pl/LC_MESSAGES/api.http.po +++ b/docs/locale/pl/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.channel.po b/docs/locale/pl/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.flags.po b/docs/locale/pl/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.guild.po b/docs/locale/pl/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/pl/LC_MESSAGES/api.models.gw.po b/docs/locale/pl/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.member.po b/docs/locale/pl/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.member.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.message.po b/docs/locale/pl/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.message.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.misc.po b/docs/locale/pl/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.po b/docs/locale/pl/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.presence.po b/docs/locale/pl/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/pl/LC_MESSAGES/api.models.role.po b/docs/locale/pl/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.role.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.team.po b/docs/locale/pl/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.team.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.user.po b/docs/locale/pl/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.user.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.webhook.po b/docs/locale/pl/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.po b/docs/locale/pl/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.po +++ b/docs/locale/pl/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/client.po b/docs/locale/pl/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/pl/LC_MESSAGES/client.po +++ b/docs/locale/pl/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/context.po b/docs/locale/pl/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/pl/LC_MESSAGES/context.po +++ b/docs/locale/pl/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/pl/LC_MESSAGES/enums.po b/docs/locale/pl/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/pl/LC_MESSAGES/enums.po +++ b/docs/locale/pl/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/events.po b/docs/locale/pl/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/ext.base.po b/docs/locale/pl/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.base.po +++ b/docs/locale/pl/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/pl/LC_MESSAGES/ext.converter.po b/docs/locale/pl/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.converter.po +++ b/docs/locale/pl/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/pl/LC_MESSAGES/ext.error.po b/docs/locale/pl/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.error.po +++ b/docs/locale/pl/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/pl/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/pl/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/pl/LC_MESSAGES/ext.po b/docs/locale/pl/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.po +++ b/docs/locale/pl/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/pl/LC_MESSAGES/ext.version.po b/docs/locale/pl/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.version.po +++ b/docs/locale/pl/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/pl/LC_MESSAGES/faq.po b/docs/locale/pl/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/pl/LC_MESSAGES/faq.po +++ b/docs/locale/pl/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/get.po b/docs/locale/pl/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/index.po b/docs/locale/pl/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/pl/LC_MESSAGES/index.po +++ b/docs/locale/pl/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/migration.po b/docs/locale/pl/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/pl/LC_MESSAGES/migration.po +++ b/docs/locale/pl/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.command.po b/docs/locale/pl/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/pl/LC_MESSAGES/models.command.po +++ b/docs/locale/pl/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.component.po b/docs/locale/pl/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/pl/LC_MESSAGES/models.component.po +++ b/docs/locale/pl/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.misc.po b/docs/locale/pl/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/pl/LC_MESSAGES/models.misc.po +++ b/docs/locale/pl/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.po b/docs/locale/pl/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/pl/LC_MESSAGES/models.po +++ b/docs/locale/pl/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/pl/LC_MESSAGES/models.utils.po b/docs/locale/pl/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/quickstart.po b/docs/locale/pl/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/pl/LC_MESSAGES/quickstart.po +++ b/docs/locale/pl/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.cache.po b/docs/locale/ru/LC_MESSAGES/api.cache.po index 43abb1314..355cab3ef 100644 --- a/docs/locale/ru/LC_MESSAGES/api.cache.po +++ b/docs/locale/ru/LC_MESSAGES/api.cache.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,80 +22,77 @@ msgstr "" msgid "Client Cache" msgstr "" -#: interactions.api.cache.Item:1 of -msgid "A class representing the defined item in a stored dataset." +#: interactions.api.cache.Storage:1 of +msgid "A class representing a set of items stored as a cache state." msgstr "" -#: interactions.api.cache.Cache interactions.api.cache.Item -#: interactions.api.cache.Storage of +#: interactions.api.cache.Cache interactions.api.cache.Storage of msgid "Variables" msgstr "" -#: interactions.api.cache.Item:3 interactions.api.cache.Storage.get:3 of -msgid "The ID of the item." +#: interactions.api.cache.Storage:3 of +msgid "The list of items stored." msgstr "" -#: interactions.api.cache.Item:4 of -msgid "The item itself." +#: interactions.api.cache.Cache interactions.api.cache.Storage +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of +msgid "Return type" msgstr "" -#: interactions.api.cache.Item:5 of -msgid "The ID type representation." +#: interactions.api.cache.Storage.merge:1 of +msgid "Merges new data of an item into an already present item of the cache" msgstr "" -#: interactions.api.cache.Storage:1 of -msgid "A class representing a set of items stored as a cache state." +#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get +#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.update +#: of +msgid "Parameters" msgstr "" -#: interactions.api.cache.Storage:3 of -msgid "The list of items stored." +#: interactions.api.cache.Storage.merge:3 of +msgid "The item to merge." msgstr "" -#: interactions.api.cache.Storage.add:1 of -msgid "Adds a new item to the storage." +#: interactions.api.cache.Storage.add:5 interactions.api.cache.Storage.merge:5 +#: of +msgid "The unique id of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Parameters" +#: interactions.api.cache.Storage.add:1 of +msgid "Adds a new item to the storage." msgstr "" #: interactions.api.cache.Storage.add:3 of msgid "The item to add." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Returns" +#: interactions.api.cache.Storage.get:1 of +msgid "Gets an item from the storage." msgstr "" -#: interactions.api.cache.Storage.add:5 of -msgid "The new storage." +#: interactions.api.cache.Storage.get:3 of +msgid "The ID of the item." msgstr "" -#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get -#: interactions.api.cache.Storage.update of -msgid "Return type" +#: interactions.api.cache.Storage.get:5 of +msgid "The default value to return if the item is not found." msgstr "" -#: interactions.api.cache.Storage.get:1 of -msgid "Gets an item from the storage." +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of +msgid "Returns" msgstr "" -#: interactions.api.cache.Storage.get:5 of +#: interactions.api.cache.Storage.get:7 of msgid "The item from the storage if any." msgstr "" #: interactions.api.cache.Storage.update:1 of -msgid "Updates an item from the storage." +msgid "Updates multiple items from the storage." msgstr "" #: interactions.api.cache.Storage.update:3 of -msgid "The item to update." -msgstr "" - -#: interactions.api.cache.Storage.update:4 of -msgid "The updated item, if stored." +msgid "The data to update with." msgstr "" #: interactions.api.cache.Storage.view:1 of @@ -103,7 +100,7 @@ msgid "Views all items from storage." msgstr "" #: interactions.api.cache.Storage.view:3 of -msgid ":return The items stored. :rtype: List[dict]" +msgid "The items stored." msgstr "" #: interactions.api.cache.Cache:1 of @@ -113,33 +110,7 @@ msgid "" msgstr "" #: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" - -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" - -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" - -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" - -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" - -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" - -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" - -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." +msgid "" +"A dictionary denoting the Type and the objects that correspond to the " +"Type." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.dispatch.po b/docs/locale/ru/LC_MESSAGES/api.dispatch.po index b6707ea02..2b020e27a 100644 --- a/docs/locale/ru/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/ru/LC_MESSAGES/api.dispatch.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener +#: interactions.api.dispatch.Listener.dispatch +#: interactions.api.dispatch.Listener.register of +msgid "Return type" +msgstr "" + #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.enums.po b/docs/locale/ru/LC_MESSAGES/api.enums.po index e77ec4bbc..dc817a43e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.enums.po +++ b/docs/locale/ru/LC_MESSAGES/api.enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,3 +34,15 @@ msgid "" "`_ in the Discord API." msgstr "" + +#: interactions.api.enums.OpCodeType of +msgid "Member Type" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.enums.OpCodeType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.error.po b/docs/locale/ru/LC_MESSAGES/api.error.po index 85101f5e4..120e140a5 100644 --- a/docs/locale/ru/LC_MESSAGES/api.error.po +++ b/docs/locale/ru/LC_MESSAGES/api.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,74 +22,40 @@ msgstr "" msgid "Error Exceptions" msgstr "" -#: interactions.api.error.ErrorFormatter:1 of -msgid "A customized error formatting script to return specific errors." -msgstr "" - -#: interactions.api.error.InteractionException:1 of -msgid "An exception class for interactions." -msgstr "" - -#: interactions.api.error.InteractionException:4 of +#: interactions.api.error.LibraryException:1 of msgid "" -"This is a WIP. This isn't meant to be used yet, this is a baseline, and " -"for extensive testing/review before integration. Likewise, this will show" -" the concepts before use, and will be refined when time goes on." -msgstr "" - -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +"A class object representing all errors. If you want more information on " +"what a specific code means, use `e.lookup(code)`" msgstr "" -#: interactions.api.error.GatewayException:3 -#: interactions.api.error.HTTPException:3 -#: interactions.api.error.InteractionException:8 -#: interactions.api.error.JSONException:3 of -msgid "The built-in formatter." +#: interactions.api.error.LibraryException +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" msgstr "" -#: interactions.api.error.GatewayException:4 -#: interactions.api.error.HTTPException:4 -#: interactions.api.error.InteractionException:9 -#: interactions.api.error.JSONException:4 of -msgid "A dictionary containing the values from the built-in Enum." -msgstr "" - -#: interactions.api.error.GatewayException.lookup:1 -#: interactions.api.error.HTTPException.lookup:1 -#: interactions.api.error.InteractionException.lookup:1 -#: interactions.api.error.JSONException.lookup:1 of +#: interactions.api.error.LibraryException._parse:1 of msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.InteractionException.type:1 of -msgid "" -"Grabs the type attribute. Primarily useful to use it in conditions for " -"integral v4 (potential) logic." +#: interactions.api.error.LibraryException._parse:4 of +msgid "The error data to parse." msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" msgstr "" -#: interactions.api.error.GatewayException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent Gateway closing OP codes." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." +#: interactions.api.error.LibraryException._parse of +msgid "Return type" msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.gateway.po b/docs/locale/ru/LC_MESSAGES/api.gateway.po index c64b34dd0..aad9d8772 100644 --- a/docs/locale/ru/LC_MESSAGES/api.gateway.po +++ b/docs/locale/ru/LC_MESSAGES/api.gateway.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -93,51 +93,77 @@ msgid "The closing task for ending connections." msgstr "" #: interactions.api.gateway.client.WebSocketClient:16 of -msgid "The ID of the ongoing session." +msgid "Whether the client has started." msgstr "" #: interactions.api.gateway.client.WebSocketClient:17 of -msgid "The sequence identifier of the ongoing session." +msgid "The ID of the ongoing session." msgstr "" #: interactions.api.gateway.client.WebSocketClient:18 of +msgid "The sequence identifier of the ongoing session." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:21 of msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__sub_command_context +#: interactions.api.gateway.client.WebSocketClient._dispatch_event +#: interactions.api.gateway.client.WebSocketClient._establish_connection +#: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._send_packet +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Parameters" msgstr "" +#: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__resume #: interactions.api.gateway.client.WebSocketClient.__sub_command_context #: interactions.api.gateway.client.WebSocketClient._dispatch_event #: interactions.api.gateway.client.WebSocketClient._establish_connection #: interactions.api.gateway.client.WebSocketClient._handle_connection +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat #: interactions.api.gateway.client.WebSocketClient._send_packet -#: interactions.api.gateway.client.WebSocketClient._update_presence of -msgid "Parameters" +#: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready +#: interactions.api.gateway.heartbeat._Heartbeat of +msgid "Return type" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of +msgid "Manages the heartbeat loop." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__restart:1 of +msgid "Restart the client's connection and heartbeat with the Gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of +msgid "Establishes a client connection with the Gateway." msgstr "" #: interactions.api.gateway.client.WebSocketClient._establish_connection:3 @@ -195,13 +221,6 @@ msgstr "" msgid "The context object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize -#: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__sub_command_context of -msgid "Return type" -msgstr "" - #: interactions.api.gateway.client.WebSocketClient.__sub_command_context:1 of msgid "" "Checks if an application command schema has sub commands needed for " diff --git a/docs/locale/ru/LC_MESSAGES/api.http.po b/docs/locale/ru/LC_MESSAGES/api.http.po index b637802cb..b141f2d87 100644 --- a/docs/locale/ru/LC_MESSAGES/api.http.po +++ b/docs/locale/ru/LC_MESSAGES/api.http.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,12 +52,6 @@ msgstr "" msgid "The guild ID from the bucket if given." msgstr "" -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." -msgstr "" - #: interactions.api.http.channel.ChannelRequest.create_channel #: interactions.api.http.channel.ChannelRequest.create_channel_invite #: interactions.api.http.channel.ChannelRequest.create_stage_instance @@ -74,24 +68,29 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.modify_stage_instance #: interactions.api.http.channel.ChannelRequest.move_channel #: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji #: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_ban #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_kick #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.delete_guild #: interactions.api.http.guild.GuildRequest.delete_guild_integration #: interactions.api.http.guild.GuildRequest.delete_guild_role #: interactions.api.http.guild.GuildRequest.delete_guild_template #: interactions.api.http.guild.GuildRequest.get_all_channels #: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog #: interactions.api.http.guild.GuildRequest.get_guild_bans #: interactions.api.http.guild.GuildRequest.get_guild_integrations #: interactions.api.http.guild.GuildRequest.get_guild_invites @@ -104,6 +103,8 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter #: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member @@ -141,6 +143,7 @@ msgstr "" #: interactions.api.http.message.MessageRequest.get_message #: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message #: interactions.api.http.message.MessageRequest.unpin_message #: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji @@ -148,7 +151,9 @@ msgstr "" #: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji #: interactions.api.http.reaction.ReactionRequest.remove_self_reaction #: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,6 +198,180 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.http.channel.ChannelRequest +#: interactions.api.http.channel.ChannelRequest.create_channel +#: interactions.api.http.channel.ChannelRequest.create_channel_invite +#: interactions.api.http.channel.ChannelRequest.create_stage_instance +#: interactions.api.http.channel.ChannelRequest.delete_channel +#: interactions.api.http.channel.ChannelRequest.delete_channel_permission +#: interactions.api.http.channel.ChannelRequest.delete_stage_instance +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.get_channel +#: interactions.api.http.channel.ChannelRequest.get_channel_invites +#: interactions.api.http.channel.ChannelRequest.get_channel_messages +#: interactions.api.http.channel.ChannelRequest.get_pinned_messages +#: interactions.api.http.channel.ChannelRequest.get_stage_instance +#: interactions.api.http.channel.ChannelRequest.modify_channel +#: interactions.api.http.channel.ChannelRequest.modify_stage_instance +#: interactions.api.http.channel.ChannelRequest.move_channel +#: interactions.api.http.channel.ChannelRequest.trigger_typing +#: interactions.api.http.client.HTTPClient.get_bot_gateway +#: interactions.api.http.client.HTTPClient.get_current_authorisation_information +#: interactions.api.http.client.HTTPClient.get_current_bot_information +#: interactions.api.http.client.HTTPClient.get_gateway +#: interactions.api.http.client.HTTPClient.login +#: interactions.api.http.client.HTTPClient.logout +#: interactions.api.http.emoji.EmojiRequest +#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.get_all_emoji +#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji +#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji +#: interactions.api.http.guild.GuildRequest +#: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.create_guild_ban +#: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template +#: interactions.api.http.guild.GuildRequest.create_guild_kick +#: interactions.api.http.guild.GuildRequest.create_guild_role +#: interactions.api.http.guild.GuildRequest.create_guild_template +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.delete_guild +#: interactions.api.http.guild.GuildRequest.delete_guild_integration +#: interactions.api.http.guild.GuildRequest.delete_guild_role +#: interactions.api.http.guild.GuildRequest.delete_guild_template +#: interactions.api.http.guild.GuildRequest.get_all_channels +#: interactions.api.http.guild.GuildRequest.get_all_roles +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.get_guild +#: interactions.api.http.guild.GuildRequest.get_guild_auditlog +#: interactions.api.http.guild.GuildRequest.get_guild_bans +#: interactions.api.http.guild.GuildRequest.get_guild_integrations +#: interactions.api.http.guild.GuildRequest.get_guild_invites +#: interactions.api.http.guild.GuildRequest.get_guild_preview +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count +#: interactions.api.http.guild.GuildRequest.get_guild_templates +#: interactions.api.http.guild.GuildRequest.get_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.get_guild_widget +#: interactions.api.http.guild.GuildRequest.get_guild_widget_image +#: interactions.api.http.guild.GuildRequest.get_guild_widget_settings +#: interactions.api.http.guild.GuildRequest.get_self_guilds +#: interactions.api.http.guild.GuildRequest.get_user_ban +#: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule +#: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state +#: interactions.api.http.guild.GuildRequest.modify_guild +#: interactions.api.http.guild.GuildRequest.modify_guild_role +#: interactions.api.http.guild.GuildRequest.modify_guild_role_positions +#: interactions.api.http.guild.GuildRequest.modify_guild_template +#: interactions.api.http.guild.GuildRequest.modify_guild_welcome_screen +#: interactions.api.http.guild.GuildRequest.modify_guild_widget +#: interactions.api.http.guild.GuildRequest.modify_user_voice_state +#: interactions.api.http.guild.GuildRequest.remove_guild_ban +#: interactions.api.http.guild.GuildRequest.remove_guild_member +#: interactions.api.http.guild.GuildRequest.sync_guild_template +#: interactions.api.http.interaction.InteractionRequest +#: interactions.api.http.interaction.InteractionRequest._post_followup +#: interactions.api.http.interaction.InteractionRequest.create_application_command +#: interactions.api.http.interaction.InteractionRequest.create_interaction_response +#: interactions.api.http.interaction.InteractionRequest.delete_application_command +#: interactions.api.http.interaction.InteractionRequest.delete_interaction_response +#: interactions.api.http.interaction.InteractionRequest.edit_application_command +#: interactions.api.http.interaction.InteractionRequest.edit_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.edit_interaction_response +#: interactions.api.http.interaction.InteractionRequest.get_all_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_command_permissions +#: interactions.api.http.interaction.InteractionRequest.get_application_commands +#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response +#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command +#: interactions.api.http.limiter.Limiter +#: interactions.api.http.member.MemberRequest +#: interactions.api.http.member.MemberRequest.add_member_role +#: interactions.api.http.member.MemberRequest.get_list_of_members +#: interactions.api.http.member.MemberRequest.get_member +#: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages +#: interactions.api.http.message.MessageRequest.edit_message +#: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message +#: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest +#: interactions.api.http.reaction.ReactionRequest.create_reaction +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request +#: interactions.api.http.request._Request._check_lock +#: interactions.api.http.request._Request._check_session +#: interactions.api.http.request._Request.close +#: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event +#: interactions.api.http.sticker.StickerRequest +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker +#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_guild_sticker +#: interactions.api.http.sticker.StickerRequest.get_sticker +#: interactions.api.http.sticker.StickerRequest.list_guild_stickers +#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker +#: interactions.api.http.thread.ThreadRequest +#: interactions.api.http.thread.ThreadRequest.add_member_to_thread +#: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread +#: interactions.api.http.thread.ThreadRequest.list_active_threads +#: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_private_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads +#: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread +#: interactions.api.http.user.UserRequest +#: interactions.api.http.user.UserRequest.create_dm +#: interactions.api.http.user.UserRequest.get_self +#: interactions.api.http.user.UserRequest.get_user +#: interactions.api.http.user.UserRequest.modify_self +#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild +#: interactions.api.http.webhook.WebhookRequest +#: interactions.api.http.webhook.WebhookRequest.create_webhook +#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message +#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message +#: interactions.api.http.webhook.WebhookRequest.edit_webhook_message +#: interactions.api.http.webhook.WebhookRequest.execute_github_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook +#: interactions.api.http.webhook.WebhookRequest.execute_webhook +#: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks +#: interactions.api.http.webhook.WebhookRequest.get_webhook +#: interactions.api.http.webhook.WebhookRequest.get_webhook_message +#: interactions.api.http.webhook.WebhookRequest.modify_webhook of +msgid "Return type" +msgstr "" + +#: interactions.api.http.route.Route.get_bucket:1 of +msgid "" +"Returns the route's bucket. If shared_bucket is None, returns the path " +"with major parameters. Otherwise, it relies on Discord's given bucket." +msgstr "" + #: interactions.api.http.route.Route.get_bucket:4 of msgid "The bucket that Discord provides, if available." msgstr "" @@ -214,6 +393,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.create_guild_from_guild_template #: interactions.api.http.guild.GuildRequest.create_guild_role #: interactions.api.http.guild.GuildRequest.create_guild_template @@ -233,6 +413,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings #: interactions.api.http.guild.GuildRequest.get_user_ban #: interactions.api.http.guild.GuildRequest.leave_guild +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule #: interactions.api.http.guild.GuildRequest.modify_guild #: interactions.api.http.guild.GuildRequest.modify_guild_role #: interactions.api.http.guild.GuildRequest.modify_guild_role_positions @@ -299,13 +480,6 @@ msgstr "" msgid "The route bucket." msgstr "" -#: interactions.api.http.guild.GuildRequest.modify_guild -#: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route.endpoint -#: interactions.api.http.route.Route.get_bucket of -msgid "Return type" -msgstr "" - #: interactions.api.http.route.Route.endpoint:1 of msgid "Returns the route's endpoint." msgstr "" @@ -518,6 +692,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji:3 #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji:3 #: interactions.api.http.guild.GuildRequest.add_guild_member:3 +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:3 #: interactions.api.http.guild.GuildRequest.create_guild_role:3 #: interactions.api.http.guild.GuildRequest.create_guild_template:3 #: interactions.api.http.guild.GuildRequest.delete_guild:3 @@ -534,6 +709,7 @@ msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild_widget:3 #: interactions.api.http.guild.GuildRequest.get_guild_widget_image:6 #: interactions.api.http.guild.GuildRequest.get_guild_widget_settings:3 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:6 #: interactions.api.http.guild.GuildRequest.modify_current_user_voice_state:3 #: interactions.api.http.guild.GuildRequest.modify_guild:3 #: interactions.api.http.guild.GuildRequest.modify_guild_role:3 @@ -820,6 +996,10 @@ msgid "The guild snowflake ID associated." msgstr "" #: interactions.api.http.guild.GuildRequest.get_guild:4 of +msgid "Whether the approximate member count should be included" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild:5 of msgid "The guild object associated, if any." msgstr "" @@ -1281,6 +1461,8 @@ msgid "" "from banning them." msgstr "" +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:12 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:15 #: interactions.api.http.guild.GuildRequest.remove_guild_member:5 of msgid "Reason to send to audit log, if any." msgstr "" @@ -1313,6 +1495,112 @@ msgid "" "50, minimum 1, maximum 100)" msgstr "" +#: interactions.api.http.guild.GuildRequest.list_auto_moderation_rules:1 of +msgid "" +"Returns a list of all AutoMod rules in a guild. :poram guild_id: Guild ID" +" snowflake. :return: A list of dictionaries containing the automod rules." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_auto_moderation_rule:1 of +msgid "" +"Get a single AutoMod rule in a guild. :param guild_id: Guild ID " +"snowflake. :param rule_id: Rule ID snowflake. :return: A dictionary " +"containing the automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:1 of +msgid "Create a new AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:4 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:5 of +msgid "The event type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:6 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:7 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:8 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:9 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:10 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:13 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:11 +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:14 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule:13 of +msgid "A dictionary containing the new automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:1 of +msgid "Modify an existing AutoMod rule in a guild." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:4 of +msgid "All parameters besides guild and rule ID are optional." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:7 of +msgid "Rule ID snowflake." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:8 of +msgid "The new name of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:9 of +msgid "The new event type of the rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:10 of +msgid "" +"The new trigger metadata payload representation. This can be omitted " +"based on the trigger type." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:11 of +msgid "The new actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:12 of +msgid "Whether the rule will be enabled upon creation." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.modify_auto_moderation_rule:16 of +msgid "A dictionary containing the updated automod rule." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.delete_auto_moderation_rule:1 of +msgid "" +"Deletes an AutoMod rule. :param guild_id: Guild ID snowflake. :param " +"rule_id: Rule ID snowflake. :param reason: Reason to send to audit log, " +"if any." +msgstr "" + #: interactions.api.http.interaction.InteractionRequest.get_application_commands:1 #: of msgid "Get all application commands from an application." @@ -1848,6 +2136,14 @@ msgid "The emoji to get (format: `name:id`)" msgstr "" #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:6 of +msgid "Max number of users to return (1-100)" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:7 of +msgid "Get users after this user ID" +msgstr "" + +#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji:8 of msgid "A list of users who sent that emoji." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.channel.po b/docs/locale/ru/LC_MESSAGES/api.models.channel.po index 529af7d9d..1ca5f1ac3 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.channel.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,18 @@ msgstr "" msgid "An enumerable object representing the type of channels." msgstr "" +#: interactions.api.models.channel.ChannelType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.channel.ChannelType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.channel.Thread:1 of msgid "An object representing a thread." msgstr "" @@ -36,6 +48,36 @@ msgid "" "event." msgstr "" +#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel.add_member +#: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.lock +#: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message +#: interactions.api.models.channel.Channel.publish_message +#: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member +#: interactions.api.models.channel.Channel.send +#: interactions.api.models.channel.Channel.set_auto_archive_duration +#: interactions.api.models.channel.Channel.set_bitrate +#: interactions.api.models.channel.Channel.set_name +#: interactions.api.models.channel.Channel.set_nsfw +#: interactions.api.models.channel.Channel.set_parent_id +#: interactions.api.models.channel.Channel.set_position +#: interactions.api.models.channel.Channel.set_rate_limit_per_user +#: interactions.api.models.channel.Channel.set_topic +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Thread +#: interactions.api.models.channel.ThreadMember +#: interactions.api.models.channel.ThreadMetadata of +msgid "Parameters" +msgstr "" + #: interactions.api.models.channel.Channel:1 of msgid "A class object representing all types of channels." msgstr "" @@ -165,6 +207,7 @@ msgstr "" #: interactions.api.models.channel.Channel.archive #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.lock @@ -189,16 +232,25 @@ msgstr "" msgid "The string of the mentioned channel." msgstr "" +#: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_invite #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete #: interactions.api.models.channel.Channel.get_history +#: interactions.api.models.channel.Channel.get_members #: interactions.api.models.channel.Channel.get_message #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.join +#: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify +#: interactions.api.models.channel.Channel.pin_message #: interactions.api.models.channel.Channel.publish_message #: interactions.api.models.channel.Channel.purge +#: interactions.api.models.channel.Channel.remove_member #: interactions.api.models.channel.Channel.send #: interactions.api.models.channel.Channel.set_auto_archive_duration #: interactions.api.models.channel.Channel.set_bitrate @@ -208,7 +260,8 @@ msgstr "" #: interactions.api.models.channel.Channel.set_position #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit of +#: interactions.api.models.channel.Channel.set_user_limit +#: interactions.api.models.channel.Channel.unpin_message of msgid "Return type" msgstr "" @@ -216,30 +269,6 @@ msgstr "" msgid "Sends a message in the channel." msgstr "" -#: interactions.api.models.channel.Channel.add_member -#: interactions.api.models.channel.Channel.archive -#: interactions.api.models.channel.Channel.create_invite -#: interactions.api.models.channel.Channel.create_thread -#: interactions.api.models.channel.Channel.get_history -#: interactions.api.models.channel.Channel.lock -#: interactions.api.models.channel.Channel.modify -#: interactions.api.models.channel.Channel.pin_message -#: interactions.api.models.channel.Channel.publish_message -#: interactions.api.models.channel.Channel.purge -#: interactions.api.models.channel.Channel.send -#: interactions.api.models.channel.Channel.set_auto_archive_duration -#: interactions.api.models.channel.Channel.set_bitrate -#: interactions.api.models.channel.Channel.set_name -#: interactions.api.models.channel.Channel.set_nsfw -#: interactions.api.models.channel.Channel.set_parent_id -#: interactions.api.models.channel.Channel.set_position -#: interactions.api.models.channel.Channel.set_rate_limit_per_user -#: interactions.api.models.channel.Channel.set_topic -#: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of -msgid "Parameters" -msgstr "" - #: interactions.api.models.channel.Channel.send:3 of msgid "The contents of the message as a string or string-converted value." msgstr "" @@ -253,18 +282,30 @@ msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.channel.Channel.send:9 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.channel.Channel.send:11 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.api.models.channel.Channel.send:15 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:17 of +msgid "A component, or list of components for the message." +msgstr "" + +#: interactions.api.models.channel.Channel.send:19 of msgid "The sent message as an object." msgstr "" @@ -412,15 +453,20 @@ msgstr "" msgid "The new user limit of the channel" msgstr "" -#: interactions.api.models.channel.Channel.set_position:1 #: interactions.api.models.channel.Channel.set_rate_limit_per_user:1 of -msgid "Sets the position of the channel." +msgid "" +"Sets the amount of seconds a user has to wait before sending another " +"message." msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user:3 of msgid "The new rate_limit_per_user of the channel (0-21600)" msgstr "" +#: interactions.api.models.channel.Channel.set_position:1 of +msgid "Sets the position of the channel." +msgstr "" + #: interactions.api.models.channel.Channel.set_position:3 of msgid "The new position of the channel" msgstr "" @@ -473,6 +519,14 @@ msgstr "" msgid "The id of the member to add to the channel" msgstr "" +#: interactions.api.models.channel.Channel.remove_member:1 of +msgid "This removes a member of the channel, if the channel is a thread." +msgstr "" + +#: interactions.api.models.channel.Channel.remove_member:3 of +msgid "The id of the member to remove of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.pin_message:1 of msgid "Pins a message to the channel." msgstr "" @@ -516,6 +570,10 @@ msgid "Gets a message sent in that channel." msgstr "" #: interactions.api.models.channel.Channel.get_message:3 of +msgid "The ID of the message to get" +msgstr "" + +#: interactions.api.models.channel.Channel.get_message:5 of msgid "The message as object" msgstr "" @@ -660,6 +718,22 @@ msgstr "" msgid "Gets a list of webhooks of that channel" msgstr "" +#: interactions.api.models.channel.Channel.get_members:1 of +msgid "Gets the list of thread members" +msgstr "" + +#: interactions.api.models.channel.Channel.get_members:3 of +msgid "The members of the thread." +msgstr "" + +#: interactions.api.models.channel.Channel.leave:1 of +msgid "Removes the bot from the thread" +msgstr "" + +#: interactions.api.models.channel.Channel.join:1 of +msgid "Add the bot to the thread" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.flags.po b/docs/locale/ru/LC_MESSAGES/api.models.flags.po index 6b44fd0d5..af66fea34 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.flags.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,6 +28,28 @@ msgid "" "gateway intent type." msgstr "" +#: interactions.api.models.flags.AppFlags interactions.api.models.flags.Intents +#: interactions.api.models.flags.Permissions +#: interactions.api.models.flags.StatusType +#: interactions.api.models.flags.UserFlags of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.flags.AppFlags:1 +#: interactions.api.models.flags.Intents:1 +#: interactions.api.models.flags.Permissions:1 +#: interactions.api.models.flags.StatusType:1 +#: interactions.api.models.flags.UserFlags:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.flags.AppFlags:1 of msgid "" "An integer flag bitshift object representing the different application " @@ -40,6 +62,14 @@ msgid "" "have." msgstr "" +#: interactions.api.models.flags.StatusType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.flags.StatusType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.guild.po b/docs/locale/ru/LC_MESSAGES/api.models.guild.po index 795f3c96e..a233b694b 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.guild.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:25-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,6 +26,33 @@ msgstr "" msgid "An enumerable object representing the verification level of a guild." msgstr "" +#: interactions.api.models.guild.DefaultMessageNotificationLevel +#: interactions.api.models.guild.EntityType +#: interactions.api.models.guild.EventStatus +#: interactions.api.models.guild.ExplicitContentFilterLevel +#: interactions.api.models.guild.InviteTargetType +#: interactions.api.models.guild.VerificationLevel of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.guild.DefaultMessageNotificationLevel:1 +#: interactions.api.models.guild.EntityType:1 +#: interactions.api.models.guild.EventStatus:1 +#: interactions.api.models.guild.ExplicitContentFilterLevel:1 +#: interactions.api.models.guild.InviteTargetType:1 +#: interactions.api.models.guild.VerificationLevel:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.api.models.guild.EntityType:1 of msgid "An enumerable object representing the type of event." msgstr "" @@ -58,6 +85,67 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.EventMetadata +#: interactions.api.models.guild.Guild +#: interactions.api.models.guild.Guild.add_member_role +#: interactions.api.models.guild.Guild.ban +#: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule +#: interactions.api.models.guild.Guild.create_channel +#: interactions.api.models.guild.Guild.create_emoji +#: interactions.api.models.guild.Guild.create_role +#: interactions.api.models.guild.Guild.create_scheduled_event +#: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.delete_channel +#: interactions.api.models.guild.Guild.delete_emoji +#: interactions.api.models.guild.Guild.delete_role +#: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_auto_moderation_rule +#: interactions.api.models.guild.Guild.get_bans +#: interactions.api.models.guild.Guild.get_emoji +#: interactions.api.models.guild.Guild.get_list_of_members +#: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule +#: interactions.api.models.guild.Guild.modify_channel +#: interactions.api.models.guild.Guild.modify_member +#: interactions.api.models.guild.Guild.modify_role +#: interactions.api.models.guild.Guild.modify_role_position +#: interactions.api.models.guild.Guild.modify_role_positions +#: interactions.api.models.guild.Guild.modify_scheduled_event +#: interactions.api.models.guild.Guild.remove_ban +#: interactions.api.models.guild.Guild.remove_member_role +#: interactions.api.models.guild.Guild.search_members +#: interactions.api.models.guild.Guild.set_afk_channel +#: interactions.api.models.guild.Guild.set_afk_timeout +#: interactions.api.models.guild.Guild.set_banner +#: interactions.api.models.guild.Guild.set_default_message_notifications +#: interactions.api.models.guild.Guild.set_description +#: interactions.api.models.guild.Guild.set_discovery_splash +#: interactions.api.models.guild.Guild.set_explicit_content_filter +#: interactions.api.models.guild.Guild.set_icon +#: interactions.api.models.guild.Guild.set_name +#: interactions.api.models.guild.Guild.set_preferred_locale +#: interactions.api.models.guild.Guild.set_premium_progress_bar_enabled +#: interactions.api.models.guild.Guild.set_public_updates_channel +#: interactions.api.models.guild.Guild.set_rules_channel +#: interactions.api.models.guild.Guild.set_splash +#: interactions.api.models.guild.Guild.set_system_channel +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.GuildPreview +#: interactions.api.models.guild.GuildTemplate +#: interactions.api.models.guild.Integration +#: interactions.api.models.guild.Invite +#: interactions.api.models.guild.ScheduledEvents +#: interactions.api.models.guild.StageInstance +#: interactions.api.models.guild.UnavailableGuild +#: interactions.api.models.guild.WelcomeChannels +#: interactions.api.models.guild.WelcomeScreen of +msgid "Parameters" +msgstr "" + #: interactions.api.models.guild.EventStatus:1 of msgid "An enumerable object representing the status of an event." msgstr "" @@ -579,9 +667,22 @@ msgstr "" msgid "Bans a member from the guild." msgstr "" +#: interactions.api.models.guild.Guild.ban:3 of +msgid "The id of the member to ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:5 of +msgid "The reason of the ban" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:7 of +msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgstr "" + #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_emoji #: interactions.api.models.guild.Guild.create_role @@ -591,13 +692,24 @@ msgstr "" #: interactions.api.models.guild.Guild.delete_emoji #: interactions.api.models.guild.Guild.delete_role #: interactions.api.models.guild.Guild.delete_scheduled_event +#: interactions.api.models.guild.Guild.get_all_active_threads +#: interactions.api.models.guild.Guild.get_all_bans +#: interactions.api.models.guild.Guild.get_all_channels +#: interactions.api.models.guild.Guild.get_all_emoji +#: interactions.api.models.guild.Guild.get_all_members +#: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.kick +#: interactions.api.models.guild.Guild.leave +#: interactions.api.models.guild.Guild.list_auto_moderation_rules #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -622,20 +734,9 @@ msgstr "" #: interactions.api.models.guild.Guild.set_rules_channel #: interactions.api.models.guild.Guild.set_splash #: interactions.api.models.guild.Guild.set_system_channel -#: interactions.api.models.guild.Guild.set_verification_level of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:3 of -msgid "The id of the member to ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#: interactions.api.models.guild.Guild.set_verification_level +#: interactions.api.models.guild.Invite.delete of +msgid "Return type" msgstr "" #: interactions.api.models.guild.Guild.remove_ban:1 of @@ -672,9 +773,10 @@ msgstr "" #: interactions.api.models.guild.Guild.add_member_role:4 of msgid "" -":type role Union[Role, int] :param member_id: The id of the member to add" -" the roles to :type member_id: int :param reason?: The reason why the " -"roles are added :type reason: Optional[str]" +":type role Union[Role, int, Snowflake] :param member_id: The id of the " +"member to add the roles to :type member_id: Union[Member, int, Snowflake]" +" :param reason?: The reason why the roles are added :type reason?: " +"Optional[str]" msgstr "" #: interactions.api.models.guild.Guild.remove_member_role:1 of @@ -734,15 +836,18 @@ msgid "The reason why the role is created, default ``None``" msgstr "" #: interactions.api.models.guild.Guild.clone_channel +#: interactions.api.models.guild.Guild.create_auto_moderation_rule #: interactions.api.models.guild.Guild.create_channel #: interactions.api.models.guild.Guild.create_role #: interactions.api.models.guild.Guild.create_scheduled_event #: interactions.api.models.guild.Guild.create_thread +#: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans #: interactions.api.models.guild.Guild.get_all_channels #: interactions.api.models.guild.Guild.get_all_emoji #: interactions.api.models.guild.Guild.get_all_members #: interactions.api.models.guild.Guild.get_all_roles +#: interactions.api.models.guild.Guild.get_auto_moderation_rule #: interactions.api.models.guild.Guild.get_bans #: interactions.api.models.guild.Guild.get_emoji #: interactions.api.models.guild.Guild.get_list_of_members @@ -750,6 +855,7 @@ msgstr "" #: interactions.api.models.guild.Guild.get_preview #: interactions.api.models.guild.Guild.get_role #: interactions.api.models.guild.Guild.modify +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel #: interactions.api.models.guild.Guild.modify_member #: interactions.api.models.guild.Guild.modify_role @@ -764,33 +870,6 @@ msgstr "" msgid "The created Role" msgstr "" -#: interactions.api.models.guild.Guild.clone_channel -#: interactions.api.models.guild.Guild.create_channel -#: interactions.api.models.guild.Guild.create_role -#: interactions.api.models.guild.Guild.create_scheduled_event -#: interactions.api.models.guild.Guild.create_thread -#: interactions.api.models.guild.Guild.get_all_bans -#: interactions.api.models.guild.Guild.get_all_channels -#: interactions.api.models.guild.Guild.get_all_emoji -#: interactions.api.models.guild.Guild.get_all_members -#: interactions.api.models.guild.Guild.get_all_roles -#: interactions.api.models.guild.Guild.get_bans -#: interactions.api.models.guild.Guild.get_emoji -#: interactions.api.models.guild.Guild.get_list_of_members -#: interactions.api.models.guild.Guild.get_member -#: interactions.api.models.guild.Guild.get_preview -#: interactions.api.models.guild.Guild.get_role -#: interactions.api.models.guild.Guild.modify -#: interactions.api.models.guild.Guild.modify_channel -#: interactions.api.models.guild.Guild.modify_member -#: interactions.api.models.guild.Guild.modify_role -#: interactions.api.models.guild.Guild.modify_role_position -#: interactions.api.models.guild.Guild.modify_role_positions -#: interactions.api.models.guild.Guild.modify_scheduled_event -#: interactions.api.models.guild.Guild.search_members of -msgid "Return type" -msgstr "" - #: interactions.api.models.guild.Guild.get_member:1 of msgid "" "Searches for the member with specified id in the guild and returns the " @@ -1457,6 +1536,14 @@ msgstr "" msgid "The channels of the guild." msgstr "" +#: interactions.api.models.guild.Guild.get_all_active_threads:1 of +msgid "Gets all active threads of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_all_active_threads:3 of +msgid "The threads of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.get_all_roles:1 of msgid "Gets all roles of the guild as list." msgstr "" @@ -1563,7 +1650,9 @@ msgstr "" msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.guild.Guild.create_emoji:9 of +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:17 +#: interactions.api.models.guild.Guild.create_emoji:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:19 of msgid "The reason of the creation" msgstr "" @@ -1621,6 +1710,80 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of +msgid "Lists all AutoMod rules" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:1 of +msgid "Gets a AutoMod rule from its ID" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:3 of +msgid "The ID of the rule to get" +msgstr "" + +#: interactions.api.models.guild.Guild.get_auto_moderation_rule:5 of +msgid "A AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:1 of +msgid "Creates an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:3 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:5 of +msgid "The name of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:5 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:7 of +msgid "The trigger type of the new rule." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:7 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:9 of +msgid "" +"The trigger metadata payload representation. This can be omitted based on" +" the trigger type." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:9 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:11 of +msgid "The actions that will execute when the rule is triggered." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:11 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:13 of +msgid "Whether the rule will be enabled upon creation. False by default." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:13 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:15 of +msgid "" +"The role IDs that are whitelisted by the rule, if given. The maximum is " +"20." +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:15 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:17 of +msgid "" +"The channel IDs that are whitelisted by the rule, if given. The maximum " +"is 20" +msgstr "" + +#: interactions.api.models.guild.Guild.create_auto_moderation_rule:19 +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:21 of +msgid "The new AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:1 of +msgid "Edits an AutoMod rule" +msgstr "" + +#: interactions.api.models.guild.Guild.modify_auto_moderation_rule:3 of +msgid "The rule to modify" +msgstr "" + #: interactions.api.models.guild.Guild.icon_url:1 of msgid "" "Returns the URL of the guild's icon. :return: URL of the guild's icon " diff --git a/docs/locale/ru/LC_MESSAGES/api.models.gw.po b/docs/locale/ru/LC_MESSAGES/api.models.gw.po index ffa9c1972..fe823c232 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.gw.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,25 +22,93 @@ msgstr "" msgid "Gateway-specific Event Models" msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +#: interactions.api.models.gw.AutoModerationAction:1 of msgid "" "A class object representing the gateway event " -"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." +"``AUTO_MODERATION_ACTION_EXECUTION``." +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule +#: interactions.api.models.gw.ChannelPins +#: interactions.api.models.gw.EmbeddedActivity +#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis +#: interactions.api.models.gw.GuildIntegrations +#: interactions.api.models.gw.GuildJoinRequest +#: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole +#: interactions.api.models.gw.GuildScheduledEvent +#: interactions.api.models.gw.GuildScheduledEventUser +#: interactions.api.models.gw.GuildStickers +#: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageReaction +#: interactions.api.models.gw.Presence +#: interactions.api.models.gw.ReactionRemove +#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks +#: of +msgid "Variables" +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:3 of +msgid "The ID of the guild in which the action was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:4 of +msgid "The action which was executed." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:5 of +msgid "The rule ID that the action belongs to." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:6 of +msgid "The trigger rule type." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:7 of +msgid "The id of the channel in which user content was posted." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:8 of +msgid "The id of any user message which content belongs to." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of +#: interactions.api.models.gw.AutoModerationAction:9 of msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"The id of any system automoderation messages posted as a result of this " +"action." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:10 of +msgid "The user-generated text content in question." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:11 of +msgid "The word/phrase configured in rule that triggered rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationAction:12 of +msgid "The substring in content that triggered rule." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions +#: interactions.api.models.gw.AutoModerationAction +#: interactions.api.models.gw.AutoModerationRule #: interactions.api.models.gw.ChannelPins #: interactions.api.models.gw.EmbeddedActivity #: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis #: interactions.api.models.gw.GuildIntegrations #: interactions.api.models.gw.GuildJoinRequest #: interactions.api.models.gw.GuildMember +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban +#: interactions.api.models.gw.GuildMember.kick +#: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.remove_role +#: interactions.api.models.gw.GuildMember.send #: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole #: interactions.api.models.gw.GuildScheduledEvent #: interactions.api.models.gw.GuildScheduledEventUser @@ -52,7 +120,81 @@ msgstr "" #: interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of -msgid "Variables" +msgid "Parameters" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:1 of +msgid "" +"A class object representing the gateway events " +"``AUTO_MODERATION_RULE_CREATE``, ``AUTO_MODERATION_RULE_UPDATE``, and " +"``AUTO_MODERATION_RULE_DELETE``" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:3 +#: interactions.api.models.gw.AutoModerationRule:4 of +msgid "" +"This is undocumented by the Discord API, so these attribute docs may or " +"may not be finalised." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:7 of +msgid "" +"``event_type`` at the moment is only ``1``, which represents message " +"sending." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:9 of +msgid "The ID of the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:10 of +msgid "The guild ID associated with the rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:11 of +msgid "The rule name." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:12 of +msgid "The user ID that first created this rule." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:13 of +msgid "The rule type in which automod checks." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:14 of +msgid "" +"The automod type. It characterises what type of information that is " +"checked." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:15 of +msgid "" +"Additional data needed to figure out whether this rule should be " +"triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:16 of +msgid "The actions that will be executed when the rule is triggered." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:17 of +msgid "Whether the rule is enabled." +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:18 of +msgid "The role IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.AutoModerationRule:19 of +msgid "The channel IDs that should not be affected by this rule. (Max 20)" +msgstr "" + +#: interactions.api.models.gw.ApplicationCommandPermissions:1 of +msgid "" +"A class object representing the gateway event " +"``APPLICATION_COMMAND_PERMISSIONS_UPDATE``." msgstr "" #: interactions.api.models.gw.ApplicationCommandPermissions:5 of @@ -371,6 +513,7 @@ msgstr "" #: interactions.api.models.gw.GuildMember.id #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name #: interactions.api.models.gw.GuildMember.send of msgid "Returns" msgstr "" @@ -379,13 +522,27 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.gw.GuildMember.add_role +#: interactions.api.models.gw.GuildMember.add_to_thread +#: interactions.api.models.gw.GuildMember.ban #: interactions.api.models.gw.GuildMember.id +#: interactions.api.models.gw.GuildMember.kick #: interactions.api.models.gw.GuildMember.mention #: interactions.api.models.gw.GuildMember.modify +#: interactions.api.models.gw.GuildMember.name +#: interactions.api.models.gw.GuildMember.remove_role #: interactions.api.models.gw.GuildMember.send of msgid "Return type" msgstr "" +#: interactions.api.models.gw.GuildMember.name:1 of +msgid "Returns the string of either the user's nickname or username." +msgstr "" + +#: interactions.api.models.gw.GuildMember.name:3 of +msgid "The name of the member" +msgstr "" + #: interactions.api.models.gw.GuildMember.mention:1 of msgid "Returns a string that allows you to mention the given member." msgstr "" @@ -398,16 +555,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.GuildMember.ban:3 of msgid "The reason of the ban" msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.member.po b/docs/locale/ru/LC_MESSAGES/api.models.member.po index d616587fa..ce23f99ac 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.member.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.member.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -81,6 +81,18 @@ msgstr "" msgid "How long until they're unmuted, if any." msgstr "" +#: interactions.api.models.member.Member +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.kick +#: interactions.api.models.member.Member.modify +#: interactions.api.models.member.Member.remove_role +#: interactions.api.models.member.Member.send of +msgid "Parameters" +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" @@ -97,10 +109,16 @@ msgstr "" msgid "The ID of the user" msgstr "" +#: interactions.api.models.member.Member.add_role +#: interactions.api.models.member.Member.add_to_thread +#: interactions.api.models.member.Member.ban +#: interactions.api.models.member.Member.get_avatar_url #: interactions.api.models.member.Member.id +#: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.name +#: interactions.api.models.member.Member.remove_role #: interactions.api.models.member.Member.send of msgid "Return type" msgstr "" @@ -125,16 +143,6 @@ msgstr "" msgid "Bans the member from a guild." msgstr "" -#: interactions.api.models.member.Member.add_role -#: interactions.api.models.member.Member.add_to_thread -#: interactions.api.models.member.Member.ban -#: interactions.api.models.member.Member.kick -#: interactions.api.models.member.Member.modify -#: interactions.api.models.member.Member.remove_role -#: interactions.api.models.member.Member.send of -msgid "Parameters" -msgstr "" - #: interactions.api.models.member.Member.ban:3 of msgid "The id of the guild to ban the member from" msgstr "" @@ -208,18 +216,24 @@ msgid "Whether the message utilizes the text-to-speech Discord programme or not. msgstr "" #: interactions.api.models.member.Member.send:9 of -msgid "A file or list of files to be attached to the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.member.Member.send:11 of -msgid "An embed, or list of embeds for the message." +msgid "A file or list of files to be attached to the message." msgstr "" #: interactions.api.models.member.Member.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.member.Member.send:15 of +msgid "The message interactions/mention limits that the message can refer to." +msgstr "" + +#: interactions.api.models.member.Member.send:17 of msgid "The sent message as an object." msgstr "" @@ -277,6 +291,6 @@ msgstr "" msgid "" "Returns the URL of the member's avatar for the specified guild. :param " "guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: int :return: URL of the members's avatar (None will be returned" -" if no avatar is set) :rtype: str" +"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " +"avatar (None will be returned if no avatar is set) :rtype: str" msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.message.po b/docs/locale/ru/LC_MESSAGES/api.models.message.po index 1f8521cd0..5bcd77f9c 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.message.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.message.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,18 +26,20 @@ msgstr "" msgid "An enumerable object representing the types of messages." msgstr "" -#: interactions.api.models.message.MessageActivity:1 of -msgid "A class object representing the activity state of a message." +#: interactions.api.models.message.MessageType of +msgid "Member Type" msgstr "" -#: interactions.api.models.message.MessageActivity:4 of -msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" +#: interactions.api.models.message.MessageType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.message.MessageActivity:6 of -msgid "" -"We assume it's for game rich presence invites? i.e. : Phasmophobia and " -"Call of Duty." +#: interactions.api.models.message.MessageType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.message.Message:1 of +msgid "A class object representing a message." msgstr "" #: interactions.api.models.message.Attachment @@ -59,182 +61,133 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.api.models.message.MessageActivity:9 of -msgid "The message activity type." -msgstr "" - -#: interactions.api.models.message.MessageActivity:10 of -msgid "The party ID of the activity." -msgstr "" - -#: interactions.api.models.message.MessageReference:1 of -msgid "A class object representing the \"referenced\"/replied message." -msgstr "" - -#: interactions.api.models.message.MessageReference:4 of -msgid "" -"All of the attributes in this class are optionals because a message can " -"potentially never be referenced." -msgstr "" - -#: interactions.api.models.message.MessageReference:7 of -msgid "The ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:8 of -msgid "The channel ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:9 of -msgid "The guild ID of the referenced message." -msgstr "" - -#: interactions.api.models.message.MessageReference:10 of -msgid "Whether the message reference exists." -msgstr "" - -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." -msgstr "" - -#: interactions.api.models.message.Attachment:4 of -msgid "" -"``height`` and ``width`` have values based off of ``content_type``, which" -" requires it to be a media file with viewabiltity as a photo, animated " -"photo, GIF and/or video." -msgstr "" - -#: interactions.api.models.message.Attachment:8 of -msgid "" -"If `ephemeral` is given, the attachments will automatically be removed " -"after a set period of time. In the case of regular messages, they're " -"available as long as the message associated with the attachment exists." -msgstr "" - -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:5 of +msgid "ID of the guild the message was sent in, if it exists." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of attachment file." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:15 of -msgid "The size of the attachment file." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:10 of +msgid "Timestamp denoting when the message was edited, if any." msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:11 of +msgid "Status dictating if this was a TTS message or not." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.MessageInteraction:1 of -msgid "" -"A class object that resembles the interaction used to generate the " -"associated message." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.ChannelMention:1 of -msgid "A class object that resembles the mention of a channel in a guild." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." msgstr "" -#: interactions.api.models.message.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." +#: interactions.api.models.message.Message:25 of +msgid "" +"Data showing the source of a message (crosspost, channel follow, add, " +"pin, or replied message)" msgstr "" -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:28 of +msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message:29 of +msgid "" +"The thread that started from this message, if any, with a thread member " +"object embedded." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.Message:31 of +msgid "An array of message sticker item objects, if sent with them." msgstr "" -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" +#: interactions.api.models.message.Attachment +#: interactions.api.models.message.ChannelMention +#: interactions.api.models.message.Embed #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.insert_field_at #: interactions.api.models.message.Embed.remove_field @@ -244,302 +197,471 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.EmbedAuthor +#: interactions.api.models.message.EmbedField +#: interactions.api.models.message.EmbedFooter +#: interactions.api.models.message.EmbedImageStruct +#: interactions.api.models.message.EmbedProvider +#: interactions.api.models.message.Emoji #: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread #: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction #: interactions.api.models.message.Message.remove_all_reactions_of #: interactions.api.models.message.Message.remove_own_reaction_of #: interactions.api.models.message.Message.remove_reaction_from -#: interactions.api.models.message.Message.reply of -msgid "Parameters" -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild -#: interactions.api.models.message.Emoji.url -#: interactions.api.models.message.Message.create_thread -#: interactions.api.models.message.Message.edit -#: interactions.api.models.message.Message.get_from_url -#: interactions.api.models.message.Message.publish #: interactions.api.models.message.Message.reply -#: interactions.api.models.message.Message.url of -msgid "Returns" +#: interactions.api.models.message.MessageActivity +#: interactions.api.models.message.MessageInteraction +#: interactions.api.models.message.MessageReference +#: interactions.api.models.message.PartialSticker +#: interactions.api.models.message.ReactionObject +#: interactions.api.models.message.Sticker of +msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Embed.add_field +#: interactions.api.models.message.Embed.clear_fields +#: interactions.api.models.message.Embed.insert_field_at +#: interactions.api.models.message.Embed.remove_author +#: interactions.api.models.message.Embed.remove_field +#: interactions.api.models.message.Embed.set_author +#: interactions.api.models.message.Embed.set_field_at +#: interactions.api.models.message.Embed.set_footer +#: interactions.api.models.message.Embed.set_image +#: interactions.api.models.message.Embed.set_thumbnail +#: interactions.api.models.message.Embed.set_video +#: interactions.api.models.message.Emoji.delete #: interactions.api.models.message.Emoji.get #: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.delete #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_guild +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.pin #: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.remove_all_reactions +#: interactions.api.models.message.Message.remove_all_reactions_of +#: interactions.api.models.message.Message.remove_own_reaction_of +#: interactions.api.models.message.Message.remove_reaction_from #: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.unpin #: interactions.api.models.message.Message.url of msgid "Return type" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.get_guild:1 of +msgid "Gets the guild where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.delete:3 of +msgid "Optional reason to show up in the audit log. Defaults to `None`." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: interactions.api.models.message.Message.edit:1 of +msgid "This method edits a message. Only available for messages sent by the bot." msgstr "" -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.edit:3 +#: interactions.api.models.message.Message.reply:3 of +msgid "The contents of the message as a string or string-converted value." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.edit:5 +#: interactions.api.models.message.Message.reply:5 of +msgid "Whether the message utilizes the text-to-speech Discord programme or not." msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.edit:7 +#: interactions.api.models.message.Message.reply:9 of +msgid "A file or list of files to be attached to the message." msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Message.edit:9 +#: interactions.api.models.message.Message.reply:11 of +msgid "An embed, or list of embeds for the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.edit:11 of +msgid "Whether to suppress embeds in the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.edit:13 +#: interactions.api.models.message.Message.reply:13 of +msgid "The message interactions/mention limits that the message can refer to." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.edit:15 +#: interactions.api.models.message.Message.reply:7 of +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: interactions.api.models.message.Message.edit:17 of +msgid "" +"A component, or list of components for the message. If `[]` the " +"components will be removed" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:15 of -msgid "Height of the object." +#: interactions.api.models.message.Emoji.get +#: interactions.api.models.message.Emoji.get_all_of_guild +#: interactions.api.models.message.Emoji.url +#: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.edit +#: interactions.api.models.message.Message.get_from_url +#: interactions.api.models.message.Message.get_users_from_reaction +#: interactions.api.models.message.Message.publish +#: interactions.api.models.message.Message.reply +#: interactions.api.models.message.Message.url of +msgid "Returns" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: interactions.api.models.message.Message.reply:17 of +msgid "" +"A list of stickers to send with your message. You can send up to 3 " +"stickers per message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:11 of -msgid "Name of author" +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.EmbedAuthor:12 of -msgid "URL of author" +#: interactions.api.models.message.Message.publish:1 of +msgid "" +"Publishes (API calls it crossposts) the message in its channel to any " +"that is followed by." msgstr "" -#: interactions.api.models.message.EmbedAuthor:13 of -msgid "URL of author icon" +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.create_thread:5 of +msgid "" +"duration in minutes to automatically archive the thread after recent " +"activity, can be set to: 60, 1440, 4320, 10080" msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.create_thread:8 of +msgid "Boolean to display if the Thread is open to join or private." msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.create_reaction:3 +#: interactions.api.models.message.Message.get_users_from_reaction:3 +#: interactions.api.models.message.Message.remove_all_reactions_of:3 +#: interactions.api.models.message.Message.remove_own_reaction_of:3 +#: interactions.api.models.message.Message.remove_reaction_from:3 of +msgid "The Emoji as object or formatted as `name:id`" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: interactions.api.models.message.Message.remove_all_reactions_of:1 of +msgid "Removes all reactions of one emoji of the message." msgstr "" -#: interactions.api.models.message.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: interactions.api.models.message.Message.remove_own_reaction_of:1 of +msgid "Removes the own reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:1 of -msgid "A class object representing an embed." +#: interactions.api.models.message.Message.remove_reaction_from:1 of +msgid "Removes another reaction of an emoji of the message." msgstr "" -#: interactions.api.models.message.Embed:4 of -msgid "" -"The example provided below is for a very basic implementation of an " -"embed. Embeds are more unique than what is being shown." +#: interactions.api.models.message.Message.remove_reaction_from:5 of +msgid "The user or user_id to remove the reaction of" msgstr "" -#: interactions.api.models.message.Embed:8 of -msgid "The structure for an embed:" +#: interactions.api.models.message.Message.get_users_from_reaction:1 of +msgid "Retrieves all users that reacted to the message with the given emoji" msgstr "" -#: interactions.api.models.message.Embed:17 of -msgid "Title of embed" +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.Embed:18 of -msgid "" -"Embed type, relevant by CDN file connected. This is only important to " -"rendering." +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.Embed:19 of -msgid "Embed description" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.Embed:20 of -msgid "URL of embed" +#: interactions.api.models.message.Message.get_from_url:5 of +msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" msgstr "" -#: interactions.api.models.message.Embed:21 of -msgid "Timestamp of embed content" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.Embed:22 of -msgid "Color code of embed" +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.Embed:23 of -msgid "Footer information" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.Embed:24 of -msgid "Image information" +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.Embed:25 of -msgid "Thumbnail information" +#: interactions.api.models.message.MessageReference:4 of +msgid "" +"All of the attributes in this class are optionals because a message can " +"potentially never be referenced." msgstr "" -#: interactions.api.models.message.Embed:26 of -msgid "Video information" +#: interactions.api.models.message.MessageReference:7 of +msgid "The ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:27 of -msgid "Provider information" +#: interactions.api.models.message.MessageReference:8 of +msgid "The channel ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:28 of -msgid "Author information" +#: interactions.api.models.message.MessageReference:9 of +msgid "The guild ID of the referenced message." msgstr "" -#: interactions.api.models.message.Embed:29 of -msgid "A list of fields denoting field information" +#: interactions.api.models.message.MessageReference:10 of +msgid "Whether the message reference exists." msgstr "" -#: interactions.api.models.message.Embed.add_field:1 of -msgid "Adds a field to the embed" +#: interactions.api.models.message.MessageActivity:1 of +msgid "A class object representing the activity state of a message." msgstr "" -#: interactions.api.models.message.Embed.add_field:3 -#: interactions.api.models.message.Embed.insert_field_at:5 -#: interactions.api.models.message.Embed.set_field_at:5 of -msgid "The name of the field" +#: interactions.api.models.message.MessageActivity:4 of +msgid "``party_id`` is ambiguous -- Discord poorly documented this. :)" msgstr "" -#: interactions.api.models.message.Embed.add_field:5 -#: interactions.api.models.message.Embed.insert_field_at:7 -#: interactions.api.models.message.Embed.set_field_at:7 of -msgid "The value of the field" +#: interactions.api.models.message.MessageActivity:6 of +msgid "" +"We assume it's for game rich presence invites? i.e. : Phasmophobia and " +"Call of Duty." msgstr "" -#: interactions.api.models.message.Embed.add_field:7 -#: interactions.api.models.message.Embed.insert_field_at:9 -#: interactions.api.models.message.Embed.set_field_at:9 of -msgid "if the field is in the same line as the previous one" +#: interactions.api.models.message.MessageActivity:9 of +msgid "The message activity type." msgstr "" -#: interactions.api.models.message.Embed.clear_fields:1 of -msgid "Clears all the fields of the embed" +#: interactions.api.models.message.MessageActivity:10 of +msgid "The party ID of the activity." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:1 of -msgid "Inserts a field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:1 of +msgid "" +"A class object that resembles the interaction used to generate the " +"associated message." msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.MessageInteraction:4 of +msgid "ID of the interaction." msgstr "" -#: interactions.api.models.message.Embed.set_field_at:1 of -msgid "Overwrites the field in the embed at the specified index" +#: interactions.api.models.message.MessageInteraction:5 of +msgid "Type of interaction." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:6 of +msgid "Name of the application command." +msgstr "" + +#: interactions.api.models.message.MessageInteraction:7 of +msgid "The user who invoked the interaction." +msgstr "" + +#: interactions.api.models.message.ChannelMention:1 of +msgid "A class object that resembles the mention of a channel in a guild." +msgstr "" + +#: interactions.api.models.message.ChannelMention:4 of +msgid "The ID of the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:5 of +msgid "The ID of the guild that contains the channel." +msgstr "" + +#: interactions.api.models.message.ChannelMention:6 of +msgid "The channel type." +msgstr "" + +#: interactions.api.models.message.ChannelMention:7 of +msgid "The name of the channel." +msgstr "" + +#: interactions.api.models.message.Embed:1 of +msgid "A class object representing an embed." +msgstr "" + +#: interactions.api.models.message.Embed:4 of +msgid "" +"The example provided below is for a very basic implementation of an " +"embed. Embeds are more unique than what is being shown." +msgstr "" + +#: interactions.api.models.message.Embed:8 of +msgid "The structure for an embed:" +msgstr "" + +#: interactions.api.models.message.Embed:17 of +msgid "Title of embed" +msgstr "" + +#: interactions.api.models.message.Embed:18 of +msgid "" +"Embed type, relevant by CDN file connected. This is only important to " +"rendering." +msgstr "" + +#: interactions.api.models.message.Embed:19 of +msgid "Embed description" +msgstr "" + +#: interactions.api.models.message.Embed:20 of +msgid "URL of embed" +msgstr "" + +#: interactions.api.models.message.Embed:21 of +msgid "Timestamp of embed content" +msgstr "" + +#: interactions.api.models.message.Embed:22 of +msgid "Color code of embed" +msgstr "" + +#: interactions.api.models.message.Embed:23 of +msgid "Footer information" +msgstr "" + +#: interactions.api.models.message.Embed:24 of +msgid "Image information" +msgstr "" + +#: interactions.api.models.message.Embed:25 of +msgid "Thumbnail information" +msgstr "" + +#: interactions.api.models.message.Embed:26 of +msgid "Video information" +msgstr "" + +#: interactions.api.models.message.Embed:27 of +msgid "Provider information" +msgstr "" + +#: interactions.api.models.message.Embed:28 of +msgid "Author information" +msgstr "" + +#: interactions.api.models.message.Embed:29 of +msgid "A list of fields denoting field information" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:1 of +msgid "Adds a field to the embed" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:3 +#: interactions.api.models.message.Embed.insert_field_at:5 +#: interactions.api.models.message.Embed.set_field_at:5 of +msgid "The name of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:5 +#: interactions.api.models.message.Embed.insert_field_at:7 +#: interactions.api.models.message.Embed.set_field_at:7 of +msgid "The value of the field" +msgstr "" + +#: interactions.api.models.message.Embed.add_field:7 +#: interactions.api.models.message.Embed.insert_field_at:9 +#: interactions.api.models.message.Embed.set_field_at:9 of +msgid "if the field is in the same line as the previous one" +msgstr "" + +#: interactions.api.models.message.Embed.clear_fields:1 of +msgid "Clears all the fields of the embed" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:1 of +msgid "Inserts a field in the embed at the specified index" +msgstr "" + +#: interactions.api.models.message.Embed.insert_field_at:3 +#: interactions.api.models.message.Embed.remove_field:3 +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The new field's index" +msgstr "" + +#: interactions.api.models.message.Embed.set_field_at:1 of +msgid "Overwrites the field in the embed at the specified index" msgstr "" #: interactions.api.models.message.Embed.remove_field:1 of @@ -646,373 +768,328 @@ msgstr "" msgid "The thumbnail's width" msgstr "" -#: interactions.api.models.message.PartialSticker:1 of -msgid "Partial object for a Sticker." +#: interactions.api.models.message.EmbedAuthor:1 of +msgid "A class object representing the author of an embed." msgstr "" -#: interactions.api.models.message.PartialSticker:3 -#: interactions.api.models.message.Sticker:3 of -msgid "ID of the sticker" +#: interactions.api.models.message.EmbedAuthor:3 of +msgid "The structure of an embed author:" msgstr "" -#: interactions.api.models.message.PartialSticker:4 -#: interactions.api.models.message.Sticker:5 of -msgid "Name of the sticker" +#: interactions.api.models.message.EmbedAuthor:11 of +msgid "Name of author" msgstr "" -#: interactions.api.models.message.PartialSticker:5 -#: interactions.api.models.message.Sticker:10 of -msgid "Type of sticker format" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:1 of -msgid "A class object representing a full sticker apart from a partial." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:4 of -msgid "ID of the pack the sticker is from." +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:6 of -msgid "Description of the sticker" +#: interactions.api.models.message.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:7 of -msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedImageStruct:1 of +msgid "A class object representing the structure of an image in an embed." msgstr "" -#: interactions.api.models.message.Sticker:11 of -msgid "" -"Status denoting if this sticker can be used. (Can be false via server " -"boosting)" +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:5 of -msgid "ID of the guild the message was sent in, if it exists." +#: interactions.api.models.message.Attachment:4 of +msgid "" +"``height`` and ``width`` have values based off of ``content_type``, which" +" requires it to be a media file with viewabiltity as a photo, animated " +"photo, GIF and/or video." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.Attachment:8 of +msgid "" +"If `ephemeral` is given, the attachments will automatically be removed " +"after a set period of time. In the case of regular messages, they're " +"available as long as the message associated with the attachment exists." msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." msgstr "" -#: interactions.api.models.message.Message:11 of -msgid "Status dictating if this was a TTS message or not." -msgstr "" - -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" -msgstr "" - -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." -msgstr "" - -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" -msgstr "" - -#: interactions.api.models.message.Message:15 of -msgid "Channels mentioned in this message, if any." +#: interactions.api.models.message.Attachment:15 of +msgid "The size of the attachment file." msgstr "" -#: interactions.api.models.message.Message:16 of -msgid "An array of attachments" +#: interactions.api.models.message.Attachment:16 of +msgid "The CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:17 of -msgid "An array of embeds" +#: interactions.api.models.message.Attachment:17 of +msgid "The proxied/cached CDN URL of the attachment file." msgstr "" -#: interactions.api.models.message.Message:18 of -msgid "Reactions to the message." +#: interactions.api.models.message.Attachment:18 of +msgid "The height of the attachment file." msgstr "" -#: interactions.api.models.message.Message:19 of -msgid "Used for message validation" +#: interactions.api.models.message.Attachment:19 of +msgid "The width of the attachment file." msgstr "" -#: interactions.api.models.message.Message:20 of -msgid "Whether this message is pinned." +#: interactions.api.models.message.Attachment:20 of +msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Message:21 of -msgid "Webhook ID if the message is generated by a webhook." +#: interactions.api.models.message.Emoji:1 of +msgid "A class objecting representing an emoji." msgstr "" -#: interactions.api.models.message.Message:22 of -msgid "Type of message" +#: interactions.api.models.message.Emoji:3 of +msgid "Emoji id" msgstr "" -#: interactions.api.models.message.Message:23 of -msgid "Message activity object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:4 of +msgid "Emoji name." msgstr "" -#: interactions.api.models.message.Message:24 of -msgid "Application object that's sent by Rich Presence" +#: interactions.api.models.message.Emoji:5 of +msgid "Roles allowed to use this emoji" msgstr "" -#: interactions.api.models.message.Message:25 of -msgid "" -"Data showing the source of a message (crosspost, channel follow, add, " -"pin, or replied message)" +#: interactions.api.models.message.Emoji:6 of +msgid "User that created this emoji" msgstr "" -#: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." +#: interactions.api.models.message.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" msgstr "" -#: interactions.api.models.message.Message:27 of -msgid "Message flags" +#: interactions.api.models.message.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" msgstr "" -#: interactions.api.models.message.Message:28 of -msgid "Message interaction object, if the message is sent by an interaction." +#: interactions.api.models.message.Emoji:9 of +msgid "Status denoting if this emoji is animated" msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Emoji:10 of msgid "" -"The thread that started from this message, if any, with a thread member " -"object embedded." -msgstr "" - -#: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." -msgstr "" - -#: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." -msgstr "" - -#: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." -msgstr "" - -#: interactions.api.models.message.Message.get_channel:1 of -msgid "Gets the channel where the message was sent." -msgstr "" - -#: interactions.api.models.message.Message.get_guild:1 of -msgid "Gets the guild where the message was sent." +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.delete:1 of -msgid "Deletes the message." +#: interactions.api.models.message.Emoji.get:1 of +msgid "Gets an emoji." msgstr "" -#: interactions.api.models.message.Message.delete:3 of -msgid "Optional reason to show up in the audit log. Defaults to `None`." +#: interactions.api.models.message.Emoji.get:3 of +msgid "The id of the guild of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:1 of -msgid "This method edits a message. Only available for messages sent by the bot." +#: interactions.api.models.message.Emoji.get:5 of +msgid "The id of the emoji" msgstr "" -#: interactions.api.models.message.Message.edit:3 -#: interactions.api.models.message.Message.reply:3 of -msgid "The contents of the message as a string or string-converted value." +#: interactions.api.models.message.Emoji.get:7 +#: interactions.api.models.message.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" msgstr "" -#: interactions.api.models.message.Message.edit:5 -#: interactions.api.models.message.Message.reply:5 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." +#: interactions.api.models.message.Emoji.get:9 of +msgid "The Emoji as object" msgstr "" -#: interactions.api.models.message.Message.edit:7 -#: interactions.api.models.message.Message.reply:7 of -msgid "A file or list of files to be attached to the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." msgstr "" -#: interactions.api.models.message.Message.edit:9 -#: interactions.api.models.message.Message.reply:9 of -msgid "An embed, or list of embeds for the message." +#: interactions.api.models.message.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" msgstr "" -#: interactions.api.models.message.Message.edit:11 -#: interactions.api.models.message.Message.reply:11 of -msgid "The message interactions/mention limits that the message can refer to." +#: interactions.api.models.message.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" msgstr "" -#: interactions.api.models.message.Message.edit:13 of -msgid "" -"A component, or list of components for the message. If `[]` the " -"components will be removed" +#: interactions.api.models.message.Emoji.delete:1 of +msgid "Deletes the emoji." msgstr "" -#: interactions.api.models.message.Message.edit:15 of -msgid "The edited message as an object." +#: interactions.api.models.message.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" msgstr "" -#: interactions.api.models.message.Message.reply:1 of -msgid "Sends a new message replying to the old." +#: interactions.api.models.message.Emoji.delete:5 of +msgid "The reason of the deletion" msgstr "" -#: interactions.api.models.message.Message.reply:13 of -msgid "A component, or list of components for the message." +#: interactions.api.models.message.Emoji.url:1 of +msgid "Returns the emoji's URL." msgstr "" -#: interactions.api.models.message.Message.reply:15 of -msgid "The sent message as an object." +#: interactions.api.models.message.Emoji.url:3 of +msgid "URL of the emoji" msgstr "" -#: interactions.api.models.message.Message.pin:1 of -msgid "Pins the message to its channel" +#: interactions.api.models.message.EmbedFooter:1 of +msgid "A class object representing the footer of an embed." msgstr "" -#: interactions.api.models.message.Message.unpin:1 of -msgid "Unpins the message from its channel" +#: interactions.api.models.message.EmbedFooter:3 of +msgid "The structure of an embed footer:" msgstr "" -#: interactions.api.models.message.Message.publish:1 of -msgid "" -"Publishes (API calls it crossposts) the message in its channel to any " -"that is followed by." +#: interactions.api.models.message.EmbedFooter:11 of +msgid "Footer text" msgstr "" -#: interactions.api.models.message.Message.publish:3 of -msgid "message object" +#: interactions.api.models.message.EmbedFooter:12 of +msgid "URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:1 of -msgid "Creates a thread from the message." +#: interactions.api.models.message.EmbedFooter:13 of +msgid "Proxied URL of footer icon" msgstr "" -#: interactions.api.models.message.Message.create_thread:3 of -msgid "The name of the thread" +#: interactions.api.models.message.ReactionObject:1 of +msgid "The reaction object." msgstr "" -#: interactions.api.models.message.Message.create_thread:5 of -msgid "" -"duration in minutes to automatically archive the thread after recent " -"activity, can be set to: 60, 1440, 4320, 10080" +#: interactions.api.models.message.ReactionObject:3 of +msgid "The amount of times this emoji has been used to react" msgstr "" -#: interactions.api.models.message.Message.create_thread:8 of -msgid "Boolean to display if the Thread is open to join or private." +#: interactions.api.models.message.ReactionObject:4 of +msgid "A status denoting if the current user reacted using this emoji" msgstr "" -#: interactions.api.models.message.Message.create_thread:10 of -msgid "An optional reason for the audit log" +#: interactions.api.models.message.ReactionObject:5 of +msgid "Emoji information" msgstr "" -#: interactions.api.models.message.Message.create_thread:12 of -msgid "The created thread" +#: interactions.api.models.message.PartialSticker:1 of +msgid "Partial object for a Sticker." msgstr "" -#: interactions.api.models.message.Message.create_reaction:1 of -msgid "Adds a reaction to the message." +#: interactions.api.models.message.PartialSticker:3 +#: interactions.api.models.message.Sticker:3 of +msgid "ID of the sticker" msgstr "" -#: interactions.api.models.message.Message.create_reaction:3 -#: interactions.api.models.message.Message.remove_all_reactions_of:3 -#: interactions.api.models.message.Message.remove_own_reaction_of:3 -#: interactions.api.models.message.Message.remove_reaction_from:3 of -msgid "The Emoji as object or formatted as `name:id`" +#: interactions.api.models.message.PartialSticker:4 +#: interactions.api.models.message.Sticker:5 of +msgid "Name of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions:1 of -msgid "Removes all reactions of the message." +#: interactions.api.models.message.PartialSticker:5 +#: interactions.api.models.message.Sticker:10 of +msgid "Type of sticker format" msgstr "" -#: interactions.api.models.message.Message.remove_all_reactions_of:1 of -msgid "Removes all reactions of one emoji of the message." +#: interactions.api.models.message.Sticker:1 of +msgid "A class object representing a full sticker apart from a partial." msgstr "" -#: interactions.api.models.message.Message.remove_own_reaction_of:1 of -msgid "Removes the own reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:4 of +msgid "ID of the pack the sticker is from." msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:1 of -msgid "Removes another reaction of an emoji of the message." +#: interactions.api.models.message.Sticker:6 of +msgid "Description of the sticker" msgstr "" -#: interactions.api.models.message.Message.remove_reaction_from:5 of -msgid "The user or user_id to remove the reaction of" +#: interactions.api.models.message.Sticker:7 of +msgid "Autocomplete/suggestion tags for the sticker (max 200 characters)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:1 of -msgid "Gets a Message based from its url." +#: interactions.api.models.message.Sticker:8 of +msgid "Previously a sticker asset hash, now an empty string." msgstr "" -#: interactions.api.models.message.Message.get_from_url:3 of -msgid "The full url of the message" +#: interactions.api.models.message.Sticker:9 of +msgid "Type of sticker" msgstr "" -#: interactions.api.models.message.Message.get_from_url:5 of -msgid "The HTTPClient of your bot. Set ` _client=botvar._http``" +#: interactions.api.models.message.Sticker:11 of +msgid "" +"Status denoting if this sticker can be used. (Can be false via server " +"boosting)" msgstr "" -#: interactions.api.models.message.Message.get_from_url:7 of -msgid "The message the URL points to" +#: interactions.api.models.message.Sticker:12 of +msgid "Guild ID that owns the sticker." msgstr "" -#: interactions.api.models.message.Message.url:1 of -msgid "Returns the URL of the message." +#: interactions.api.models.message.Sticker:13 of +msgid "The user that uploaded the sticker." msgstr "" -#: interactions.api.models.message.Message.url:3 of -msgid "The URL of said message" +#: interactions.api.models.message.Sticker:14 of +msgid "The standard sticker's sort order within its pack" msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.misc.po b/docs/locale/ru/LC_MESSAGES/api.models.misc.po index 4c66ffbe1..cfed122db 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,6 +22,91 @@ msgstr "" msgid "Miscellanous Models" msgstr "" +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "An enumeration." +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes +#: interactions.api.models.misc.AutoModTriggerType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.misc.AutoModKeywordPresetTypes:1 +#: interactions.api.models.misc.AutoModTriggerType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:1 of +msgid "A class object used to represent the AutoMod Action Metadata. .. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:6 of +msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus +#: interactions.api.models.misc.Overwrite of +msgid "Variables" +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:8 of +msgid "Channel to which user content should be logged, if set." +msgstr "" + +#: interactions.api.models.misc.AutoModMetaData:9 of +msgid "Timeout duration in seconds, if timed out." +msgstr "" + +#: interactions.api.models.misc.AutoModAction +#: interactions.api.models.misc.AutoModMetaData +#: interactions.api.models.misc.AutoModTriggerMetadata +#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File +#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite +#: interactions.api.models.misc.Snowflake of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:1 of +msgid "" +"A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " +".. note::" +msgstr "" + +#: interactions.api.models.misc.AutoModAction:7 of +msgid "The metadata can be omitted depending on the action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:9 of +msgid "Action type." +msgstr "" + +#: interactions.api.models.misc.AutoModAction:10 of +msgid "Additional metadata needed during execution for this specific action type." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:1 of +msgid "" +"A class object used to represent the trigger metadata from the AutoMod " +"rule object." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:3 of +msgid "Words to match against content." +msgstr "" + +#: interactions.api.models.misc.AutoModTriggerMetadata:4 of +msgid "The internally pre-defined wordsets which will be searched for in content." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -44,6 +129,17 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.Color.black +#: interactions.api.models.misc.Color.blurple +#: interactions.api.models.misc.Color.fuchsia +#: interactions.api.models.misc.Color.green +#: interactions.api.models.misc.Color.red +#: interactions.api.models.misc.Color.white +#: interactions.api.models.misc.Color.yellow +#: interactions.api.models.misc.Snowflake of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -131,11 +227,6 @@ msgstr "" msgid "An object that symbolizes the status per client device per session." msgstr "" -#: interactions.api.models.misc.ClientStatus -#: interactions.api.models.misc.Overwrite of -msgid "Variables" -msgstr "" - #: interactions.api.models.misc.ClientStatus:3 of msgid "User's status set for an active desktop application session" msgstr "" @@ -148,6 +239,10 @@ msgstr "" msgid "User's status set for an active web application session" msgstr "" +#: interactions.api.models.misc.IDMixin:1 of +msgid "A mixin to implement equality and hashing for models that have an id." +msgstr "" + #: interactions.api.models.misc.Image:1 of msgid "This class object allows you to upload Images to the Discord API." msgstr "" @@ -192,9 +287,3 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" - -#: interactions.api.models.attrs_utils.MISSING:1 of -msgid "" -"A pseudosentinel based from an empty object. This does violate PEP, but, " -"I don't care." -msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.po b/docs/locale/ru/LC_MESSAGES/api.models.po index 764507670..4a5447cbe 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.presence.po b/docs/locale/ru/LC_MESSAGES/api.models.presence.po index cd9426f00..347c24dbc 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.presence.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -29,7 +29,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence #: interactions.api.models.presence.PresenceActivity #: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceButtons #: interactions.api.models.presence.PresenceParty #: interactions.api.models.presence.PresenceSecrets #: interactions.api.models.presence.PresenceTimestamp of @@ -44,6 +43,15 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" +#: interactions.api.models.presence.ClientPresence +#: interactions.api.models.presence.PresenceActivity +#: interactions.api.models.presence.PresenceAssets +#: interactions.api.models.presence.PresenceParty +#: interactions.api.models.presence.PresenceSecrets +#: interactions.api.models.presence.PresenceTimestamp of +msgid "Parameters" +msgstr "" + #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -104,63 +112,72 @@ msgid "" msgstr "" #: interactions.api.models.presence.PresenceActivity:7 of +msgid "" +"The ``button`` attribute technically contains an object denoting Presence" +" buttons. However, the gateway dispatches these as strings (of button " +"labels) as bots don't read the button URLs." +msgstr "" + +#: interactions.api.models.presence.PresenceActivity:10 of msgid "The activity name" msgstr "" -#: interactions.api.models.presence.PresenceActivity:8 of +#: interactions.api.models.presence.PresenceActivity:11 of msgid "The activity type" msgstr "" -#: interactions.api.models.presence.PresenceActivity:9 of +#: interactions.api.models.presence.PresenceActivity:12 of msgid "stream url (if type is 1)" msgstr "" -#: interactions.api.models.presence.PresenceActivity:10 of -msgid "Unix timestamp of when the activity was created to the User's session" +#: interactions.api.models.presence.PresenceActivity:13 of +msgid "" +"Unix timestamp (in milliseconds) of when the activity was added to the " +"user's session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:11 of +#: interactions.api.models.presence.PresenceActivity:14 of msgid "Unix timestamps for start and/or end of the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:12 of +#: interactions.api.models.presence.PresenceActivity:15 of msgid "Application ID for the game" msgstr "" -#: interactions.api.models.presence.PresenceActivity:13 of +#: interactions.api.models.presence.PresenceActivity:16 of msgid "What the player is currently doing" msgstr "" -#: interactions.api.models.presence.PresenceActivity:14 of +#: interactions.api.models.presence.PresenceActivity:17 of msgid "Current party status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:15 of +#: interactions.api.models.presence.PresenceActivity:18 of msgid "The emoji used for the custom status" msgstr "" -#: interactions.api.models.presence.PresenceActivity:16 of +#: interactions.api.models.presence.PresenceActivity:19 of msgid "Info for the current players' party" msgstr "" -#: interactions.api.models.presence.PresenceActivity:17 of +#: interactions.api.models.presence.PresenceActivity:20 of msgid "Images for the presence and their associated hover texts" msgstr "" -#: interactions.api.models.presence.PresenceActivity:18 of +#: interactions.api.models.presence.PresenceActivity:21 of msgid "for RPC join/spectate" msgstr "" -#: interactions.api.models.presence.PresenceActivity:19 of +#: interactions.api.models.presence.PresenceActivity:22 of msgid "A status denoting if the activity is a game session" msgstr "" -#: interactions.api.models.presence.PresenceActivity:20 of +#: interactions.api.models.presence.PresenceActivity:23 of msgid "activity flags" msgstr "" -#: interactions.api.models.presence.PresenceActivity:21 of -msgid "Custom buttons shown in the RPC." +#: interactions.api.models.presence.PresenceActivity:24 of +msgid "Custom button labels shown in the status, if any." msgstr "" #: interactions.api.models.presence.PresenceActivity.gateway_json:1 of @@ -179,16 +196,16 @@ msgstr "" msgid "A class object representing all supported Discord activity types." msgstr "" -#: interactions.api.models.presence.PresenceButtons:1 of -msgid "A class object representing the buttons of a presence." +#: interactions.api.models.presence.PresenceActivityType of +msgid "Member Type" msgstr "" -#: interactions.api.models.presence.PresenceButtons:3 of -msgid "Text of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid ":py:class:`int`" msgstr "" -#: interactions.api.models.presence.PresenceButtons:4 of -msgid "URL of the button" +#: interactions.api.models.presence.PresenceActivityType:1 of +msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.presence.ClientPresence:1 of diff --git a/docs/locale/ru/LC_MESSAGES/api.models.role.po b/docs/locale/ru/LC_MESSAGES/api.models.role.po index 9a3430734..c78eeec53 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.role.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.role.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -74,6 +74,13 @@ msgstr "" msgid "The tags this role has" msgstr "" +#: interactions.api.models.role.Role interactions.api.models.role.Role.delete +#: interactions.api.models.role.Role.modify +#: interactions.api.models.role.Role.modify_position +#: interactions.api.models.role.RoleTags of +msgid "Parameters" +msgstr "" + #: interactions.api.models.role.Role.mention:1 of msgid "Returns a string that allows you to mention the given role." msgstr "" @@ -88,6 +95,7 @@ msgstr "" msgid "The string of the mentioned role." msgstr "" +#: interactions.api.models.role.Role.delete #: interactions.api.models.role.Role.mention #: interactions.api.models.role.Role.modify #: interactions.api.models.role.Role.modify_position of @@ -98,12 +106,6 @@ msgstr "" msgid "Deletes the role from the guild." msgstr "" -#: interactions.api.models.role.Role.delete -#: interactions.api.models.role.Role.modify -#: interactions.api.models.role.Role.modify_position of -msgid "Parameters" -msgstr "" - #: interactions.api.models.role.Role.delete:3 of msgid "The id of the guild to delete the role from" msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.team.po b/docs/locale/ru/LC_MESSAGES/api.models.team.po index c058f10df..2958a4252 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.team.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.team.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -51,6 +51,11 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" +#: interactions.api.models.team.Application interactions.api.models.team.Team +#: interactions.api.models.team.TeamMember of +msgid "Parameters" +msgstr "" + #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.user.po b/docs/locale/ru/LC_MESSAGES/api.models.user.po index e9be179ff..5721c56da 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.user.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.user.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -94,6 +94,10 @@ msgstr "" msgid "The user's public flags" msgstr "" +#: interactions.api.models.user.User of +msgid "Parameters" +msgstr "" + #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.webhook.po b/docs/locale/ru/LC_MESSAGES/api.models.webhook.po index 1df6f27fe..be10a2fd1 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.webhook.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,10 +86,7 @@ msgid "" "flow)" msgstr "" -#: interactions.api.models.webhook.Webhook.create:1 of -msgid "Creates a webhook in a channel." -msgstr "" - +#: interactions.api.models.webhook.Webhook #: interactions.api.models.webhook.Webhook.create #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get @@ -97,6 +94,10 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.webhook.Webhook.create:1 of +msgid "Creates a webhook in a channel." +msgstr "" + #: interactions.api.models.webhook.Webhook.create:3 #: interactions.api.models.webhook.Webhook.get:3 of msgid "The HTTPClient of the bot, has to be set to `bot._http`." @@ -128,6 +129,7 @@ msgstr "" #: interactions.api.models.webhook.Webhook.avatar_url #: interactions.api.models.webhook.Webhook.create +#: interactions.api.models.webhook.Webhook.delete #: interactions.api.models.webhook.Webhook.execute #: interactions.api.models.webhook.Webhook.get #: interactions.api.models.webhook.Webhook.modify of @@ -197,28 +199,34 @@ msgid "true if this is a TTS message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:14 of -msgid "embedded ``rich`` content" +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.api.models.webhook.Webhook.execute:16 of -msgid "allowed mentions for the message" +msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "the components to include with the message" +msgid "allowed mentions for the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of -msgid "The files to attach to the message" +msgid "the components to include with the message" msgstr "" #: interactions.api.models.webhook.Webhook.execute:22 of +msgid "The files to attach to the message" +msgstr "" + +#: interactions.api.models.webhook.Webhook.execute:24 of msgid "" "Send a message to a specified thread within a webhook's channel. The " "thread will automatically be unarchived" msgstr "" -#: interactions.api.models.webhook.Webhook.execute:24 of +#: interactions.api.models.webhook.Webhook.execute:26 of msgid "The sent message, if present" msgstr "" @@ -237,3 +245,15 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "An enumeration." msgstr "" + +#: interactions.api.models.webhook.WebhookType of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.webhook.WebhookType:1 of +msgid "Valid values are as follows:" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.po b/docs/locale/ru/LC_MESSAGES/api.po index cb74082a0..239f6eb9e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.po +++ b/docs/locale/ru/LC_MESSAGES/api.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -26,15 +26,15 @@ msgstr "" msgid "Frameworks/Commands" msgstr "" -#: ../../api.rst:24 ../../api.rst:41 +#: ../../api.rst:25 ../../api.rst:42 msgid "Model/Design" msgstr "" -#: ../../api.rst:34 +#: ../../api.rst:35 msgid "Client Connections" msgstr "" -#: ../../api.rst:49 +#: ../../api.rst:50 msgid "Events" msgstr "" @@ -50,6 +50,6 @@ msgstr "" msgid "Interactions" msgstr "" -#: ../../api.rst:32 +#: ../../api.rst:33 msgid "Discord API" msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/client.po b/docs/locale/ru/LC_MESSAGES/client.po index 8e2fd324c..854019fc5 100644 --- a/docs/locale/ru/LC_MESSAGES/client.po +++ b/docs/locale/ru/LC_MESSAGES/client.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -28,48 +28,127 @@ msgid "" "via. WebSocket and HTTP." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Extension of +msgid "Parameters" +msgstr "" + +#: interactions.client.bot.Client:3 of +msgid "The token of the application for authentication and connection." +msgstr "" + +#: interactions.client.bot.Client:5 of +msgid "" +"Allows specific control of permissions the application has when " +"connected. In order to use multiple intents, the | operator is " +"recommended. Defaults to ``Intents.DEFAULT``." +msgstr "" + +#: interactions.client.bot.Client:7 of +msgid "Dictates and controls the shards that the application connects under." +msgstr "" + +#: interactions.client.bot.Client:9 of +msgid "" +"Sets an RPC-like presence on the application when connected to the " +"Gateway." +msgstr "" + +#: interactions.client.bot.Client:11 of +msgid "Sets the default scope of all commands." +msgstr "" + +#: interactions.client.bot.Client:13 of +msgid "" +"Controls whether synchronization in the user-facing API should be " +"automatic or not." +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:3 of +#: interactions.client.bot.Client:16 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:4 of +#: interactions.client.bot.Client:17 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:5 of +#: interactions.client.bot.Client:18 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:6 of +#: interactions.client.bot.Client:19 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:7 of +#: interactions.client.bot.Client:20 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:8 of +#: interactions.client.bot.Client:21 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:9 of +#: interactions.client.bot.Client:22 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:10 of +#: interactions.client.bot.Client:23 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:11 of +#: interactions.client.bot.Client:24 of msgid "The application representation of the client." msgstr "" +#: interactions.client.bot.Client +#: interactions.client.bot.Client.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__raw_channel_create +#: interactions.client.bot.Client.__raw_guild_create +#: interactions.client.bot.Client.__raw_message_create +#: interactions.client.bot.Client.__raw_socket_create +#: interactions.client.bot.Client.__register_events +#: interactions.client.bot.Client.__resolve_commands +#: interactions.client.bot.Client.__sync +#: interactions.client.bot.Client._find_command +#: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client.autocomplete +#: interactions.client.bot.Client.change_presence +#: interactions.client.bot.Client.command +#: interactions.client.bot.Client.component +#: interactions.client.bot.Client.event interactions.client.bot.Client.load +#: interactions.client.bot.Client.message_command +#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify +#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove +#: interactions.client.bot.Client.start +#: interactions.client.bot.Client.user_command +#: interactions.client.bot.Client.wait_until_ready +#: interactions.client.bot.Extension of +msgid "Return type" +msgstr "" + #: interactions.client.bot.Client.guilds:1 of msgid "Returns a list of guilds the bot is in." msgstr "" @@ -90,24 +169,6 @@ msgstr "" msgid "Compares an application command during the synchronization process." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.change_presence -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload interactions.client.bot.Client.remove -#: interactions.client.bot.Client.user_command of -msgid "Parameters" -msgstr "" - #: interactions.client.bot.Client.__compare_sync:3 of msgid "The application command to compare." msgstr "" @@ -129,8 +190,7 @@ msgstr "" #: interactions.client.bot.Client.message_command #: interactions.client.bot.Client.modal interactions.client.bot.Client.modify #: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of +#: interactions.client.bot.Client.user_command of msgid "Returns" msgstr "" @@ -138,24 +198,6 @@ msgstr "" msgid "Whether the command has changed or not." msgstr "" -#: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client._find_command -#: interactions.client.bot.Client.autocomplete -#: interactions.client.bot.Client.command -#: interactions.client.bot.Client.component -#: interactions.client.bot.Client.event interactions.client.bot.Client.load -#: interactions.client.bot.Client.message_command -#: interactions.client.bot.Client.modal interactions.client.bot.Client.modify -#: interactions.client.bot.Client.reload -#: interactions.client.bot.Client.user_command -#: interactions.client.decor.command of -msgid "Return type" -msgstr "" - #: interactions.client.bot.Client._ready:1 of msgid "" "Prepares the client with an internal \"ready\" check to ensure that all " @@ -170,16 +212,21 @@ msgstr "" msgid "Helper method that waits until the websocket is ready." msgstr "" -#: interactions.client.bot.Client.__sync:1 of -msgid "Synchronizes all commands to the API." +#: interactions.client.bot.Client.__resolve_commands:1 of +msgid "Resolves all commands to the command coroutines." msgstr "" +#: interactions.client.bot.Client.__resolve_commands:4 #: interactions.client.bot.Client.__sync:4 of msgid "" "This is an internal method. Do not call it unless you know what you are " "doing!" msgstr "" +#: interactions.client.bot.Client.__sync:1 of +msgid "Synchronizes all commands to the API." +msgstr "" + #: interactions.client.bot.Client.event:1 of msgid "A decorator for listening to events dispatched from the Gateway." msgstr "" @@ -195,12 +242,12 @@ msgid "" msgstr "" #: interactions.client.bot.Client.autocomplete:20 -#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.command:65 #: interactions.client.bot.Client.component:27 #: interactions.client.bot.Client.event:8 -#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.message_command:30 #: interactions.client.bot.Client.modal:24 -#: interactions.client.bot.Client.user_command:28 of +#: interactions.client.bot.Client.user_command:30 of msgid "A callable response." msgstr "" @@ -325,6 +372,14 @@ msgid "" "``True``." msgstr "" +#: interactions.client.bot.Client.command:63 +#: interactions.client.bot.Client.message_command:28 +#: interactions.client.bot.Client.user_command:28 of +msgid "" +"Whether the scope of the command is the default scope set in the client. " +"Defaults to ``True``." +msgstr "" + #: interactions.client.bot.Client.message_command:1 of msgid "" "A decorator for registering a message context menu to the Discord API, as" @@ -584,13 +639,3 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" - -#: interactions.client.decor.command:1 of -msgid "" -"A wrapper designed to interpret the client-facing API for how a command " -"is to be created and used." -msgstr "" - -#: interactions.client.decor.command:4 of -msgid "A list of command payloads." -msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/context.po b/docs/locale/ru/LC_MESSAGES/context.po index 9e1dfbc1e..3917f5b73 100644 --- a/docs/locale/ru/LC_MESSAGES/context.po +++ b/docs/locale/ru/LC_MESSAGES/context.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -55,6 +55,23 @@ msgstr "" msgid "The guild data model." msgstr "" +#: interactions.api.models.attrs_utils.DictSerializerMixin.update +#: interactions.client.context.CommandContext +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.edit +#: interactions.client.context.CommandContext.populate +#: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext +#: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.edit +#: interactions.client.context.ComponentContext.send +#: interactions.client.context._Context +#: interactions.client.context._Context.edit +#: interactions.client.context._Context.popup +#: interactions.client.context._Context.send of +msgid "Parameters" +msgstr "" + #: interactions.client.context._Context.get_channel:1 of msgid "This gets the channel the context was invoked in." msgstr "" @@ -75,14 +92,18 @@ msgstr "" msgid "The channel as object" msgstr "" +#: interactions.client.context.CommandContext.defer +#: interactions.client.context.CommandContext.delete #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.defer #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context.edit #: interactions.client.context._Context.get_channel #: interactions.client.context._Context.get_guild +#: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" msgstr "" @@ -103,17 +124,6 @@ msgid "" "interaction response." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update -#: interactions.client.context.CommandContext.defer -#: interactions.client.context.CommandContext.populate -#: interactions.client.context.CommandContext.send -#: interactions.client.context.ComponentContext.defer -#: interactions.client.context.ComponentContext.send -#: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of -msgid "Parameters" -msgstr "" - #: interactions.client.context.CommandContext.send:4 #: interactions.client.context.ComponentContext.send:4 #: interactions.client.context._Context.send:4 of @@ -129,30 +139,38 @@ msgstr "" #: interactions.client.context.CommandContext.send:8 #: interactions.client.context.ComponentContext.send:8 #: interactions.client.context._Context.send:8 of -msgid "An embed, or list of embeds for the message." +msgid "" +"The attachments to attach to the message. Needs to be uploaded to the CDN" +" first" msgstr "" #: interactions.client.context.CommandContext.send:10 #: interactions.client.context.ComponentContext.send:10 #: interactions.client.context._Context.send:10 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "A component, or list of components for the message." +msgid "The message interactions/mention limits that the message can refer to." msgstr "" #: interactions.client.context.CommandContext.send:14 #: interactions.client.context.ComponentContext.send:14 #: interactions.client.context._Context.send:14 of -msgid "Whether the response is hidden or not." +msgid "A component, or list of components for the message." msgstr "" #: interactions.client.context.CommandContext.send:16 #: interactions.client.context.ComponentContext.send:16 #: interactions.client.context._Context.send:16 of +msgid "Whether the response is hidden or not." +msgstr "" + +#: interactions.client.context.CommandContext.send:18 +#: interactions.client.context.ComponentContext.send:18 +#: interactions.client.context._Context.send:18 of msgid "The sent message as an object." msgstr "" @@ -262,6 +280,12 @@ msgstr "" msgid "The guild's preferred language, if invoked in a guild." msgstr "" +#: interactions.client.context.CommandContext:29 of +msgid "" +"Bitwise set of permissions the bot has within the channel the interaction" +" was sent from." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" diff --git a/docs/locale/ru/LC_MESSAGES/enums.po b/docs/locale/ru/LC_MESSAGES/enums.po index 33035829d..ec2f643f5 100644 --- a/docs/locale/ru/LC_MESSAGES/enums.po +++ b/docs/locale/ru/LC_MESSAGES/enums.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -76,6 +76,39 @@ msgstr "" msgid "4" msgstr "" +#: interactions.client.enums.ApplicationCommandType +#: interactions.client.enums.ButtonStyle +#: interactions.client.enums.ComponentType +#: interactions.client.enums.InteractionCallbackType +#: interactions.client.enums.InteractionType interactions.client.enums.Locale +#: interactions.client.enums.OptionType +#: interactions.client.enums.PermissionType +#: interactions.client.enums.TextStyleType of +msgid "Member Type" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.client.enums.ApplicationCommandType:1 +#: interactions.client.enums.ButtonStyle:1 +#: interactions.client.enums.ComponentType:1 +#: interactions.client.enums.InteractionCallbackType:1 +#: interactions.client.enums.InteractionType:1 +#: interactions.client.enums.Locale:1 interactions.client.enums.OptionType:1 +#: interactions.client.enums.PermissionType:1 +#: interactions.client.enums.TextStyleType:1 of +msgid "Valid values are as follows:" +msgstr "" + #: interactions.client.enums.InteractionType:1 of msgid "An enumerable object representing the types of interactions." msgstr "" @@ -149,6 +182,14 @@ msgstr "" msgid "An enumerable object representing Discord locales." msgstr "" +#: interactions.client.enums.Locale:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.enums.Locale:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/events.po b/docs/locale/ru/LC_MESSAGES/events.po new file mode 100644 index 000000000..b91a1dc02 --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/events.po @@ -0,0 +1,335 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../events.rst:2 +msgid "Event Documentation" +msgstr "" + +#: ../../events.rst:4 +msgid "" +"You all probably already know that there are several events, internal and" +" from Discord, that you can receive with your bot. This page will lead " +"you through all dispatched internal events and a few from Discord." +msgstr "" + +#: ../../events.rst:10 +msgid "How to listen for events" +msgstr "" + +#: ../../events.rst:12 +msgid "Generally, you can listen to an event like this:" +msgstr "" + +#: ../../events.rst:33 +msgid "" +"```` represents the Discord event name - but lowercase and any spaces " +"replaced with ``_``." +msgstr "" + +#: ../../events.rst:35 +msgid "For example:" +msgstr "" + +#: ../../events.rst:37 +msgid "``READY`` -> ``on_ready``" +msgstr "" + +#: ../../events.rst:38 +msgid "``GUILD MEMBER ADD`` -> ``on_guild_member_add``" +msgstr "" + +#: ../../events.rst:40 +msgid "" +"``(...)`` represents the different arguments a function takes. Those " +"arguments differ per event." +msgstr "" + +#: ../../events.rst:44 +msgid "" +"Now, let us have a look at different events and how they work, starting " +"with internal events." +msgstr "" + +#: ../../events.rst:47 +msgid "Internal Events" +msgstr "" + +#: ../../events.rst:49 +msgid "" +"All events mentioned in this section have the exact naming as they must " +"be put into the function." +msgstr "" + +#: ../../events.rst:51 +msgid "There are several different internal events:" +msgstr "" + +#: ../../events.rst:53 +msgid "``raw_socket_create``" +msgstr "" + +#: ../../events.rst:54 +msgid "``on_start``" +msgstr "" + +#: ../../events.rst:55 +msgid "``on_interaction``" +msgstr "" + +#: ../../events.rst:56 +msgid "``on_command``" +msgstr "" + +#: ../../events.rst:57 +msgid "``on_component``" +msgstr "" + +#: ../../events.rst:58 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:59 +msgid "``on_modal``" +msgstr "" + +#: ../../events.rst:61 +msgid "Lets now have a look at those events in detail:" +msgstr "" + +#: ../../events.rst:64 +msgid "Event: ``raw_socket_create``" +msgstr "" + +#: ../../events.rst:65 +msgid "" +"This event fires on any event sent by Discord, including ``Typing Start``" +" and ``Voice State Update``. ``Hello``, ``Resumed``, ``Reconnect`` and " +"``Invalid Session`` still will not be dispatched." +msgstr "" + +#: ../../events.rst:68 +msgid "" +"The function handling the event should take in one argument, the type of " +"this argument is a ``dict``." +msgstr "" + +#: ../../events.rst:70 +msgid "" +"The value of the argument will be the *raw* data sent from Discord, so it" +" is not recommended to use that event as long as you don't absolutely " +"need it." +msgstr "" + +#: ../../events.rst:75 +msgid "Event: ``on_start``" +msgstr "" + +#: ../../events.rst:76 +msgid "This event fires only when the bot is started." +msgstr "" + +#: ../../events.rst:78 ../../events.rst:161 +msgid "This function takes no arguments." +msgstr "" + +#: ../../events.rst:81 +msgid "Unlike ``on_ready``, this event will never be dispatched more than once." +msgstr "" + +#: ../../events.rst:84 +msgid "Event: ``on_interaction``" +msgstr "" + +#: ../../events.rst:85 +msgid "" +"This event fires on any interaction (commands, components, autocomplete " +"and modals)." +msgstr "" + +#: ../../events.rst:87 +msgid "" +"The function needs one argument. It will have the type ``CommandContext``" +" or ``ComponentContext``." +msgstr "" + +#: ../../events.rst:89 +msgid "" +"Because you will have to check for everything, from the " +"``InteractionType`` to any data inside the context, we do not recommend " +"using this event unless you have experience with it." +msgstr "" + +#: ../../events.rst:94 +msgid "Event: ``on_command``" +msgstr "" + +#: ../../events.rst:95 +msgid "" +"This event fires on any Application Command (slash command + context menu" +" command) used." +msgstr "" + +#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +msgid "The function takes in one argument of the type ``CommandContext``." +msgstr "" + +#: ../../events.rst:99 +msgid "" +"Using this event, you will have to manually check everything, from name " +"to whether the used commands have sub commands, options or anything else " +"- everything will be in the raw context and you will have to search for " +"it" +msgstr "" + +#: ../../events.rst:104 +msgid "Event: ``on_component``" +msgstr "" + +#: ../../events.rst:105 +msgid "" +"This event fires on any Component used (for now, those are Buttons and " +"Select Menus)." +msgstr "" + +#: ../../events.rst:107 +msgid "The function takes in one argument of the type ``ComponentContext``." +msgstr "" + +#: ../../events.rst:109 +msgid "" +"Like ``on_command``, you will have to manually check for everything, i.e " +"for custom id and component type. Also, you will have to look through the" +" argument to find the selected choices, if you have a select menu." +msgstr "" + +#: ../../events.rst:114 +msgid "Event: ``on_autocomplete``" +msgstr "" + +#: ../../events.rst:115 +msgid "This event fires on any autocomplete triggered." +msgstr "" + +#: ../../events.rst:119 +msgid "" +"As already in the events above, you will have to get the important values" +" yourself. Those values are here the autocompleted option and the user " +"input." +msgstr "" + +#: ../../events.rst:124 +msgid "Event: ``on_modal``" +msgstr "" + +#: ../../events.rst:125 +msgid "This event fires on every modal that is submitted." +msgstr "" + +#: ../../events.rst:129 +msgid "" +"You will have to get all values yourself and check what modal was used " +"when using this event." +msgstr "" + +#: ../../events.rst:132 +msgid "" +"Additionally, if you struggle with getting the values, you can check " +":ref:`how it is handled internally `." +msgstr "" + +#: ../../events.rst:136 +msgid "After this, let us look at events from the Discord API." +msgstr "" + +#: ../../events.rst:139 +msgid "Discord API Events" +msgstr "" + +#: ../../events.rst:141 +msgid "" +"Events in this section do not match the name needed to put into the " +"function. Please check :ref:`above ` for how to get the correct name." +msgstr "" + +#: ../../events.rst:145 +msgid "" +"There are a lot of events dispatched by the Discord API. All of those can" +" be found `here`_." +msgstr "" + +#: ../../events.rst:147 +msgid "" +"The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" +" ``TYPING START`` are not dispatched by the library." +msgstr "" + +#: ../../events.rst:149 +msgid "" +"``TYPING START`` will be included in the raw socket create event. You can" +" also listen for it if you choose to subclass the WebSocketClient" +msgstr "" + +#: ../../events.rst:152 +msgid "" +"The event ``VOICE STATE UPDATE`` can be only received with the voice " +":ref:`Extension `." +msgstr "" + +#: ../../events.rst:155 +msgid "Let's now have a look at a few events:" +msgstr "" + +#: ../../events.rst:158 +msgid "Event: ``READY``" +msgstr "" + +#: ../../events.rst:159 +msgid "" +"This event fires whenever ``READY`` is dispatched by Discord. This " +"happens when connecting to the web socket server." +msgstr "" + +#: ../../events.rst:164 +msgid "" +"Due to the bot reconnecting during runtime, ``on_ready`` will be " +"dispatched multiple times. If you rely on ``on_ready`` to do certain " +"things once, check against a global variable as shown below:" +msgstr "" + +#: ../../events.rst:181 +msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" +msgstr "" + +#: ../../events.rst:182 +msgid "" +"These events fire whenever a member joins a guild or a member of a guild " +"gets modified." +msgstr "" + +#: ../../events.rst:184 +msgid "The function takes in one argument of the type ``GuildMember``." +msgstr "" + +#: ../../events.rst:186 +msgid "" +"The argument has the same methods as a normal ``Member`` object, except " +"the methods *do not take in a guild id*. Please keep that in mind when " +"using this event." +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/ext.base.po b/docs/locale/ru/LC_MESSAGES/ext.base.po index b0275dd49..5a2fe3730 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.base.po +++ b/docs/locale/ru/LC_MESSAGES/ext.base.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -62,14 +62,21 @@ msgstr "" msgid "The objects running under the service." msgstr "" -#: interactions.ext.base.Base._check_service:1 of -msgid "Checks whether the service already exists within the list or not." +#: interactions.ext.base.Base interactions.ext.base.Base._check_service +#: interactions.ext.base.Base.add_service +#: interactions.ext.base.Base.remove_service interactions.ext.base.build of +msgid "Parameters" msgstr "" -#: interactions.ext.base.Base._check_service +#: interactions.ext.base.Base interactions.ext.base.Base._check_service #: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service of -msgid "Parameters" +#: interactions.ext.base.Base.remove_service +#: interactions.ext.base.Base.services interactions.ext.base.build of +msgid "Return type" +msgstr "" + +#: interactions.ext.base.Base._check_service:1 of +msgid "Checks whether the service already exists within the list or not." msgstr "" #: interactions.ext.base.Base._check_service:3 of @@ -87,13 +94,6 @@ msgstr "" msgid "Whether the service exists or not." msgstr "" -#: interactions.ext.base.Base._check_service -#: interactions.ext.base.Base.add_service -#: interactions.ext.base.Base.remove_service -#: interactions.ext.base.Base.services of -msgid "Return type" -msgstr "" - #: interactions.ext.base.Base.add_service:1 of msgid "" "Adds a service to the 3rd party for ease of accessibility in calling. The" diff --git a/docs/locale/ru/LC_MESSAGES/ext.converter.po b/docs/locale/ru/LC_MESSAGES/ext.converter.po index 8f0df6d4b..fdd604d85 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.converter.po +++ b/docs/locale/ru/LC_MESSAGES/ext.converter.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,21 +40,23 @@ msgstr "" msgid "The second object to be converted." msgstr "" -#: interactions.ext.converter.Converter._map_attr:1 of -msgid "Maps the attributes between the models for conversion reference." +#: interactions.ext.converter.Converter +#: interactions.ext.converter.Converter.get_attr of +msgid "Parameters" msgstr "" +#: interactions.ext.converter.Converter #: interactions.ext.converter.Converter._map_attr #: interactions.ext.converter.Converter.difference #: interactions.ext.converter.Converter.get_attr #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Returns" +msgid "Return type" msgstr "" -#: interactions.ext.converter.Converter._map_attr:3 of -msgid "A dictionary of attributes mapped." +#: interactions.ext.converter.Converter._map_attr:1 of +msgid "Maps the attributes between the models for conversion reference." msgstr "" #: interactions.ext.converter.Converter._map_attr @@ -63,15 +65,15 @@ msgstr "" #: interactions.ext.converter.Converter.get_attrs #: interactions.ext.converter.Converter.missing #: interactions.ext.converter.Converter.ref of -msgid "Return type" +msgid "Returns" msgstr "" -#: interactions.ext.converter.Converter.get_attr:1 of -msgid "Gets a mapped attribute." +#: interactions.ext.converter.Converter._map_attr:3 of +msgid "A dictionary of attributes mapped." msgstr "" -#: interactions.ext.converter.Converter.get_attr of -msgid "Parameters" +#: interactions.ext.converter.Converter.get_attr:1 of +msgid "Gets a mapped attribute." msgstr "" #: interactions.ext.converter.Converter.get_attr:3 of diff --git a/docs/locale/ru/LC_MESSAGES/ext.error.po b/docs/locale/ru/LC_MESSAGES/ext.error.po index 763b1799e..ca0f95fca 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.error.po +++ b/docs/locale/ru/LC_MESSAGES/ext.error.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,22 @@ msgstr "" msgid "The service specified does not exist." msgstr "" +#: interactions.ext.error.ErrorType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.error.ErrorType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/ext.gettingstarted.po b/docs/locale/ru/LC_MESSAGES/ext.gettingstarted.po index 1c21e3eb3..0de3ee399 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.gettingstarted.po +++ b/docs/locale/ru/LC_MESSAGES/ext.gettingstarted.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/ru/LC_MESSAGES/ext.po b/docs/locale/ru/LC_MESSAGES/ext.po index ee17491a5..f3afe86ec 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.po +++ b/docs/locale/ru/LC_MESSAGES/ext.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/ru/LC_MESSAGES/ext.version.po b/docs/locale/ru/LC_MESSAGES/ext.version.po index 7ad8f183b..850829199 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.version.po +++ b/docs/locale/ru/LC_MESSAGES/ext.version.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -50,6 +50,18 @@ msgstr "" msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.Version interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor of +msgid "Return type" +msgstr "" + #: interactions.ext.version.VersionAuthor.is_co_author:1 of msgid "Returns whether the author is a co-author or not." msgstr "" @@ -58,6 +70,22 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.ext.version.VersionAlphanumericType of +msgid "Member Type" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.ext.version.VersionAlphanumericType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + #: enum.Enum._generate_next_value_:1 of msgid "Generate the next value when not given." msgstr "" @@ -132,12 +160,6 @@ msgstr "" msgid "The author of the version, if one exists." msgstr "" -#: interactions.ext.version.Version.author -#: interactions.ext.version.Version.authors -#: interactions.ext.version.Version.extend_version of -msgid "Return type" -msgstr "" - #: interactions.ext.version.Version.author #: interactions.ext.version.Version.extend_version of msgid "Raises" @@ -163,10 +185,6 @@ msgstr "" msgid "Allows the version to be extended upon with an alphanumeric format." msgstr "" -#: interactions.ext.version.Version.extend_version of -msgid "Parameters" -msgstr "" - #: interactions.ext.version.Version.extend_version:3 of msgid "" "Key-word arguments to be supplied as ``alpha``, ``beta`` or ``rc`` " diff --git a/docs/locale/ru/LC_MESSAGES/faq.po b/docs/locale/ru/LC_MESSAGES/faq.po index be61d009d..1bf421161 100644 --- a/docs/locale/ru/LC_MESSAGES/faq.po +++ b/docs/locale/ru/LC_MESSAGES/faq.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -31,45 +31,46 @@ msgstr "" #: ../../faq.rst:8 msgid "" "This page is maintained by the Helpers of the Discord server, and " -"developers at their discretion. For any comments, feedback or concerns " -"please consider joining our server and bringing it up in our support " -"channels." +"developers at their discretion. For any comments, feedback or concerns, " +"please consider joining our `Discord Server`_ and bringing it up in our " +"support channels." msgstr "" -#: ../../faq.rst:14 -msgid "discord.py is dead! Will this library die too?" -msgstr "" - -#: ../../faq.rst:15 ../../faq.rst:25 -msgid "The short answer is: **no**." +#: ../../faq.rst:15 +msgid "" +"The current state of discord.py and its further development is unclear. " +"What about your library?" msgstr "" -#: ../../faq.rst:17 +#: ../../faq.rst:16 msgid "" -"The decision to become a standalone library that is now an API wrapper " -"for the Discord API was made before Danny posted his gist on GitHub about" -" ceasing development of discord.py. This is the official statement from " -"the library developer regarding this:" +"We have no plans on stopping development and will be available for you. " +"If you have any questions about the internal development, feel free to " +"ask in the Discord support server." msgstr "" -#: ../../faq.rst:24 +#: ../../faq.rst:21 msgid "Are you going to/will/consider fork(ing) discord.py?" msgstr "" -#: ../../faq.rst:27 +#: ../../faq.rst:22 +msgid "The short answer is: **no**." +msgstr "" + +#: ../../faq.rst:24 msgid "" "The long answer is a list of numerous reasons as to why this decision was" " made:" msgstr "" -#: ../../faq.rst:29 +#: ../../faq.rst:26 msgid "" "There are/will be numerous forks out there for discord.py, and because of" " that, we cannot safely guarantee our ability to help users out who may " "be using their own form of modified code." msgstr "" -#: ../../faq.rst:30 +#: ../../faq.rst:27 msgid "" "The original purpose of this library was to act as an extension of " "discord.py, but due to the issue of constantly having to monkeypatch " @@ -78,7 +79,7 @@ msgid "" "not change anything from our issue of avoiding this." msgstr "" -#: ../../faq.rst:31 +#: ../../faq.rst:28 msgid "" "The goal of this library is to solely implement support and integrate the" " use of interactions from the Discord API. Making this library unique in " @@ -86,7 +87,7 @@ msgid "" "standards at the time." msgstr "" -#: ../../faq.rst:32 +#: ../../faq.rst:29 msgid "" "The message intent will inevitably be forced as a privileged intent in " "April 2022. The practicality of trying to support message commands will " @@ -95,7 +96,7 @@ msgid "" "reason for applying for this privileged intent." msgstr "" -#: ../../faq.rst:33 +#: ../../faq.rst:30 msgid "" "Forking discord.py would be a massive change to our current codebase, " "throwing away all of the effort we've put into it so far, and basically " @@ -105,15 +106,27 @@ msgid "" " this is pointless." msgstr "" -#: ../../faq.rst:36 +#: ../../faq.rst:34 msgid "Will discord.py be able to work with this library?" msgstr "" -#: ../../faq.rst:37 +#: ../../faq.rst:35 msgid "The short answer is: **yes.**" msgstr "" -#: ../../faq.rst:39 +#: ../../faq.rst:38 +msgid "" +"Even if it is working, we strongly advise against using d.py with our " +"library." +msgstr "" + +#: ../../faq.rst:40 +msgid "" +"Additionally, we **will not** give help for any issue resulting from " +"using d.py with our library except of \"Do not use discord.py\"." +msgstr "" + +#: ../../faq.rst:44 msgid "" "However, the term \"work\" is loosely structured here. Imagine it like " "taping a hole in the wall instead of repairing the wall. We're " @@ -124,11 +137,11 @@ msgid "" "able to plug in some classes, but the data conversion **must be exact.**" msgstr "" -#: ../../faq.rst:44 +#: ../../faq.rst:49 msgid "What does that mean? Well, we'll show you:" msgstr "" -#: ../../faq.rst:73 +#: ../../faq.rst:78 msgid "" "Both of these variables ``interactions`` and ``dpy`` will be able to run " "in the same established environment, and additionally will both function " @@ -137,7 +150,7 @@ msgid "" "as asyncio tasks, and runs them under one singular loop." msgstr "" -#: ../../faq.rst:77 +#: ../../faq.rst:82 msgid "" "Compared to traditional startup commands, ``interactions.ready()`` and " "``dpy.start()`` is used instead of the typical ``interactions.start()`` " @@ -145,11 +158,11 @@ msgid "" "``asyncio.gather()`` works with coroutines, hence the transition." msgstr "" -#: ../../faq.rst:81 +#: ../../faq.rst:86 msgid "What about the models, though? That's a simple answer:" msgstr "" -#: ../../faq.rst:96 +#: ../../faq.rst:101 msgid "" "Both of these will be able to both run and give their proper value. It is" " *very* important to note here, though, that you **must** be returning " @@ -158,32 +171,32 @@ msgid "" "that is going on here." msgstr "" -#: ../../faq.rst:101 +#: ../../faq.rst:107 msgid "Where should we go with discord.py being gone?" msgstr "" -#: ../../faq.rst:102 +#: ../../faq.rst:108 msgid "" "The most *biased* answer would be to, of course, *use interactions.py.* " "We already offer a lot of the integral API wrapper aspects as discord.py " "does, however, we only specialize in interactions. Which means things " -"such as these won't be supported officially by us (but might be available" -" as 3rd parties):" +"such as these won't be supported by our core library itself (but might be" +" available as :ref:`Extension Libraries `):" msgstr "" -#: ../../faq.rst:106 +#: ../../faq.rst:112 msgid "Cooldowns" msgstr "" -#: ../../faq.rst:107 +#: ../../faq.rst:113 msgid "Message commands" msgstr "" -#: ../../faq.rst:108 +#: ../../faq.rst:114 msgid "Voice clients" msgstr "" -#: ../../faq.rst:110 +#: ../../faq.rst:116 msgid "" "There are other libraries of course though. As a general rule of thumb, " "if you're looking to do mainly slash commands and that tidbit then we " @@ -192,19 +205,19 @@ msgid "" "versatile, then we recommend these sources:" msgstr "" -#: ../../faq.rst:114 +#: ../../faq.rst:120 msgid "`Pycord`_ (the most actively maintained)." msgstr "" -#: ../../faq.rst:115 +#: ../../faq.rst:121 msgid "`NAFF`_ (high level, \"hackable\" API wrapper with ease of modification)." msgstr "" -#: ../../faq.rst:116 +#: ../../faq.rst:122 msgid "`nextcord`_ (more abstract and fast approach to the Discord API)." msgstr "" -#: ../../faq.rst:118 +#: ../../faq.rst:124 msgid "" "It's personally recommended from the library developer to seek these " "paths instead of sticking to an older version of a library, e.g. " @@ -212,22 +225,22 @@ msgid "" "more pending changes to the API by Discord engineers." msgstr "" -#: ../../faq.rst:122 +#: ../../faq.rst:129 msgid "Why are you not supporting cooldowns?" msgstr "" -#: ../../faq.rst:123 +#: ../../faq.rst:130 msgid "" "Cooldowns aren't really an actual feature of the Discord API itself, but " -"rather more of a convienent feature implemented in discord.py in order to" +"rather more of a convenient feature implemented in discord.py in order to" " avoid spamming of commands." msgstr "" -#: ../../faq.rst:126 +#: ../../faq.rst:133 msgid "**What if people spam slash/sub commands?**" msgstr "" -#: ../../faq.rst:128 +#: ../../faq.rst:135 msgid "" "That's the neat part: it's really hard to do that, and most of the time, " "they won't. Unless they copy the exact string that was used when you open" @@ -235,16 +248,16 @@ msgid "" " able to know how to do this. However, if you as a bot developer feel at " "unease about this, you are more than welcome to implement your own " "cooldown methods yourself. Cooldowns were an ultimatum that came as the " -"result of message commands being able to be spammable, and since we won't" +"result of message commands being able to be spam-able, and since we won't" " be supporting them, there's no feasibility to having them in our " "library." msgstr "" -#: ../../faq.rst:135 +#: ../../faq.rst:143 msgid "Will we not be able to create message commands?" msgstr "" -#: ../../faq.rst:136 +#: ../../faq.rst:144 msgid "" "This is a tricky question to really answer. If you want the *technical* " "answer: you can definitely create them with our library, however, you'll " @@ -256,51 +269,255 @@ msgid "" "handler framework before in their entire life." msgstr "" -#: ../../faq.rst:144 +#: ../../faq.rst:152 +msgid "Extension Libraries" +msgstr "" + +#: ../../faq.rst:153 +msgid "A list of all official extensions can be found `on our github page`_" +msgstr "" + +#: ../../faq.rst:155 +msgid "Those are (at the moment):" +msgstr "" + +#: ../../faq.rst:157 +msgid "" +"A `voice client`_ - which is still WIP, but it is able to listen for the " +"``VOICE_STATE_UPDATE`` event." +msgstr "" + +#: ../../faq.rst:158 +msgid "An `autosharder`_ for automatic sharding" +msgstr "" + +#: ../../faq.rst:159 +msgid "" +"`wait_for`_ allows listening and waiting for a specific event or a " +"component inside a function" +msgstr "" + +#: ../../faq.rst:160 +msgid "`files`_ for file sending with ctx" +msgstr "" + +#: ../../faq.rst:161 +msgid "`Molter`_ for message commands" +msgstr "" + +#: ../../faq.rst:162 +msgid "`enhanced`_ which enhances the DX in general" +msgstr "" + +#: ../../faq.rst:163 +msgid "A `paginator`_ for paginating embeds on messages using components" +msgstr "" + +#: ../../faq.rst:164 +msgid "" +"`persistence`_ - for storing data inside your custom IDs (as an " +"alternative to ``wait_for``)" +msgstr "" + +#: ../../faq.rst:165 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:167 +msgid "" +"Below are a few unofficial exts (for the time being) which implement some" +" functionality similar to what d.py had:" +msgstr "" + +#: ../../faq.rst:169 +msgid "`checks and cooldowns`_" +msgstr "" + +#: ../../faq.rst:170 +msgid "`tasks`_" +msgstr "" + +#: ../../faq.rst:171 +msgid "" +"`get`_ for getting objects from the discord API (will be implemented into" +" the core library at a later time)" +msgstr "" + +#: ../../faq.rst:173 +msgid "Usage examples can usually be found at the linked page" +msgstr "" + +#: ../../faq.rst:177 +msgid "Can I make an Extension Library myself?" +msgstr "" + +#: ../../faq.rst:178 +msgid "" +"Yeah, you can! We have a special channel reserved for the development of " +"external libraries! You can also read `this `_ for more information." +msgstr "" + +#: ../../faq.rst:183 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:145 +#: ../../faq.rst:184 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:152 +#: ../../faq.rst:191 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:159 +#: ../../faq.rst:198 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:163 +#: ../../faq.rst:202 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:164 +#: ../../faq.rst:203 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:169 -msgid "My question is not answered on here!" +#: ../../faq.rst:208 +msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:209 msgid "" -"Please join our Discord server for any further support regarding our " -"library and/or any integration code depending on it." +"It is not supported due to an decision of the core developer team. There " +"are two ways to do it:" +msgstr "" + +#: ../../faq.rst:212 +msgid "Using ``await channel.send`` instead" +msgstr "" + +#: ../../faq.rst:213 +msgid "Using the `files`_ extension" +msgstr "" + +#: ../../faq.rst:217 +msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" +msgstr "" + +#: ../../faq.rst:218 +msgid "" +"This is quite simple: The argument ``embed`` got deprecated by Discord. " +"The new naming is ``embeds``." +msgstr "" + +#: ../../faq.rst:222 +msgid "How can I check what exception happened during a request?" +msgstr "" + +#: ../../faq.rst:223 +msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." +msgstr "" + +#: ../../faq.rst:225 +msgid "Instead you have to do it like this:" +msgstr "" + +#: ../../faq.rst:228 +msgid "" +"This feature will be implemented with version 4.3 and is currently only " +"available on beta/unstable" +msgstr "" + +#: ../../faq.rst:242 +msgid "" +"You can additionally get the exact reason for why the exception occurred " +"with ``e.message`` or ``e.lookup(e.code)``" +msgstr "" + +#: ../../faq.rst:246 +msgid "My message content is always empty! How can I fix this?" +msgstr "" + +#: ../../faq.rst:247 +msgid "" +"This happens because you did not enable the intent for message content. " +"Enable it on the developer portal and add it into the ``Client`` " +"definition as the following: ``bot = interactions.Client(..., " +"intents=interactions.Intents.DEFAULT | " +"interactions.Intents.GUILD_MESSAGE_CONTENT)`` You do not have to use " +"``Intents.DEFAULT``, it can be any other intent(s) you need!" +msgstr "" + +#: ../../faq.rst:254 +msgid "Is there something like ``Cogs``?" +msgstr "" + +#: ../../faq.rst:255 +msgid "" +"Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " +"Libraries `. This is because an extension " +"Library is basically the same thing as a downloadable \"cog\". This is " +"how you create an extension for yourself:" +msgstr "" + +#: ../../faq.rst:283 +msgid "It's nothing more than that." +msgstr "" + +#: ../../faq.rst:285 +msgid "" +"Since ``@bot.X`` decorators don't work in extensions, you have to use " +"these:" msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#: ../../faq.rst:287 +msgid "For event listeners, use ``@interactions.extension_listener``" +msgstr "" + +#: ../../faq.rst:288 +msgid "For component listeners, use ``@interactions.extension_component``" +msgstr "" + +#: ../../faq.rst:289 +msgid "For modal listeners, use ``@interactions.extension_modal``" +msgstr "" + +#: ../../faq.rst:290 +msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" +msgstr "" + +#: ../../faq.rst:294 +msgid "" +"``channel.members`` does not exist, how do I get the people in a voice " +"channel?" +msgstr "" + +#: ../../faq.rst:295 +msgid "" +"``channel.members`` actually does exist, but is reserved for threads. " +"There is no attribute for people in a voice channel by the API. The only " +"possible thing is to install the `voice client`_ extension and listen for" +" the ``VOICE_STATE_UPDATE`` event and then having a local cache that gets" +" updated when a member joins or leaves." +msgstr "" + +#: ../../faq.rst:301 +msgid "My question is not answered on here!" +msgstr "" + +#: ../../faq.rst:302 +msgid "" +"Please join our `Discord Server`_ for any further support regarding our " +"library and/or any integration code depending on it." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/get.po b/docs/locale/ru/LC_MESSAGES/get.po new file mode 100644 index 000000000..d5b9fb58f --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/get.po @@ -0,0 +1,230 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../get.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.client.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.client.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.client.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.client.get.get:5 interactions.client.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.client.get.get:6 interactions.client.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.client.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.client.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.client.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.client.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.client.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.client.get.get:20 of +msgid "" +"Technically, there is no need for an ``await`` if there is an object " +"found in the cache. Because of the fact, that, as long as you don't " +"enforce the cache, the function will get the object from HTTP, if it is " +"not in the cache, you still have to await it. This has been done to " +"reduce confusion on whether the object origins from an HTTP call or a " +"cache result and to remove the extra step for you to check if the " +"returned object is an awaitable or not." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.client.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.client.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.client.get.get:30 of +msgid "" +"This forces the method to only return from cache (if the object is not " +"found it will return ``None``). If you use this, you don't need to await " +"the method." +msgstr "" + +#: interactions.client.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.client.get.get:34 of +msgid "" +"This forces the method to make an HTTP request to the discord API and " +"return the result of it. If you use this, you have to await the method." +msgstr "" + +#: interactions.client.get.get:38 of +msgid "" +"If you are a PyCharm user, please be aware of a bug that causes incorrect" +" suggestions to appear if using an enum. Even if PyCharm shows a normal " +"object as result, you have to await the method if you enforce HTTP. To " +"prevent this bug from happening it is suggested using ``force=\"http\"`` " +"instead of the enum." +msgstr "" + +#: interactions.client.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.client.get.get:45 of +msgid "" +"Here you will see two examples on how to get a single objects and the " +"variations of how the object can be gotten." +msgstr "" + +#: interactions.client.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.client.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.client.get.get:88 of +msgid "" +"Both examples should have given you a basic overview on how to get a " +"single object. Now we will move on with lists of objects." +msgstr "" + +#: interactions.client.get.get:92 of +msgid "" +"The ``parent_id`` represents the channel or guild id that belongs to the " +"objects you want to get. It is called ``parent_id`` because " +"``guild_or_channel_id`` would be horrible to type out every time." +msgstr "" + +#: interactions.client.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.client.get.get:96 of +msgid "" +"Here you will see 1 example of how to get a list of objects. The " +"possibilities on how to force (and their results) are the same as in the " +"examples above." +msgstr "" + +#: interactions.client.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.client.get.get:115 of +msgid "" +"If you enforce cache when getting a list of objects, found objets will be" +" placed into the list and not found objects will be placed as ``None`` " +"into the list." +msgstr "" + +#: interactions.client.get.get of +msgid "Parameters" +msgstr "" + +#: interactions.client.get.get of +msgid "Return type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.client.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.client.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.client.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.client.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.client.get.Force:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/index.po b/docs/locale/ru/LC_MESSAGES/index.po index 62d4c17de..91465f9df 100644 --- a/docs/locale/ru/LC_MESSAGES/index.po +++ b/docs/locale/ru/LC_MESSAGES/index.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -156,49 +156,42 @@ msgstr "" msgid "Please look at our pages below to find out where to go." msgstr "" -#: ../../index.rst:57 +#: ../../index.rst:58 msgid "How can I contribute?" msgstr "" -#: ../../index.rst:58 +#: ../../index.rst:59 msgid "" "Please read up on our `contribution requirements`_ for the project. This " "open-source project also enforces the `MIT License`_." msgstr "" -#: ../../index.rst:60 +#: ../../index.rst:61 msgid "This open-source project utilizes the following workflows for development:" msgstr "" -#: ../../index.rst:62 +#: ../../index.rst:63 msgid "" -"**pre-commit** ``2.16.0``: the architecture uses this before every commit" +"**pre-commit** ``2.20.0``: the architecture uses this before every commit" " to format and check for severity/QOL-breaking changes." msgstr "" -#: ../../index.rst:64 -msgid "**black** ``21.11b1``" -msgstr "" - #: ../../index.rst:65 -msgid "**flake8** ``3.9.2``" +msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**isort** ``5.9.3``" +msgid "**flake8** ``4.0.1``" msgstr "" -#: ../../index.rst:68 -msgid "" -"**Sphinx** ``4.1.2``: all of our documentation is powered off of " -"autogenerated documentation of the Sphinx engine." +#: ../../index.rst:67 +msgid "**isort** ``5.10.1``" msgstr "" #: ../../index.rst:69 msgid "" -"**colorama** ``0.4.4``: our internal logger uses a customized coloring " -"formatter to make looking for specific conditions easier when running " -"tests." +"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"autogenerated documentation of the Sphinx engine." msgstr "" #: ../../index.rst:70 @@ -254,7 +247,3 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" - -#: ../../index.rst:89 -msgid ":ref:`search`" -msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/migration.po b/docs/locale/ru/LC_MESSAGES/migration.po index d07c11207..9f0d8e6aa 100644 --- a/docs/locale/ru/LC_MESSAGES/migration.po +++ b/docs/locale/ru/LC_MESSAGES/migration.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -99,3 +99,52 @@ msgid "" "works still, you will need to enable this intent in your bot's developer " "portal and add the intent to your current intents when connecting:" msgstr "" + +#: ../../migration.rst:67 +msgid "4.1.0 → 4.3.0" +msgstr "" + +#: ../../migration.rst:69 +msgid "" +"A new feature was added; an event called ``on_start``. Unlike " +"``on_ready``, this event is only dispatched when the bot is first " +"started." +msgstr "" + +#: ../../migration.rst:72 +msgid "Instead of using the ``on_ready`` event and a check to only run code once:" +msgstr "" + +#: ../../migration.rst:86 +msgid "You can now utilize the ``on_start`` event to achieve the same goal:" +msgstr "" + +#: ../../migration.rst:96 +msgid "" +"Another big change in this release is the implementation of the ``get`` " +"utility method. It allows you to no longer use ``**await bot._http...``." +msgstr "" + +#: ../../migration.rst:99 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:102 +msgid "" +"``4.3.0`` also introduces a new method of creating commands, subcommands," +" and options. There are also numerous new features, such as a default " +"scope and utilities." +msgstr "" + +#: ../../migration.rst:105 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:213 +msgid "" +"Another change in ``4.3.0``: We added converters! These allow you name " +"your argument in your function differently than your option name! " +"Example:" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.command.po b/docs/locale/ru/LC_MESSAGES/models.command.po index 063440091..5c72da5b0 100644 --- a/docs/locale/ru/LC_MESSAGES/models.command.po +++ b/docs/locale/ru/LC_MESSAGES/models.command.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -33,31 +33,51 @@ msgid "" msgstr "" #: interactions.client.models.command.Choice:7 of -msgid "The structure for a choice: ::" +msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand #: interactions.client.models.command.Choice +#: interactions.client.models.command.Command #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" msgstr "" -#: interactions.client.models.command.Choice:11 of +#: interactions.client.models.command.Choice:13 of msgid "The name of the choice." msgstr "" -#: interactions.client.models.command.Choice:12 of +#: interactions.client.models.command.Choice:14 of msgid "The returned value of the choice." msgstr "" -#: interactions.client.models.command.Choice:13 -#: interactions.client.models.command.Option:32 of +#: interactions.client.models.command.Choice:15 +#: interactions.client.models.command.Command:16 +#: interactions.client.models.command.Command.group:28 +#: interactions.client.models.command.Command.subcommand:33 +#: interactions.client.models.command.Option:34 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" +#: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.Choice +#: interactions.client.models.command.Command +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.Option +#: interactions.client.models.command.Permission +#: interactions.client.models.command.option of +msgid "Parameters" +msgstr "" + #: interactions.client.models.command.Option:1 of msgid "A class object representing the option of an application command." msgstr "" @@ -73,80 +93,88 @@ msgid "" msgstr "" #: interactions.client.models.command.Option:10 of -msgid "The structure for an option: ::" +msgid "The structure for an option:" msgstr "" -#: interactions.client.models.command.Option:20 of +#: interactions.client.models.command.Option:22 of msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:21 of +#: interactions.client.models.command.Option:23 +#: interactions.client.models.command.option:14 of msgid "The name of the option." msgstr "" -#: interactions.client.models.command.Option:22 of +#: interactions.client.models.command.Option:24 of msgid "The description of the option." msgstr "" -#: interactions.client.models.command.Option:23 of +#: interactions.client.models.command.Option:25 of msgid "Whether the option is currently being autocompleted or not." msgstr "" -#: interactions.client.models.command.Option:24 of +#: interactions.client.models.command.Option:26 of msgid "Whether the option has to be filled out." msgstr "" -#: interactions.client.models.command.Option:25 of +#: interactions.client.models.command.Option:27 of msgid "The value that's currently typed out, if autocompleting." msgstr "" -#: interactions.client.models.command.Option:26 of +#: interactions.client.models.command.Option:28 of msgid "The list of choices to select from." msgstr "" -#: interactions.client.models.command.Option:27 of +#: interactions.client.models.command.Option:29 of msgid "The list of subcommand options included." msgstr "" -#: interactions.client.models.command.Option:28 of +#: interactions.client.models.command.Option:30 of msgid "Restrictive shown channel types, if given." msgstr "" -#: interactions.client.models.command.Option:29 of +#: interactions.client.models.command.Option:31 of msgid "The minimum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:30 of +#: interactions.client.models.command.Option:32 of msgid "The maximum value supported by the option." msgstr "" -#: interactions.client.models.command.Option:31 of +#: interactions.client.models.command.Option:33 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" -#: interactions.client.models.command.Option:33 of +#: interactions.client.models.command.Command:17 +#: interactions.client.models.command.Command.group:30 +#: interactions.client.models.command.Command.subcommand:35 +#: interactions.client.models.command.Option:35 of msgid "" "The dictionary of localization for the ``description`` field. This " "enforces the same restrictions as the ``description`` field." msgstr "" +#: interactions.client.models.command.Option:36 of +msgid "How the option value is passed to the function, if different than ``name``" +msgstr "" + #: interactions.client.models.command.Permission:1 of msgid "A class object representing the permission of an application command." msgstr "" #: interactions.client.models.command.Permission:3 of -msgid "The structure for a permission: ::" +msgid "The structure for a permission:" msgstr "" -#: interactions.client.models.command.Permission:10 of +#: interactions.client.models.command.Permission:12 of msgid "The ID of the permission." msgstr "" -#: interactions.client.models.command.Permission:11 of +#: interactions.client.models.command.Permission:13 of msgid "The type of permission." msgstr "" -#: interactions.client.models.command.Permission:12 of +#: interactions.client.models.command.Permission:14 of msgid "The permission state. ``True`` for allow, ``False`` for disallow." msgstr "" @@ -214,3 +242,286 @@ msgid "" "The localisation dictionary for the application command description, if " "any." msgstr "" + +#: interactions.client.models.command.option:1 of +msgid "A decorator for adding options to a command." +msgstr "" + +#: interactions.client.models.command.option:3 of +msgid "The structure of an option:" +msgstr "" + +#: interactions.client.models.command.option:12 of +msgid "The type of the option." +msgstr "" + +#: interactions.client.models.command.option:16 of +msgid "The description of the option. Defaults to ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.option:18 of +msgid "The keyword arguments of the option, same as :class:`Option`." +msgstr "" + +#: interactions.client.models.command.Command.__call +#: interactions.client.models.command.Command.__check_command +#: interactions.client.models.command.Command.__check_options +#: interactions.client.models.command.Command.__no_group +#: interactions.client.models.command.Command.__wrap_coro +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.error +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.option of +msgid "Return type" +msgstr "" + +#: interactions.client.models.command.StopCommand:1 of +msgid "A class that when returned from a command, the command chain is stopped." +msgstr "" + +#: interactions.client.models.command.StopCommand:3 of +msgid "Usage:" +msgstr "" + +#: interactions.client.models.command.StopCommand:17 of +msgid "This allows for custom checks that allow stopping the command chain." +msgstr "" + +#: interactions.client.models.command.Command:1 of +msgid "A class object representing a command." +msgstr "" + +#: interactions.client.models.command.Command:4 of +msgid "" +"This object is meant to be used internally when creating new commands " +"using the command decorators. Do not use this object for declaring " +"commands." +msgstr "" + +#: interactions.client.models.command.Command:8 of +msgid "The base command coroutine." +msgstr "" + +#: interactions.client.models.command.Command:9 of +msgid "The type of the command." +msgstr "" + +#: interactions.client.models.command.Command:10 of +msgid "The name of the command. Defaults to the coroutine name." +msgstr "" + +#: interactions.client.models.command.Command:11 of +msgid "" +"The description of the command. Defaults to the docstring of the " +"coroutine or ``\"No description set\"``." +msgstr "" + +#: interactions.client.models.command.Command:12 of +msgid "The list of options for the base command." +msgstr "" + +#: interactions.client.models.command.Command:13 of +msgid "The scope of the command." +msgstr "" + +#: interactions.client.models.command.Command:14 of +msgid "The default member permissions of the command." +msgstr "" + +#: interactions.client.models.command.Command:15 of +msgid "The DM permission of the command." +msgstr "" + +#: interactions.client.models.command.Command:18 of +msgid "Whether the command should use the default scope. Defaults to ``True``." +msgstr "" + +#: interactions.client.models.command.Command:20 of +msgid "The dictionary of coroutines for the command." +msgstr "" + +#: interactions.client.models.command.Command:21 of +msgid "The dictionary of the number of options per subcommand." +msgstr "" + +#: interactions.client.models.command.Command:22 of +msgid "The dictionary of autocompletions for the command." +msgstr "" + +#: interactions.client.models.command.Command:23 of +msgid "The name of the group most recently utilized." +msgstr "" + +#: interactions.client.models.command.Command:24 of +msgid "Whether the command is synced. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.command.Command:25 of +msgid "The extension that the command belongs to, if any." +msgstr "" + +#: interactions.client.models.command.Command.converters:1 of +msgid "" +"Returns a dictionary with all converters added to the options of the " +"command" +msgstr "" + +#: interactions.client.models.command.Command.full_data:1 of +msgid "Returns the command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete +#: interactions.client.models.command.Command.dispatcher +#: interactions.client.models.command.Command.full_data +#: interactions.client.models.command.Command.group +#: interactions.client.models.command.Command.has_subcommands +#: interactions.client.models.command.Command.subcommand of +msgid "Returns" +msgstr "" + +#: interactions.client.models.command.Command.full_data:3 of +msgid "The command data in JSON format." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:1 of +msgid "Checks if the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.has_subcommands:3 of +msgid "Whether the command has subcommand options." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:1 of +msgid "Decorator for creating a subcommand of the command." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:3 of +msgid "The structure for a subcommand:" +msgstr "" + +#: interactions.client.models.command.Command.group:21 +#: interactions.client.models.command.Command.subcommand:22 of +msgid "" +"If you want to create both subcommands and subcommands with groups, first" +" create the subcommands without groups, then create the subcommands with " +"groups." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:25 of +msgid "" +"The name of the group the subcommand belongs to. Defaults to the most " +"recently used group." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:27 of +msgid "The name of the subcommand. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:29 of +msgid "" +"The description of the subcommand. Defaults to the docstring of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.subcommand:31 of +msgid "The options of the subcommand." +msgstr "" + +#: interactions.client.models.command.Command.group:32 +#: interactions.client.models.command.Command.subcommand:37 of +msgid "The :class:`interactions.client.models.command.Command` object." +msgstr "" + +#: interactions.client.models.command.Command.group:1 of +msgid "Decorator for creating a group of the command." +msgstr "" + +#: interactions.client.models.command.Command.group:3 of +msgid "The structure for a group:" +msgstr "" + +#: interactions.client.models.command.Command.group:24 of +msgid "The name of the group. Defaults to the name of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.group:26 of +msgid "The description of the group. Defaults to the docstring of the coroutine." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:1 of +msgid "" +"Returns a coroutine that calls the command along with the subcommands, if" +" any." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:4 of +msgid "The coroutine returned is never the same object." +msgstr "" + +#: interactions.client.models.command.Command.dispatcher:6 of +msgid "A coroutine that calls the command along with the subcommands, if any." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:1 of +msgid "Decorator for creating an autocomplete for the command." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:3 of +msgid "" +"The name of the option to autocomplete. Defaults to the name of the " +"coroutine." +msgstr "" + +#: interactions.client.models.command.Command.autocomplete:5 of +msgid "The coroutine" +msgstr "" + +#: interactions.client.models.command.Command.error:1 of +msgid "" +"Decorator for assigning a callback coroutine to be called when an error " +"occurs." +msgstr "" + +#: interactions.client.models.command.Command.error:3 of +msgid "The structure of the decorator:" +msgstr "" + +#: interactions.client.models.command.Command.error:16 of +msgid "" +"The context and error are required as parameters, but you can also have " +"additional parameters so that the base or group result (if any) and/or " +"options are passed." +msgstr "" + +#: interactions.client.models.command.Command.error:20 of +msgid "The coroutine to be called when an error occurs." +msgstr "" + +#: interactions.client.models.command.Command.__call:1 of +msgid "Handles calling the coroutine based on parameter count." +msgstr "" + +#: interactions.client.models.command.Command.__check_command:1 of +msgid "" +"Checks if subcommands, groups, or autocompletions are created on context " +"menus." +msgstr "" + +#: interactions.client.models.command.Command.__check_options:1 of +msgid "Checks the options to make sure they are compatible with subcommands." +msgstr "" + +#: interactions.client.models.command.Command.__no_group:1 of +msgid "This is the coroutine used when no group coroutine is provided." +msgstr "" + +#: interactions.client.models.command.Command.__wrap_coro:1 of +msgid "" +"Wraps a coroutine to make sure the " +":class:`interactions.client.bot.Extension` is passed to the coroutine, if" +" any." +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.component.po b/docs/locale/ru/LC_MESSAGES/models.component.po index 97de1c249..ae186054c 100644 --- a/docs/locale/ru/LC_MESSAGES/models.component.po +++ b/docs/locale/ru/LC_MESSAGES/models.component.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,17 @@ msgstr "" msgid "Whether the select option is the default for the select menu." msgstr "" +#: interactions.client.models.component.ActionRow +#: interactions.client.models.component.ActionRow.new +#: interactions.client.models.component.Button +#: interactions.client.models.component.Component +#: interactions.client.models.component.Modal +#: interactions.client.models.component.SelectMenu +#: interactions.client.models.component.SelectOption +#: interactions.client.models.component.TextInput of +msgid "Parameters" +msgstr "" + #: interactions.client.models.component.SelectMenu:1 of msgid "" "A class object representing the select menu of a component. The structure" @@ -309,3 +320,23 @@ msgstr "" #: interactions.client.models.component.ActionRow:16 of msgid "A list of components the ActionRow has, if any." msgstr "" + +#: interactions.client.models.component.ActionRow.new:1 of +msgid "A class method for creating a new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new:3 of +msgid "The components to add to the ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Returns" +msgstr "" + +#: interactions.client.models.component.ActionRow.new:5 of +msgid "A new ``ActionRow``." +msgstr "" + +#: interactions.client.models.component.ActionRow.new of +msgid "Return type" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.misc.po b/docs/locale/ru/LC_MESSAGES/models.misc.po index f5d1bb814..9ea8f4346 100644 --- a/docs/locale/ru/LC_MESSAGES/models.misc.po +++ b/docs/locale/ru/LC_MESSAGES/models.misc.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-17 16:00-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -56,6 +56,12 @@ msgstr "" msgid "The resolved attachments data." msgstr "" +#: interactions.client.models.misc.Interaction +#: interactions.client.models.misc.InteractionData +#: interactions.client.models.misc.InteractionResolvedData of +msgid "Parameters" +msgstr "" + #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.po b/docs/locale/ru/LC_MESSAGES/models.po index a322bcb50..04da90614 100644 --- a/docs/locale/ru/LC_MESSAGES/models.po +++ b/docs/locale/ru/LC_MESSAGES/models.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/docs/locale/ru/LC_MESSAGES/models.utils.po b/docs/locale/ru/LC_MESSAGES/models.utils.po new file mode 100644 index 000000000..7976e9c30 --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/models.utils.po @@ -0,0 +1,87 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2022, goverfl0w +# This file is distributed under the same license as the interactions.py +# package. +# FIRST AUTHOR , 2022. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: interactions.py 4.3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.9.1\n" + +#: ../../models.utils.rst:4 +msgid "Utilities" +msgstr "" + +#: interactions.client.models.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.client.models.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.client.models.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.client.models.utils.autodefer of +msgid "Returns" +msgstr "" + +#: interactions.client.models.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.client.models.utils.autodefer +#: interactions.client.models.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow`s." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:24 of +msgid "" +"You can only pass in :class:`ActionRow`s, :class:`Button`s, and " +":class:`SelectMenu`s, but in any order." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.client.models.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/quickstart.po b/docs/locale/ru/LC_MESSAGES/quickstart.po index eff5b5f5a..89ed78f26 100644 --- a/docs/locale/ru/LC_MESSAGES/quickstart.po +++ b/docs/locale/ru/LC_MESSAGES/quickstart.po @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: interactions.py 4.2\n" +"Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:02-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -238,14 +238,40 @@ msgid "" msgstr "" #: ../../quickstart.rst:128 -msgid "``name`` and ``description`` are required." +msgid "Here is another way we can create the same command:" msgstr "" -#: ../../quickstart.rst:131 +#: ../../quickstart.rst:146 +msgid "The ``name`` field defaults to the coroutine name." +msgstr "" + +#: ../../quickstart.rst:147 +msgid "" +"The ``description`` field defaults to the first line of the coroutine " +"docstring if it exists. If it does not exist, it defaults to ``\"No " +"description provided.\"``." +msgstr "" + +#: ../../quickstart.rst:148 +msgid "" +"``default_scope`` -- This sets the scope for all the commands " +"automatically. If you want to disable this feature in a specific command," +" you can add ``default_scope=False`` to the command decorator." +msgstr "" + +#: ../../quickstart.rst:149 +msgid "You could still use the ``scope`` field instead of ``default_scope``." +msgstr "" + +#: ../../quickstart.rst:151 +msgid "``name`` and ``description`` are not required." +msgstr "" + +#: ../../quickstart.rst:154 msgid "Difference between global and guild slash commands:" msgstr "" -#: ../../quickstart.rst:133 +#: ../../quickstart.rst:156 msgid "" "guild slash commands are instantly available in the guild with the given " "id. In order to copy your guild ID you have to enable the developer mode " @@ -253,7 +279,7 @@ msgid "" "pictures beyond." msgstr "" -#: ../../quickstart.rst:134 +#: ../../quickstart.rst:157 msgid "" "global commands are created by *not* including the ``scope`` argument " "into the ``@bot.command`` decorator. They will appear in all guilds your " @@ -261,33 +287,181 @@ msgid "" "guilds." msgstr "" -#: ../../quickstart.rst:141 +#: ../../quickstart.rst:164 msgid "Next, let's create an Option" msgstr "" -#: ../../quickstart.rst:143 +#: ../../quickstart.rst:166 msgid "" ":ref:`Options ` are extra " "arguments of a command, filled in by the user executing the command." msgstr "" -#: ../../quickstart.rst:171 +#: ../../quickstart.rst:168 +msgid "Here is the structure of an option:" +msgstr "" + +#: ../../quickstart.rst:194 +msgid "" +"The :ref:`@option() ` " +"decorator creates options in another way:" +msgstr "" + +#: ../../quickstart.rst:208 +msgid "" +"The first field in the ``@option()`` decorator is the type of the option." +" This is positional only and required. You can use integers, the default " +"Python types, the ``OptionType`` enum, or supported objects such as " +"``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:209 +msgid "All other arguments in the decorator are keyword arguments only." +msgstr "" + +#: ../../quickstart.rst:210 +msgid "The ``name`` field is required." +msgstr "" + +#: ../../quickstart.rst:211 +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." +msgstr "" + +#: ../../quickstart.rst:212 +msgid "" +"Any parameters from ``Option`` can be passed into the ``@option()`` " +"decorator." +msgstr "" + +#: ../../quickstart.rst:215 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:174 +#: ../../quickstart.rst:218 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:218 -msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +#: ../../quickstart.rst:220 +msgid "" +"Subcommands are options that are nested to create subcategories of " +"commands." msgstr "" #: ../../quickstart.rst:222 +msgid "Here is the structure of a subcommand:" +msgstr "" + +#: ../../quickstart.rst:265 +msgid "You can also create subcommands using the command system:" +msgstr "" + +#: ../../quickstart.rst:291 +msgid "You can add a SUB_COMMAND_GROUP in between the base and command." +msgstr "" + +#: ../../quickstart.rst:294 +msgid "Additional information about subcommands" +msgstr "" + +#: ../../quickstart.rst:296 +msgid "" +"Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " +"decorators:" +msgstr "" + +#: ../../quickstart.rst:299 +msgid "" +":ref:`@subcommand() `: creates" +" a subcommand." +msgstr "" + +#: ../../quickstart.rst:300 +msgid "" +":ref:`@group() `: creates a " +"group." +msgstr "" + +#: ../../quickstart.rst:301 +msgid "" +":ref:`@error `: registers an " +"error callback." +msgstr "" + +#: ../../quickstart.rst:303 +msgid "Check the documentation for the parameters of each of these decorators." +msgstr "" + +#: ../../quickstart.rst:305 +msgid "The following is an example of a base command:" +msgstr "" + +#: ../../quickstart.rst:313 +msgid "The examples below will be using the base command above." +msgstr "" + +#: ../../quickstart.rst:315 +msgid "The following is an example of a subcommand of the base command:" +msgstr "" + +#: ../../quickstart.rst:323 +msgid "This code results in the following subcommand: `/base_command subcommand`." +msgstr "" + +#: ../../quickstart.rst:326 +msgid "" +"You can use the ``base_res`` parameter in groups and subcommands, and " +"``group_res`` in subcommands inside groups to access the result of the " +"previous callback. They are both optional and are placed right after the " +"``ctx`` parameter." +msgstr "" + +#: ../../quickstart.rst:329 +msgid "The following is an example of a group with subcommands:" +msgstr "" + +#: ../../quickstart.rst:341 +msgid "" +"You can have multiple groups, with multiple subcommands in each group. " +"Subcommands and groups are options, so the same restrictions apply." +msgstr "" + +#: ../../quickstart.rst:344 +msgid "Create any subcommands without groups *before* creating any groups." +msgstr "" + +#: ../../quickstart.rst:346 +msgid "" +"Since there are multiple coroutines involved that each get executed, you " +"may be wondering how you can stop the chain. Luckily, there is a way:" +msgstr "" + +#: ../../quickstart.rst:360 +msgid "This works on both groups and subcommands." +msgstr "" + +#: ../../quickstart.rst:362 +msgid "The following is an example of an error callback:" +msgstr "" + +#: ../../quickstart.rst:378 +msgid "" +"The parameters ``ctx`` and ``error`` are required, but you can have more " +"parameters, such as ``*args`` and ``**kwargs``, if you need to access " +"options." +msgstr "" + +#: ../../quickstart.rst:382 +msgid "You can have one error callback per command." +msgstr "" + +#: ../../quickstart.rst:385 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:224 +#: ../../quickstart.rst:387 msgid "" "While, granted that application commands are way more intuitive and " "easier to work with as both a bot developer and user from a UX approach, " @@ -298,35 +472,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:230 +#: ../../quickstart.rst:393 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:245 +#: ../../quickstart.rst:406 +msgid "Here is an alternate way of creating a context menu:" +msgstr "" + +#: ../../quickstart.rst:415 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:247 +#: ../../quickstart.rst:417 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:248 +#: ../../quickstart.rst:418 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:249 +#: ../../quickstart.rst:419 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:252 +#: ../../quickstart.rst:422 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:254 +#: ../../quickstart.rst:424 msgid "" "Being able to run your own commands is very useful for a lot of " "automation-related purposes as a bot developer, however, we also have " @@ -335,14 +513,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:259 +#: ../../quickstart.rst:429 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:285 +#: ../../quickstart.rst:455 msgid "" "This is a design that we ended up choosing to simplify responding to " "buttons when someone presses on one, and to allow bot developers to plug " @@ -352,11 +530,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:292 +#: ../../quickstart.rst:462 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:464 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -365,18 +543,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:471 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:473 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:330 +#: ../../quickstart.rst:505 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -385,57 +563,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:336 +#: ../../quickstart.rst:511 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:516 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:342 +#: ../../quickstart.rst:517 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:354 +#: ../../quickstart.rst:529 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:358 +#: ../../quickstart.rst:533 msgid "Modals" msgstr "" -#: ../../quickstart.rst:359 +#: ../../quickstart.rst:534 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:372 +#: ../../quickstart.rst:547 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:377 +#: ../../quickstart.rst:552 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:560 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:388 +#: ../../quickstart.rst:563 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:390 +#: ../../quickstart.rst:565 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -443,15 +621,55 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:604 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:448 +#: ../../quickstart.rst:623 msgid "" "Likewise, setting ``dm_permission`` to ``True`` makes it usable in DMs. " "Just to note that this argument's mainly used for global commands. Guild " "commands with this argument will have no effect." msgstr "" + +#: ../../quickstart.rst:627 +msgid "Utilities" +msgstr "" + +#: ../../quickstart.rst:629 +msgid "You can use the following utilities to help you with your commands:" +msgstr "" + +#: ../../quickstart.rst:631 +msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." +msgstr "" + +#: ../../quickstart.rst:632 +msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." +msgstr "" + +#: ../../quickstart.rst:633 +msgid "" +"``@autodefer()``: Automatically defers a command if it did not respond " +"within the specified time." +msgstr "" + +#: ../../quickstart.rst:635 +msgid "" +"Look at their documentation :ref:`here ` for " +"more information." +msgstr "" + +#: ../../quickstart.rst:637 +msgid "Usage of ``ActionRow.new()``:" +msgstr "" + +#: ../../quickstart.rst:653 +msgid "Usage of ``spread_to_rows()``:" +msgstr "" + +#: ../../quickstart.rst:675 +msgid "Usage of ``@autodefer()``:" +msgstr "" diff --git a/docs/migration.rst b/docs/migration.rst index 5a12042e2..69213905e 100644 --- a/docs/migration.rst +++ b/docs/migration.rst @@ -66,10 +66,37 @@ portal and add the intent to your current intents when connecting: 4.1.0 → 4.3.0 ~~~~~~~~~~~~~~~ -A new big change in this release is the implementation of the ``get`` utility method. +A new feature was added; an event called ``on_start``. +Unlike ``on_ready``, this event is only dispatched when the bot is first started. + +Instead of using the ``on_ready`` event and a check to only run code once: + +.. code-block:: python + + _ready: bool = False + bot = interactions.Client(...) + + @bot.event + async def on_ready(): + global _ready + if not _ready: + ... # do stuff + _ready = True + +You can now utilize the ``on_start`` event to achieve the same goal: + +.. code-block:: python + + bot = interactions.Client(...) + + @bot.event + async def on_start(): + ... # do stuff + +Another big change in this release is the implementation of the ``get`` utility method. It allows you to no longer use ``**await bot._http...``. -You can get more information by reading the `get-documentation`_. +You can get more information by reading the :meth:`interactions.client.get.get`-documentation ``4.3.0`` also introduces a new method of creating commands, subcommands, and options. @@ -93,11 +120,11 @@ The following example shows and explains how to create commands effortlessly and # the description is the first line of the docstring or "No description set". @bot.command(default_scope=False) - @interactions.option(str, name="opt1") # description is optional. - @interactions.option(4, name="opt2", description="This is an option.") - @interactions.option(interactions.Channel, name="opt3", required=True) + @interactions.option(str, name="opt1", required=True) # description is optional. + @interactions.option(4, name="opt2", description="This is an option.", required=True) + @interactions.option(interactions.Channel, name="opt3") async def command_with_options( - ctx, opt1: str, opt2, int, opt3: interactions.Channel = None + ctx, opt1: str, opt2: int, opt3: interactions.Channel = None ): ... # do something here. # the default scope is disabled for this command, so this is a global command. @@ -182,4 +209,21 @@ The following example shows and explains how to create commands effortlessly and bot.start() -.. _get-documentation: https://interactionspy.readthedocs.io/en/latest/get.html#the-get-utility-method + +Another change in ``4.3.0``: We added converters! These allow you name your argument in your function differently than +your option name! Example: + +.. code-block:: python + + import interactions + + bot = interactions.Client("TOKEN", default_scope=1234567890) + + @bot.command(default_scope=False) + @interactions.option() # type and name default to ones in the parameter. + @interactions.option(name="opt2", description="This is an option.", converter="hi") + @interactions.option() # same kwargs as Option + async def command_with_options( + ctx, opt1: str, hi: int, opt3: interactions.Channel = None + ): + ... diff --git a/docs/models.command.rst b/docs/models.command.rst index d8d18c5cc..33397b0ae 100644 --- a/docs/models.command.rst +++ b/docs/models.command.rst @@ -5,4 +5,3 @@ Application Command Models .. automodule:: interactions.client.models.command :members: - :noindex: diff --git a/docs/models.component.rst b/docs/models.component.rst index 9a17c24bc..8518b6cd6 100644 --- a/docs/models.component.rst +++ b/docs/models.component.rst @@ -5,4 +5,3 @@ Component Models .. automodule:: interactions.client.models.component :members: - :noindex: diff --git a/docs/models.misc.rst b/docs/models.misc.rst index 46e95d5d8..9a153f1c1 100644 --- a/docs/models.misc.rst +++ b/docs/models.misc.rst @@ -5,4 +5,3 @@ Miscellaneous Models .. automodule:: interactions.client.models.misc :members: - :noindex: diff --git a/docs/models.utils.rst b/docs/models.utils.rst index ef2572129..1601d1b7e 100644 --- a/docs/models.utils.rst +++ b/docs/models.utils.rst @@ -5,4 +5,3 @@ Utilities .. automodule:: interactions.client.models.utils :members: - :noindex: diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 267f49124..240700507 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -200,15 +200,16 @@ The :ref:`@option() ` decorator creat bot = interactions.Client(token="your_secret_bot_token") @bot.command(scope=the_id_of_your_guild) - @interactions.option(str, name="text", description="What you want to say", required=True) + @interactions.option() async def say_something(ctx: interactions.CommandContext, text: str): """say something!""" await ctx.send(f"You said '{text}'!") -* The first field in the ``@option()`` decorator is the type of the option. This is positional only and required. You can use integers, the default Python types, the ``OptionType`` enum, or supported objects such as ``interactions.Channel``. -* All other arguments in the decorator are keyword arguments only. -* The ``name`` field is required. +* All arguments in the decorator are keyword arguments only. +* The ``type`` and ``name`` fields default to the typehint and the name of the parameter. * The ``description`` field is optional and defaults to ``"No description set``. +* The ``required`` field defaults to whether the default for the parameter is empty. +* For typehinting or inputting the ``type`` field, you can use integers, the default Python types, the ``OptionType`` enum, or supported objects such as ``interactions.Channel``. * Any parameters from ``Option`` can be passed into the ``@option()`` decorator. .. note:: @@ -258,9 +259,9 @@ Here is the structure of a subcommand: ) async def cmd(ctx: interactions.CommandContext, sub_command: str, second_option: str = "", option: int = None): if sub_command == "command_name": - await ctx.send(f"You selected the command_name sub command and put in {option}") + await ctx.send(f"You selected the command_name sub command and put in {option}") elif sub_command == "second_command": - await ctx.send(f"You selected the second_command sub command and put in {second_option}") + await ctx.send(f"You selected the second_command sub command and put in {second_option}") You can also create subcommands using the command system: @@ -276,13 +277,13 @@ You can also create subcommands using the command system: pass @base_command.subcommand() - @interactions.option(str, name="option", description="A descriptive description", required=False) + @interactions.option(description="A descriptive description") async def command_name(ctx: interactions.CommandContext, option: int = None): """A descriptive description""" await ctx.send(f"You selected the command_name sub command and put in {option}") @base_command.subcommand() - @interactions.option(str, name="second_option", description="A descriptive description", required=True) + @interactions.option(description="A descriptive description") async def second_command(ctx: interactions.CommandContext, second_option: str): """A descriptive description""" await ctx.send(f"You selected the second_command sub command and put in {second_option}") diff --git a/examples/bot.py b/examples/bot.py index 771ae9dfe..632598780 100644 --- a/examples/bot.py +++ b/examples/bot.py @@ -1,7 +1,7 @@ # This code shows a very brief and small example of how to create a bot with our library. # This example does not cover all the features of the library, but it is enough to get you started. # In order to learn more about how to use the library, please head over to our documentation: -# https://interactionspy.rtfd.io/en/latest/ +# https://interactionspy.readthedocs.io/en/latest/ # The first thing you need to do is import the library. import interactions @@ -12,6 +12,7 @@ # The client is also the main object that interacts with the API, what makes requests with Discord. client = interactions.Client("your bot token will go here.") + # With our client established, let's have the library inform us when the client is ready. # These are known as event listeners. An event listener can be established in one of two ways. # You can provide the name of the event, prefixed by an "on_", or by telling the event decorator what event it is. @@ -64,7 +65,7 @@ async def hello_world(ctx: interactions.CommandContext): # - we'll be syncing the commands automatically. # if you want to do this manually, you can do it by passing disable_sync=False in the Client -# object on line 8. +# object on line 13. # - we are not setting a presence. # - we are not automatically sharding, and registering the connection under 1 shard. # - we are using default intents, which are Gateway intents excluding privileged ones. diff --git a/interactions/api/cache.py b/interactions/api/cache.py index bf9e7ba17..c4218fbd2 100644 --- a/interactions/api/cache.py +++ b/interactions/api/cache.py @@ -67,11 +67,12 @@ def merge(self, item: _T, id: Optional["Key"] = None) -> None: ): # could be None setattr(old_item, attrib, []) if isinstance(getattr(old_item, attrib), list): - for value in getattr(item, attrib): - old_item_attrib = getattr(old_item, attrib) - if value not in getattr(old_item, attrib): - old_item_attrib.append(value) - setattr(old_item, attrib, old_item_attrib) + if _attrib := getattr(item, attrib): + for value in _attrib: + old_item_attrib = getattr(old_item, attrib) + if value not in old_item_attrib: + old_item_attrib.append(value) + setattr(old_item, attrib, old_item_attrib) else: setattr(old_item, attrib, getattr(item, attrib)) @@ -133,7 +134,7 @@ def pop(self, key: "Key", default: Optional[_P] = None) -> Union[_T, _P, None]: def view(self) -> List[dict]: """Views all items from storage. - :return The items stored. + :return: The items stored. :rtype: List[dict] """ return [v._json for v in self.values.values()] @@ -154,7 +155,7 @@ class Cache: This cache collects all of the HTTP requests made for the represented instances of the class. - :ivar defaultdict[Type, Storage] storages: + :ivar defaultdict[Type, Storage] storages: A dictionary denoting the Type and the objects that correspond to the Type. """ __slots__ = "storages" diff --git a/interactions/api/dispatch.py b/interactions/api/dispatch.py index cc5cb89cc..c35197d46 100644 --- a/interactions/api/dispatch.py +++ b/interactions/api/dispatch.py @@ -35,6 +35,14 @@ def dispatch(self, __name: str, *args, **kwargs) -> None: :type **kwargs: dict """ for event in self.events.get(__name, []): + converters: dict + if converters := getattr(event, "_converters", None): + _kwargs = kwargs.copy() + for key, value in _kwargs.items(): + + if key in converters.keys(): + del kwargs[key] + kwargs[converters[key]] = value self.loop.create_task(event(*args, **kwargs)) log.debug(f"DISPATCH: {event}") @@ -50,7 +58,7 @@ def register(self, coro: Callable[..., Coroutine], name: Optional[str] = None) - :param coro: The coroutine to register as an event. :type coro: Callable[..., Coroutine] :param name?: The name to associate the coroutine with. Defaults to None. - :type name: Optional[str] + :type name?: Optional[str] """ _name: str = coro.__name__ if name is None else name event = self.events.get(_name, []) diff --git a/interactions/api/error.py b/interactions/api/error.py index d2cd834f0..1f22d66ab 100644 --- a/interactions/api/error.py +++ b/interactions/api/error.py @@ -149,12 +149,14 @@ def lookup(code: int) -> str: 10060: "Unknown Sticker.", 10062: "Unknown Interaction.", 10063: "Unknown Application Command.", + 10065: "Unknown voice state", 10066: "Unknown Application Command permissions.", 10067: "Unknown Stage.", 10068: "Unknown Guild Member Verification Form.", 10069: "Unknown Guild Welcome Screen.", 10070: "Unknown Scheduled Event.", 10071: "Unknown Scheduled Event user.", + 10087: "Unknown Tag", 20001: "Bots cannot use this endpoint.", 20002: "Only bots can use this endpoint.", 20009: "Explicit content cannot be sent to the desired recipient(s).", @@ -162,7 +164,10 @@ def lookup(code: int) -> str: 20016: "This action cannot be performed due to slow-mode rate limit.", 20018: "Only the owner of this account can perform this action", 20022: "This message cannot be edited due to announcement rate limits.", + 20024: "Under minimum age", 20028: "The channel you are writing has hit the write rate limit", + 20029: "The write action you are performing on the server has hit the write " + "rate limit", 20031: "Your Stage topic, server name, server description, " "or channel names contain words that are not allowed", 20035: "Guild premium subscription level too low", @@ -181,7 +186,9 @@ def lookup(code: int) -> str: 30019: "Maximum number of server members reached", 30030: "Maximum number of server categories has been reached", 30031: "Guild already has a template", + 30032: "Maximum number of application commands reached", 30033: "Max number of thread participants has been reached (1000)", + 30034: "Max number of daily application command creates has been reached " "(200)", 30035: "Maximum number of bans for non-guild members have been exceeded", 30037: "Maximum number of bans fetches has been reached", 30038: "Maximum number of uncompleted guild scheduled events reached (100)", @@ -189,6 +196,9 @@ def lookup(code: int) -> str: 30040: "Maximum number of prune requests has been reached. Try again later", 30042: "Maximum number of guild widget settings updates has been reached. Try again later", 30046: "Maximum number of edits to messages older than 1 hour reached. Try again later", + 30047: "Maximum number of pinned threads in a forum channel has been reached", + 30048: "Maximum number of tags in a forum channel has been reached", + 30052: "Bitrate is too high for channel of this type", 40001: "Unauthorized. Provide a valid token and try again", 40002: "You need to verify your account in order to perform this action", 40003: "You are opening direct messages too fast", @@ -196,10 +206,13 @@ def lookup(code: int) -> str: 40005: "Request entity too large. Try sending something smaller in size", 40006: "This feature has been temporarily disabled server-side", 40007: "The user is banned from this guild", + 40012: "Connection has been revoked", 40032: "Target user is not connected to voice", 40033: "This message has already been crossposted", 40041: "An application command with that name already exists", + 40043: "Application interaction failed to send", 40060: "Interaction has already been acknowledged", + 40061: "Tag names must be unique", 50001: "Missing access", 50002: "Invalid account type", 50003: "Cannot execute action on a DM channel", @@ -217,6 +230,7 @@ def lookup(code: int) -> str: 50015: "Note was too long", 50016: "Provided too few or too many messages to delete. " "Must provide at least 2 and fewer than 100 messages to delete", + 50017: "Invalid MFA Level", 50019: "A message can only be pinned to the channel it was sent in", 50020: "Invite code was either invalid or taken", 50021: "Cannot execute action on a system message", @@ -238,9 +252,10 @@ def lookup(code: int) -> str: 50068: "Invalid message type", 50070: "Payment source required to redeem gift", 50074: "Cannot delete a channel required for Community guilds", + 50080: "Cannot edit stickers within a message", 50081: "Invalid sticker sent", - 50083: "Tried to perform an operation on an archived thread, such as editing a " - "message or adding a user to the thread", + 50083: "Tried to perform an operation on an archived thread, such as editing " + "a message or adding a user to the thread", 50084: "Invalid thread notification settings", 50085: "'before' value is earlier than the thread creation date", 50086: "Community server channels must be text channels", @@ -248,9 +263,14 @@ def lookup(code: int) -> str: 50097: "This server needs monetization enabled in order to perform this action", 50101: "This server needs more boosts to perform this action", 50109: "The request body contains invalid JSON.", + 50132: "Ownership cannot be transferred to a bot user", + 50138: "Failed to resize asset below the maximum size: 262144", + 50146: "Uploaded file not found.", + 50600: "You do not have permission to send this sticker.", 60003: "Two factor is required for this operation", 80004: "No users with DiscordTag exist", 90001: "Reaction was blocked", + 110001: "Application not yet available. Try again later", 130000: "API resource is currently overloaded. Try again a little later", 150006: "The Stage is already open", 160002: "Cannot reply without permission to read message history", @@ -267,6 +287,9 @@ def lookup(code: int) -> str: 170007: "Sticker animation duration exceeds maximum of 5 seconds", 180000: "Cannot update a finished event", 180002: "Failed to create stage needed for stage event", + 200000: "Message was blocked by automatic moderation", + 200001: "Title was blocked by automatic moderation", + 220003: "Webhooks can only create threads in forum channels", }.get(code, f"Unknown error: {code}") def __init__(self, code: int = 0, message: str = None, severity: int = 0, **kwargs): diff --git a/interactions/api/gateway/client.py b/interactions/api/gateway/client.py index c63d75173..42e333677 100644 --- a/interactions/api/gateway/client.py +++ b/interactions/api/gateway/client.py @@ -60,6 +60,7 @@ class WebSocketClient: :ivar Optional[ClientPresence] __presence: The presence used in connection. :ivar Event ready: The ready state of the client as an ``asyncio.Event``. :ivar Task __task: The closing task for ending connections. + :ivar bool __started: Whether the client has started. :ivar Optional[str] session_id: The ID of the ongoing session. :ivar Optional[int] sequence: The sequence identifier of the ongoing session. :ivar float _last_send: The latest time of the last send_packet function call since connection creation, in seconds. @@ -80,6 +81,7 @@ class WebSocketClient: "__shard", "__presence", "__task", + "__started", "session_id", "sequence", "ready", @@ -101,9 +103,9 @@ def __init__( :param intents: The Gateway intents of the application for event dispatch. :type intents: Intents :param session_id?: The ID of the session if trying to reconnect. Defaults to ``None``. - :type session_id: Optional[str] + :type session_id?: Optional[str] :param sequence?: The identifier sequence if trying to reconnect. Defaults to ``None``. - :type sequence: Optional[int] + :type sequence?: Optional[int] """ try: self._loop = get_event_loop() if version_info < (3, 10) else get_running_loop() @@ -126,6 +128,7 @@ def __init__( self.__shard: Optional[List[Tuple[int]]] = None self.__presence: Optional[ClientPresence] = None self.__task: Optional[Task] = None + self.__started: bool = False self.session_id: Optional[str] = None if session_id is MISSING else session_id self.sequence: Optional[str] = None if sequence is MISSING else sequence self.ready: Event = Event(loop=self._loop) if version_info < (3, 10) else Event() @@ -166,7 +169,7 @@ async def _establish_connection( Establishes a client connection with the Gateway. :param shard?: The shards to establish a connection with. Defaults to ``None``. - :type shard: Optional[List[Tuple[int]]] + :type shard?: Optional[List[Tuple[int]]] :param presence: The presence to carry with. Defaults to ``None``. :type presence: Optional[ClientPresence] """ @@ -208,7 +211,7 @@ async def _handle_connection( :param stream: The packet stream to handle. :type stream: Dict[str, Any] :param shard?: The shards to establish a connection with. Defaults to ``None``. - :type shard: Optional[List[Tuple[int]]] + :type shard?: Optional[List[Tuple[int]]] :param presence: The presence to carry with. Defaults to ``None``. :type presence: Optional[ClientPresence] """ @@ -258,10 +261,13 @@ async def _handle_connection( self.session_id = data["session_id"] self.sequence = stream["s"] self._dispatch.dispatch("on_ready") + if not self.__started: + self.__started = True + self._dispatch.dispatch("on_start") log.debug(f"READY (session_id: {self.session_id}, seq: {self.sequence})") self.ready.set() else: - log.debug(f"{event}: {data}") + log.debug(f"{event}: {str(data).encode('utf-8')}") self._dispatch_event(event, data) async def wait_until_ready(self) -> None: @@ -384,15 +390,17 @@ def _dispatch_event(self, event: str, data: dict) -> None: log.warning( "Context is being created for the interaction, but no type is specified. Skipping..." ) - elif event != "TYPING_START": + elif event not in {"TYPING_START", "VOICE_STATE_UPDATE", "VOICE_SERVER_UPDATE"}: name: str = event.lower() try: + _event_path: list = [section.capitalize() for section in name.split("_")] _name: str = _event_path[0] if len(_event_path) < 3 else "".join(_event_path[:-1]) model = getattr(__import__(path), _name) data["_client"] = self._http obj = model(**data) + _cache: "Storage" = self._http.cache[model] if isinstance(obj, Member): @@ -400,34 +408,67 @@ def _dispatch_event(self, event: str, data: dict) -> None: else: id = getattr(obj, "id", None) - if "_create" in name or "_add" in name: - _cache.merge(obj, id) - if ( - guild_id := data.get("guild_id") + if id is None: + if model.__name__ == "GuildScheduledEventUser": + id = model.guild_scheduled_event_id + elif model.__name__ in [ + "Invite", + "GuildBan", + "ChannelPins", + "MessageReaction", + "MessageReactionRemove", + # Extend this for everything that should not be cached + ]: + id = None + elif model.__name__.startswith("Guild"): + model_name = model.__name__[5:] + if _data := getattr(obj, model_name, None): + id = ( + getattr(_data, "id") + if not isinstance(_data, dict) + else Snowflake(_data["id"]) + ) + elif hasattr(obj, f"{model_name}_id"): + id = getattr(obj, f"{model_name}_id", None) + + def __modify_guild_cache(): + if not ( + (guild_id := data.get("guild_id")) and not isinstance(obj, Guild) and "message" not in name + and id is not None ): - guild = self._http.cache[Guild].get(Snowflake(guild_id)) - model_name = model.__name__.lower() - _obj = getattr(guild, f"{model_name}s", None) - if _obj is not None: - if isinstance(_obj, list): + return + if guild := self._http.cache[Guild].get(Snowflake(guild_id)): + model_name: str = model.__name__ + if "guild" in model_name: + model_name = model_name[5:] + elif model_name == "threadmembers": + return + _obj = getattr(guild, f"{model_name.lower()}s", None) + if _obj is not None and isinstance(_obj, list): + if "_create" in name or "_add" in name: _obj.append(obj) - setattr(guild, f"{model_name}s", _obj) - else: - _obj = [obj] + for index, __obj in enumerate(_obj): + if __obj.id == id: + if "_remove" in name or "_delete" in name: + _obj.remove(__obj) + + elif "_update" in name and hasattr(obj, "id"): + _obj[index] = obj + break setattr(guild, f"{model_name}s", _obj) self._http.cache[Guild].add(guild) + + if "_create" in name or "_add" in name: + if id: + _cache.merge(obj, id) self._dispatch.dispatch(f"on_{name}", obj) + __modify_guild_cache() elif "_update" in name and hasattr(obj, "id"): old_obj = self._http.cache[model].get(id) - if old_obj: - for key, value in old_obj._json.items(): - if hasattr(value, "_json"): - old_obj._json[key] = value._json - before = model(**old_obj._json) old_obj.update(**obj._json) else: @@ -435,27 +476,7 @@ def _dispatch_event(self, event: str, data: dict) -> None: old_obj = obj _cache.add(old_obj, id) - - if ( - guild_id := data.get("guild_id") - and not isinstance(obj, Guild) - and "message" not in name - ): - guild = self._http.cache[Guild].get(Snowflake(guild_id)) - model_name = model.__name__.lower() - _obj = getattr(guild, f"{model_name}s", None) - if _obj is not None: - if isinstance(_obj, list): - for __obj in _obj: - if __obj.id == obj.id: - _obj.remove(__obj) - break - _obj.append(obj) - setattr(guild, f"{model_name}s", _obj) - else: - _obj = [obj] - setattr(guild, f"{model_name}s", _obj) - self._http.cache[Guild].add(guild) + __modify_guild_cache() self._dispatch.dispatch( f"on_{name}", before, old_obj @@ -464,32 +485,16 @@ def _dispatch_event(self, event: str, data: dict) -> None: elif "_remove" in name or "_delete" in name: self._dispatch.dispatch(f"on_raw_{name}", obj) - - if ( - guild_id := data.get("guild_id") - and not isinstance(obj, Guild) - and "message" not in name - ): - guild = self._http.cache[Guild].get(Snowflake(guild_id)) - model_name = model.__name__.lower() - _obj = getattr(guild, f"{model_name}s", None) - if _obj is not None: - if isinstance(_obj, list): - for __obj in _obj: - if __obj.id == obj.id: - _obj.remove(__obj) - break - setattr(guild, f"{model_name}s", _obj) - self._http.cache[Guild].add(guild) - - old_obj = _cache.pop(id) - self._dispatch.dispatch(f"on_{name}", old_obj) + __modify_guild_cache() + if id: + old_obj = _cache.pop(id) + self._dispatch.dispatch(f"on_{name}", old_obj) else: self._dispatch.dispatch(f"on_{name}", obj) except AttributeError as error: - log.fatal(f"An error occured dispatching {name}: {error}") + log.warning(f"An error occurred dispatching {name}: {error}") def __contextualize(self, data: dict) -> "_Context": """ @@ -687,9 +692,9 @@ async def __identify( Sends an ``IDENTIFY`` packet to the gateway. :param shard?: The shard ID to identify under. - :type shard: Optional[List[Tuple[int]]] + :type shard?: Optional[List[Tuple[int]]] :param presence?: The presence to change the bot to on identify. - :type presence: Optional[ClientPresence] + :type presence?: Optional[ClientPresence] """ self.__shard = shard self.__presence = presence diff --git a/interactions/api/http/request.py b/interactions/api/http/request.py index 96d9d6779..e27694cc1 100644 --- a/interactions/api/http/request.py +++ b/interactions/api/http/request.py @@ -93,7 +93,7 @@ async def request(self, route: Route, **kwargs) -> Optional[Any]: :param route: The HTTP route to request. :type route: Route :param \**kwargs?: Optional keyword-only arguments to pass as information in the request. - :type \**kwargs: dict + :type \**kwargs?: dict :return: The contents of the request if any. :rtype: Optional[Any] """ diff --git a/interactions/api/http/route.py b/interactions/api/http/route.py index cf20a2455..7b2019f9c 100644 --- a/interactions/api/http/route.py +++ b/interactions/api/http/route.py @@ -28,7 +28,7 @@ def __init__(self, method: str, path: str, **kwargs) -> None: :param path: The path of the HTTP/URL. :type path: str :param \**kwargs?: Optional keyword-only arguments to pass as information in the route. - :type \**kwargs: dict + :type \**kwargs?: dict """ self.method = method self.path = path.format(**kwargs) diff --git a/interactions/api/models/__init__.py b/interactions/api/models/__init__.py index a5099cb8a..3215ed977 100644 --- a/interactions/api/models/__init__.py +++ b/interactions/api/models/__init__.py @@ -6,6 +6,7 @@ models for dispatched Gateway events. """ from .attrs_utils import * # noqa: F401 F403 +from .audit_log import * # noqa: F401 F403 from .channel import * # noqa: F401 F403 from .flags import * # noqa: F401 F403 from .guild import * # noqa: F401 F403 diff --git a/interactions/api/models/attrs_utils.py b/interactions/api/models/attrs_utils.py index b8116dfdb..de6b72896 100644 --- a/interactions/api/models/attrs_utils.py +++ b/interactions/api/models/attrs_utils.py @@ -54,14 +54,6 @@ def __init__(self, kwargs_dict: dict = None, /, **other_kwargs): else: value["_client"] = client - # make sure json is recursively handled - if isinstance(value, list): - self._json[attrib_name] = [ - i._json if hasattr(i, "_json") else i for i in value - ] - elif hasattr(value, "_json"): - self._json[attrib_name] = value._json # type: ignore - passed_kwargs[attrib_name] = value elif attrib.default: @@ -103,11 +95,10 @@ def update(self, kwargs_dict: dict = None, /, **other_kwargs): if value is None: continue - if converter := attribs[name].converter: - value = converter(value) - self._json[name] = value - setattr(self, name, value) + setattr( + self, name, converter(value) if (converter := attribs[name].converter) else value + ) @attrs.define(eq=False, init=False, on_setattr=attrs.setters.NO_OP) diff --git a/interactions/api/models/attrs_utils.pyi b/interactions/api/models/attrs_utils.pyi index 5ee088c4f..9712ebaca 100644 --- a/interactions/api/models/attrs_utils.pyi +++ b/interactions/api/models/attrs_utils.pyi @@ -1,5 +1,5 @@ from functools import wraps -from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union, Type, overload +from typing import Any, Callable, Dict, List, Optional, Tuple, Type, TypeVar, Union, overload import attrs @@ -67,13 +67,9 @@ def convert_dict( """A helper function to convert the keys and values of a dictionary with the specified converters""" @overload -def deepcopy_kwargs() -> Callable[[_T], _T]: - ... - +def deepcopy_kwargs() -> Callable[[_T], _T]: ... @overload -def deepcopy_kwargs(cls: _T) -> _T: - ... - +def deepcopy_kwargs(cls: _T) -> _T: ... def deepcopy_kwargs(cls: Optional[_T] = None) -> Union[Callable[[_T], _T], _T]: """ A decorator to make the DictSerializerMixin deepcopy the kwargs before processing them. diff --git a/interactions/api/models/audit_log.py b/interactions/api/models/audit_log.py new file mode 100644 index 000000000..20f01dd78 --- /dev/null +++ b/interactions/api/models/audit_log.py @@ -0,0 +1,277 @@ +from enum import IntEnum +from typing import TYPE_CHECKING, List, Optional, TypeVar + +from .attrs_utils import DictSerializerMixin, convert_list, define, field +from .channel import Channel +from .misc import Snowflake +from .user import User +from .webhook import Webhook + +__all__ = ( + "AuditLogEntry", + "AuditLogEvents", + "AuditLogs", + "AuditLogChange", + "OptionalAuditEntryInfo", +) + +_T = TypeVar("_T") + + +if TYPE_CHECKING: + from .guild import Integration, ScheduledEvents + from .gw import AutoModerationRule + + +class AuditLogEvents(IntEnum): + """ + A class object representing the different types of AuditLogEvents. + + :ivar int GUILD_UPDATE: 1 - Server settings were updated + :ivar int CHANNEL_CREATE: 10 - Channel was created + :ivar int CHANNEL_UPDATE: 11 - Channel settings were updated + :ivar int CHANNEL_DELETE: 12 - Channel was deleted + :ivar int CHANNEL_OVERWRITE_CREATE: 13 - Permission overwrite was added to a channel + :ivar int CHANNEL_OVERWRITE_UPDATE: 14 - Permission overwrite was updated for a channel + :ivar int CHANNEL_OVERWRITE_DELETE: 15 - Permission overwrite was deleted from a channel + :ivar int MEMBER_KICK: 20 - Member was removed from server + :ivar int MEMBER_PRUNE: 21 - Members were pruned from server + :ivar int MEMBER_BAN_ADD: 22 - Member was banned from server + :ivar int MEMBER_BAN_REMOVE: 23 - Server ban was lifted for a member + :ivar int MEMBER_UPDATE: 24 - Member was updated in server + :ivar int MEMBER_ROLE_UPDATE: 25 - Member was added or removed from a role + :ivar int MEMBER_MOVE: 26 - Member was moved to a different voice channel + :ivar int MEMBER_DISCONNECT: 27 - Member was disconnected from a voice channel + :ivar int BOT_ADD: 28 - Bot user was added to server + :ivar int ROLE_CREATE: 30 - Role was created + :ivar int ROLE_UPDATE: 31 - Role was updated + :ivar int ROLE_DELETE: 32 - Role was deleted + :ivar int INVITE_CREATE: 40 - Server invite was created + :ivar int INVITE_UPDATE: 41 - Server invite was updated + :ivar int INVITE_DELETE: 42 - Server invite was deleted + :ivar int WEBHOOK_CREATE: 50 - Webhook was created + :ivar int WEBHOOK_UPDATE: 51 - Webhook properties or channel were updated + :ivar int WEBHOOK_DELETE: 52 - Webhook was deleted + :ivar int EMOJI_CREATE: 60 - Emoji was created + :ivar int EMOJI_UPDATE: 61 - Emoji name was updated + :ivar int EMOJI_DELETE: 62 - Emoji was deleted + :ivar int MESSAGE_DELETE: 72 - Single message was deleted + :ivar int MESSAGE_BULK_DELETE: 73 - Multiple messages were deleted + :ivar int MESSAGE_PIN: 74 - Message was pinned to a channel + :ivar int MESSAGE_UNPIN: 75 - Message was unpinned from a channel + :ivar int INTEGRATION_CREATE: 80 - App was added to server + :ivar int INTEGRATION_UPDATE: 81 - App was updated (as an example, its scopes were updated) + :ivar int INTEGRATION_DELETE: 82 - App was removed from server + :ivar int STAGE_INSTANCE_CREATE: 83 - Stage instance was created (stage channel becomes live) + :ivar int STAGE_INSTANCE_UPDATE: 84 - Stage instance details were updated + :ivar int STAGE_INSTANCE_DELETE: 85 - Stage instance was deleted (stage channel no longer live) + :ivar int STICKER_CREATE: 90 - Sticker was created + :ivar int STICKER_UPDATE: 91 - Sticker details were updated + :ivar int STICKER_DELETE: 92 - Sticker was deleted + :ivar int GUILD_SCHEDULED_EVENT_CREATE: 100 - Event was created + :ivar int GUILD_SCHEDULED_EVENT_UPDATE: 101 - Event was updated + :ivar int GUILD_SCHEDULED_EVENT_DELETE: 102 - Event was cancelled + :ivar int THREAD_CREATE: 110 - Thread was created in a channel + :ivar int THREAD_UPDATE: 111 - Thread was updated + :ivar int THREAD_DELETE: 112 - Thread was deleted + :ivar int APPLICATION_COMMAND_PERMISSION_UPDATE: 121 - Permissions were updated for a command + :ivar int AUTO_MODERATION_RULE_CREATE: 140 - Auto Moderation rule was created + :ivar int AUTO_MODERATION_RULE_UPDATE: 141 - Auto Moderation rule was updated + :ivar int AUTO_MODERATION_RULE_DELETE: 142 - Auto Moderation rule was deleted + :ivar int AUTO_MODERATION_BLOCK_MESSAGE: 143 - Message was blocked by AutoMod (according to a rule) + """ + + # guild related + GUILD_UPDATE = 1 + + # channel related + CHANNEL_CREATE = 10 + CHANNEL_UPDATE = 11 + CHANNEL_DELETE = 12 + CHANNEL_OVERWRITE_CREATE = 13 + CHANNEL_OVERWRITE_UPDATE = 14 + CHANNEL_OVERWRITE_DELETE = 15 + + # member related + MEMBER_KICK = 20 + MEMBER_PRUNE = 21 + MEMBER_BAN_ADD = 22 + MEMBER_BAN_REMOVE = 23 + MEMBER_UPDATE = 24 + MEMBER_ROLE_UPDATE = 25 + MEMBER_MOVE = 26 + MEMBER_DISCONNECT = 27 + BOT_ADD = 28 + + # role related + ROLE_CREATE = 30 + ROLE_UPDATE = 31 + ROLE_DELETE = 32 + + # invite related + INVITE_CREATE = 40 + INVITE_UPDATE = 41 + INVITE_DELETE = 42 + + # webhook related + WEBHOOK_CREATE = 50 + WEBHOOK_UPDATE = 51 + WEBHOOK_DELETE = 52 + + # emoji related + EMOJI_CREATE = 60 + EMOJI_UPDATE = 61 + EMOJI_DELETE = 62 + + # message related + MESSAGE_DELETE = 72 + MESSAGE_BULK_DELETE = 73 + MESSAGE_PIN = 74 + MESSAGE_UNPIN = 75 + + # integration related + INTEGRATION_CREATE = 80 + INTEGRATION_UPDATE = 81 + INTEGRATION_DELETE = 82 + + # stage instance related + STAGE_INSTANCE_CREATE = 83 + STAGE_INSTANCE_UPDATE = 84 + STAGE_INSTANCE_DELETE = 85 + + # sticker related + STICKER_CREATE = 90 + STICKER_UPDATE = 91 + STICKER_DELETE = 92 + + # guild scheduled event related + GUILD_SCHEDULED_EVENT_CREATE = 100 + GUILD_SCHEDULED_EVENT_UPDATE = 101 + GUILD_SCHEDULED_EVENT_DELETE = 102 + + # thread related + THREAD_CREATE = 110 + THREAD_UPDATE = 111 + THREAD_DELETE = 112 + + # app-command permissions related + APPLICATION_COMMAND_PERMISSION_UPDATE = 121 + + # auto mod related + AUTO_MODERATION_RULE_CREATE = 140 + AUTO_MODERATION_RULE_UPDATE = 141 + AUTO_MODERATION_RULE_DELETE = 142 + AUTO_MODERATION_BLOCK_MESSAGE = 143 + + +@define() +class AuditLogChange(DictSerializerMixin): + """ + A class object representing an AuditLogChange. + + :ivar Optional[_T] new_value?: New value of the key + :ivar Optional[_T] old_value?: Old value of the key + :ivar str key: Name of the changed entity, with a few [exceptions](https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-exceptions) + """ + + new_value: Optional[_T] = field(default=None) + old_value: Optional[_T] = field(default=None) + key: str = field() + + +@define() +class OptionalAuditEntryInfo(DictSerializerMixin): + """ + A class object representing OptionalAuditEntryInfo. + + :ivar Snowflake application_id: ID of the app whose permissions were targeted. ``AuditLogEvents``-type: 121 + :ivar Snowflake channel_id: Channel in which the entities were targeted. ``AuditLogEvents``-types: 26, 74, 75, 72, 83, 84, 85 + :ivar str count: Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, 27, 26 + :ivar str delete_member_days: Number of days after which inactive members were kicked. ``AuditLogEvents``-types: 21 + :ivar Snowflake id: ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15 + :ivar str members_removed: Number of members removed by the prune. ``AuditLogEvents``-types: 21 + :ivar Snowflake message_id: ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75 + :ivar Optional[str] role_name: Name of the role if type is "0" (not present if type is "1"). ``AuditLogEvents``-types: 13, 14, 15 + :ivar str type: Type of overwritten entity - role ("0") or member ("1"). ``AuditLogEvents``-types: 13, 14, 15 + """ + + application_id: Snowflake = field(converter=Snowflake) + channel_id: Snowflake = field(converter=Snowflake) + count: str = field() + delete_member_days: str = field() + id: Snowflake = field(converter=Snowflake) + members_removed: str = field() + message_id: Snowflake = field(converter=Snowflake) + role_name: Optional[str] = field(default=None) + type: str = field() + + +@define() +class AuditLogEntry(DictSerializerMixin): + """ + A class object representing an AuditLogEntry. + + :ivar Optional[str] target_id?: ID of the affected entity (webhook, user, role, etc.) + :ivar Optional[List[AuditLogChange]] changes?: Changes made to the target_id + :ivar Optional[Snowflake] user_id?: User or app that made the changes + :ivar Snowflake id: ID of the entry + :ivar AuditLogEvents action_type: Type of action that occurred + :ivar OptionalAuditEntryInfo options?: Additional info for certain event types + :ivar str reason?: Reason for the change (1-512 characters) + """ + + target_id: Optional[str] = field(default=None) + changes: Optional[List[AuditLogChange]] = field( + converter=convert_list(AuditLogChange), default=None + ) + user_id: Optional[Snowflake] = field(converter=Snowflake, default=None) + id: Snowflake = field(converter=Snowflake) + action_type: AuditLogEvents = field(converter=AuditLogEvents) + options: Optional[OptionalAuditEntryInfo] = field( + converter=OptionalAuditEntryInfo, default=None + ) + reason: Optional[str] = field(default=None) + + +@define() +class AuditLogs(DictSerializerMixin): + """ + A class object representing the audit logs of a guild. + + :ivar List[AuditLogEntry] audit_log_entries: List of audit log entries, sorted from most to least recent. + :ivar List[AutoModerationRule] auto_moderation_rules: List of auto moderation rules referenced in the audit log. + :ivar List[ScheduledEvents] guild_scheduled_events: List of guild scheduled events referenced in the audit log + :ivar List[Integration] integrations: List of partial integration objects + :ivar List[Channel] threads: List of threads referenced in the audit log + :ivar List[User] users: List of users referenced in the audit log + :ivar List[Webhook] webhooks: List of webhooks referenced in the audit log + """ + + audit_log_entries: List[AuditLogEntry] = field( + converter=convert_list(AuditLogEntry), default=None + ) + auto_moderation_rules: List["AutoModerationRule"] = field(default=None) + guild_scheduled_events: List["ScheduledEvents"] = field(default=None) + integrations: List["Integration"] = field(default=None) + threads: List[Channel] = field(converter=convert_list(Channel), default=None) + users: List[User] = field(converter=convert_list(User), default=None) + webhooks: List[Webhook] = field(converter=convert_list(Webhook), default=None) + + def __attrs_post__init(self): + if self.guild_scheduled_events: + from .guild import ScheduledEvents + + self.guild_scheduled_events = [ + ScheduledEvents(**event) for event in self.guild_scheduled_events + ] + if self.integrations: + from .guild import Integration + + self.integrations = [Integration(**integration) for integration in self.integrations] + + if self.auto_moderation_rules: + from .gw import AutoModerationRule + + self.auto_moderation_rules = [ + AutoModerationRule(**rule) for rule in self.auto_moderation_rules + ] diff --git a/interactions/api/models/channel.py b/interactions/api/models/channel.py index cef609b04..e13210b62 100644 --- a/interactions/api/models/channel.py +++ b/interactions/api/models/channel.py @@ -44,6 +44,7 @@ class ChannelType(IntEnum): GUILD_PUBLIC_THREAD = 11 GUILD_PRIVATE_THREAD = 12 GUILD_STAGE_VOICE = 13 + GUILD_FORUM = 15 @define() @@ -128,6 +129,8 @@ class Channel(ClientSerializerMixin, IDMixin): :ivar Optional[ThreadMember] member?: The member of the thread in the channel. :ivar Optional[int] default_auto_archive_duration?: The set auto-archive time for all threads to naturally follow in the channel. :ivar Optional[str] permissions?: The permissions of the channel. + :ivar Optional[int] flags?: The flags of the channel. + :ivar Optional[int] total_message_sent?: Number of messages ever sent in a thread. """ __slots__ = ( @@ -165,6 +168,7 @@ class Channel(ClientSerializerMixin, IDMixin): default_auto_archive_duration: Optional[int] = field(default=None) permissions: Optional[str] = field(default=None) flags: Optional[int] = field(default=None) + total_message_sent: Optional[int] = field(default=None) def __attrs_post_init__(self): # sourcery skip: last-if-guard if self._client: @@ -210,21 +214,21 @@ async def send( Sends a message in the channel. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param files?: A file or list of files to be attached to the message. - :type files: Optional[Union[File, List[File]]] + :type files?: Optional[Union[File, List[File]]] :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :param stickers?: A list of stickers to send with your message. You can send up to 3 stickers per message. - :type stickers: Optional[List[Sticker]] + :type stickers?: Optional[List[Sticker]] :param components?: A component, or list of components for the message. - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[Actionrow], List[Button], List[SelectMenu]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[Actionrow], List[Button], List[SelectMenu]]] :return: The sent message as an object. :rtype: Message """ @@ -314,31 +318,31 @@ async def modify( The fields `archived`, `auto_archive_duration` and `locked` require the provided channel to be a thread. :param name?: The name of the channel, defaults to the current value of the channel - :type name: str + :type name?: str :param topic?: The topic of that channel, defaults to the current value of the channel - :type topic: Optional[str] + :type topic?: Optional[str] :param bitrate?: (voice channel only) The bitrate (in bits) of the voice channel, defaults to the current value of the channel - :type bitrate: Optional[int] + :type bitrate?: Optional[int] :param user_limit?: (voice channel only) Maximum amount of users in the channel, defaults to the current value of the channel - :type user_limit: Optional[int] + :type user_limit?: Optional[int] :param rate_limit_per_use?: Amount of seconds a user has to wait before sending another message (0-21600), defaults to the current value of the channel :type rate_limit_per_user: Optional[int] :param position?: Sorting position of the channel, defaults to the current value of the channel - :type position: Optional[int] + :type position?: Optional[int] :param parent_id?: The id of the parent category for a channel, defaults to the current value of the channel - :type parent_id: Optional[int] + :type parent_id?: Optional[int] :param nsfw?: Whether the channel is nsfw or not, defaults to the current value of the channel - :type nsfw: Optional[bool] + :type nsfw?: Optional[bool] :param permission_overwrites?: The permission overwrites, if any - :type permission_overwrites: Optional[List[Overwrite]] + :type permission_overwrites?: Optional[List[Overwrite]] :param archived?: Whether the thread is archived - :type archived: Optional[bool] + :type archived?: Optional[bool] :param auto_archive_duration?: The time after the thread is automatically archived. One of 60, 1440, 4320, 10080 - :type auto_archive_duration: Optional[int] + :type auto_archive_duration?: Optional[int] :param locked?: Whether the thread is locked - :type locked: Optional[bool] + :type locked?: Optional[bool] :param reason?: The reason for the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified channel as new object :rtype: Channel """ @@ -414,7 +418,7 @@ async def set_name( :param name: The new name of the channel :type name: str :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -433,7 +437,7 @@ async def set_topic( :param topic: The new topic of the channel :type topic: str :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -452,7 +456,7 @@ async def set_bitrate( :param bitrate: The new bitrate of the channel :type bitrate: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -474,7 +478,7 @@ async def set_user_limit( :param user_limit: The new user limit of the channel :type user_limit: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -498,7 +502,7 @@ async def set_rate_limit_per_user( :param rate_limit_per_user: The new rate_limit_per_user of the channel (0-21600) :type rate_limit_per_user: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -517,7 +521,7 @@ async def set_position( :param position: The new position of the channel :type position: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -536,7 +540,7 @@ async def set_parent_id( :param parent_id: The new parent_id of the channel :type parent_id: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -555,7 +559,7 @@ async def set_nsfw( :param nsfw: The new nsfw-flag of the channel :type nsfw: bool :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -574,7 +578,7 @@ async def archive( :param archived: Whether the Thread is archived, defaults to True :type archived: bool :param reason?: The reason of the archiving - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -593,7 +597,7 @@ async def set_auto_archive_duration( :param auto_archive_duration: The time after the thread is automatically archived. One of 60, 1440, 4320, 10080 :type auto_archive_duration: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -612,7 +616,7 @@ async def lock( :param locked: Whether the Thread is locked, defaults to True :type locked: bool :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] :return: The edited channel :rtype: Channel """ @@ -778,13 +782,13 @@ def check_pinned(message): :param amount: The amount of messages to delete :type amount: int :param check?: The function used to check if a message should be deleted. The message is only deleted if the check returns `True` - :type check: Callable[[Message], bool] + :type check?: Callable[[Message], bool] :param before?: An id of a message to purge only messages before that message - :type before: Optional[int] + :type before?: Optional[int] :param bulk?: Whether to bulk delete the messages (you cannot delete messages older than 14 days, default) or to delete every message seperately :param bulk: Optional[bool] :param reason?: The reason of the deletes - :type reason: Optional[str] + :type reason?: Optional[str] :return: A list of the deleted messages :rtype: List[Message] """ @@ -974,15 +978,15 @@ async def create_thread( :type name: str :param auto_archive_duration?: duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080 - :type auto_archive_duration: Optional[int] + :type auto_archive_duration?: Optional[int] :param type?: The type of thread, defaults to public. ignored if creating thread from a message - :type type: Optional[ChannelType] + :type type?: Optional[ChannelType] :param invitable?: Boolean to display if the Thread is open to join or private. - :type invitable: Optional[bool] + :type invitable?: Optional[bool] :param message_id?: An optional message to create a thread from. - :type message_id: Optional[Union[int, Snowflake, "Message"]] + :type message_id?: Optional[Union[int, Snowflake, "Message"]] :param reason?: An optional reason for the audit log - :type reason: Optional[str] + :type reason?: Optional[str] :return: The created thread :rtype: Channel """ @@ -1036,21 +1040,21 @@ async def create_invite( Creates an invite for the channel :param max_age?: Duration of invite in seconds before expiry, or 0 for never. between 0 and 604800 (7 days). Default 86400 (24h) - :type max_age: Optional[int] + :type max_age?: Optional[int] :param max_uses?: Max number of uses or 0 for unlimited. between 0 and 100. Default 0 - :type max_uses: Optional[int] + :type max_uses?: Optional[int] :param temporary?: Whether this invite only grants temporary membership. Default False - :type temporary: Optional[bool] + :type temporary?: Optional[bool] :param unique?: If true, don't try to reuse a similar invite (useful for creating many unique one time use invites). Default False - :type unique: Optional[bool] + :type unique?: Optional[bool] :param target_type?: The type of target for this voice channel invite - :type target_type: Optional["InviteTargetType"] + :type target_type?: Optional["InviteTargetType"] :param target_user_id?: The id of the user whose stream to display for this invite, required if target_type is STREAM, the user must be streaming in the channel - :type target_user_id: Optional[int] + :type target_user_id?: Optional[int] :param target_application_id?: The id of the embedded application to open for this invite, required if target_type is EMBEDDED_APPLICATION, the application must have the EMBEDDED flag - :type target_application_id: Optional[int] + :type target_application_id?: Optional[int] :param reason?: The reason for the creation of the invite - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: diff --git a/interactions/api/models/guild.py b/interactions/api/models/guild.py index 20964d430..d6f167465 100644 --- a/interactions/api/models/guild.py +++ b/interactions/api/models/guild.py @@ -1,6 +1,6 @@ from datetime import datetime from enum import Enum, IntEnum -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union from ..error import LibraryException from .attrs_utils import ( @@ -11,6 +11,7 @@ define, field, ) +from .audit_log import AuditLogEvents, AuditLogs from .channel import Channel, ChannelType, Thread, ThreadMember from .member import Member from .message import Emoji, Sticker @@ -374,9 +375,9 @@ async def ban( :param member_id: The id of the member to ban :type member_id: Union[int, Member, Snowflake] :param reason?: The reason of the ban - :type reason: Optional[str] + :type reason?: Optional[str] :param delete_message_days?: Number of days to delete messages, from 0 to 7. Defaults to 0 - :type delete_message_days: Optional[int] + :type delete_message_days?: Optional[int] """ if not self._client: raise LibraryException(code=13) @@ -406,7 +407,7 @@ async def remove_ban( :param user_id: The id of the user to remove the ban from :type user_id: Union[int, Snowflake] :param reason?: The reason for the removal of the ban - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -427,7 +428,7 @@ async def kick( :param member_id: The id of the member to kick :type member_id: Union[int, Member, Snowflake] :param reason?: The reason for the kick - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -456,7 +457,7 @@ async def add_member_role( :param member_id: The id of the member to add the roles to :type member_id: Union[Member, int, Snowflake] :param reason?: The reason why the roles are added - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -485,7 +486,7 @@ async def remove_member_role( :param member_id: The id of the member to remove the roles from :type member_id: Union[Member, int, Snowflake] :param reason?: The reason why the roles are removed - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -517,19 +518,19 @@ async def create_role( :param name: The name of the role :type name: str :param color?: RGB color value as integer, default ``0`` - :type color: Optional[int] + :type color?: Optional[int] :param permissions?: Bitwise value of the enabled/disabled permissions - :type permissions: Optional[int] + :type permissions?: Optional[int] :param hoist?: Whether the role should be displayed separately in the sidebar, default ``False`` - :type hoist: Optional[bool] + :type hoist?: Optional[bool] :param icon?: The role's icon image (if the guild has the ROLE_ICONS feature) - :type icon: Optional[Image] + :type icon?: Optional[Image] :param unicode_emoji?: The role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature) - :type unicode_emoji: Optional[str] + :type unicode_emoji?: Optional[str] :param mentionable?: Whether the role should be mentionable, default ``False`` - :type mentionable: Optional[bool] + :type mentionable?: Optional[bool] :param reason?: The reason why the role is created, default ``None`` - :type reason: Optional[str] + :type reason?: Optional[str] :return: The created Role :rtype: Role """ @@ -620,7 +621,7 @@ async def delete_role( :param role_id: The id of the role to delete :type role_id: Union[int, Snowflake, Role] :param reason?: The reason of the deletion - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -657,21 +658,21 @@ async def modify_role( :param role_id: The id of the role to edit :type role_id: Union[int, Snowflake, Role] :param name?: The name of the role, defaults to the current value of the role - :type name: Optional[str] + :type name?: Optional[str] :param color?: RGB color value as integer, defaults to the current value of the role - :type color: Optional[int] + :type color?: Optional[int] :param permissions?: Bitwise value of the enabled/disabled permissions, defaults to the current value of the role - :type permissions: Optional[int] + :type permissions?: Optional[int] :param hoist?: Whether the role should be displayed separately in the sidebar, defaults to the current value of the role - :type hoist: Optional[bool] + :type hoist?: Optional[bool] :param icon?: The role's icon image (if the guild has the ROLE_ICONS feature), defaults to the current value of the role - :type icon: Optional[Image] + :type icon?: Optional[Image] :param unicode_emoji?: The role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature), defaults to the current value of the role - :type unicode_emoji: Optional[str] + :type unicode_emoji?: Optional[str] :param mentionable?: Whether the role should be mentionable, defaults to the current value of the role - :type mentionable: Optional[bool] + :type mentionable?: Optional[bool] :param reason?: The reason why the role is edited, default ``None`` - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified role object :rtype: Role """ @@ -737,15 +738,15 @@ async def create_thread( :type channel_id: Union[int, Snowflake, Channel] :param auto_archive_duration?: duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080 - :type auto_archive_duration: Optional[int] + :type auto_archive_duration?: Optional[int] :param type?: The type of thread, defaults to public. ignored if creating thread from a message - :type type: Optional[ChannelType] + :type type?: Optional[ChannelType] :param invitable?: Boolean to display if the Thread is open to join or private. - :type invitable: Optional[bool] + :type invitable?: Optional[bool] :param message_id?: An optional message to create a thread from. - :type message_id: Optional[Union[int, Snowflake, "Message"]] + :type message_id?: Optional[Union[int, Snowflake, "Message"]] :param reason?: An optional reason for the audit log - :type reason: Optional[str] + :type reason?: Optional[str] :return: The created thread :rtype: Channel """ @@ -802,21 +803,21 @@ async def create_channel( :param type: The type of the channel :type type: ChannelType :param topic?: The topic of that channel - :type topic: Optional[str] + :type topic?: Optional[str] :param bitrate?: (voice channel only) The bitrate (in bits) of the voice channel - :type bitrate: Optional[int] + :type bitrate?: Optional[int] :param user_limit?: (voice channel only) Maximum amount of users in the channel - :type user_limit: Optional[int] + :type user_limit?: Optional[int] :param rate_limit_per_use?: Amount of seconds a user has to wait before sending another message (0-21600) :type rate_limit_per_user: Optional[int] :param position?: Sorting position of the channel - :type position: Optional[int] + :type position?: Optional[int] :param parent_id?: The id of the parent category for a channel - :type parent_id: Optional[Union[int, Channel, Snowflake]] + :type parent_id?: Optional[Union[int, Channel, Snowflake]] :param permission_overwrites?: The permission overwrites, if any - :type permission_overwrites: Optional[Overwrite] + :type permission_overwrites?: Optional[Overwrite] :param nsfw?: Whether the channel is nsfw or not, default ``False`` - :type nsfw: Optional[bool] + :type nsfw?: Optional[bool] :param reason: The reason for the creation :type reason: Optional[str] :return: The created channel @@ -929,29 +930,29 @@ async def modify_channel( :param channel_id: The id of the channel to modify :type channel_id: Union[int, Snowflake, Channel] :param name?: The name of the channel, defaults to the current value of the channel - :type name: str + :type name?: str :param topic?: The topic of that channel, defaults to the current value of the channel - :type topic: Optional[str] + :type topic?: Optional[str] :param bitrate?: (voice channel only) The bitrate (in bits) of the voice channel, defaults to the current value of the channel - :type bitrate: Optional[int] + :type bitrate?: Optional[int] :param user_limit?: (voice channel only) Maximum amount of users in the channel, defaults to the current value of the channel - :type user_limit: Optional[int] + :type user_limit?: Optional[int] :param rate_limit_per_use?: Amount of seconds a user has to wait before sending another message (0-21600), defaults to the current value of the channel :type rate_limit_per_user: Optional[int] :param position?: Sorting position of the channel, defaults to the current value of the channel - :type position: Optional[int] + :type position?: Optional[int] :param parent_id?: The id of the parent category for a channel, defaults to the current value of the channel - :type parent_id: Optional[int] + :type parent_id?: Optional[int] :param permission_overwrites?: The permission overwrites, if any - :type permission_overwrites: Optional[Overwrite] + :type permission_overwrites?: Optional[Overwrite] :param nsfw?: Whether the channel is nsfw or not, defaults to the current value of the channel - :type nsfw: Optional[bool] + :type nsfw?: Optional[bool] :param archived?: Whether the thread is archived - :type archived: Optional[bool] + :type archived?: Optional[bool] :param auto_archive_duration?: The time after the thread is automatically archived. One of 60, 1440, 4320, 10080 - :type auto_archive_duration: Optional[int] + :type auto_archive_duration?: Optional[int] :param locked?: Whether the thread is locked - :type locked: Optional[bool] + :type locked?: Optional[bool] :param reason: The reason for the edit :type reason: Optional[str] :return: The modified channel @@ -1050,19 +1051,19 @@ async def modify_member( :param member_id: The id of the member to modify :type member_id: Union[int, Snowflake, Member] :param nick?: The nickname of the member - :type nick: Optional[str] + :type nick?: Optional[str] :param roles?: A list of all role ids the member has - :type roles: Optional[List[int]] + :type roles?: Optional[List[int]] :param mute?: whether the user is muted in voice channels - :type mute: Optional[bool] + :type mute?: Optional[bool] :param deaf?: whether the user is deafened in voice channels - :type deaf: Optional[bool] + :type deaf?: Optional[bool] :param channel_id?: id of channel to move user to (if they are connected to voice) - :type channel_id: Optional[int] + :type channel_id?: Optional[int] :param communication_disabled_until?: when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future) - :type communication_disabled_until: Optional[datetime.isoformat] + :type communication_disabled_until?: Optional[datetime.isoformat] :param reason?: The reason of the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified member :rtype: Member """ @@ -1157,49 +1158,49 @@ async def modify( Modifies the current guild. :param name?: The new name of the guild - :type name: Optional[str] + :type name?: Optional[str] :param verification_level?: The verification level of the guild - :type verification_level: Optional[VerificationLevel] + :type verification_level?: Optional[VerificationLevel] :param default_message_notifications?: The default message notification level for members - :type default_message_notifications: Optional[DefaultMessageNotificationLevel] + :type default_message_notifications?: Optional[DefaultMessageNotificationLevel] :param explicit_content_filter?: The explicit content filter level for media content - :type explicit_content_filter: Optional[ExplicitContentFilterLevel] + :type explicit_content_filter?: Optional[ExplicitContentFilterLevel] :param afk_channel_id?: The id for the afk voice channel - :type afk_channel_id: Optional[int] + :type afk_channel_id?: Optional[int] :param afk_timeout?: Afk timeout in seconds - :type afk_timeout: Optional[int] + :type afk_timeout?: Optional[int] :param icon?: 1024x1024 png/jpeg/gif image for the guild icon (can be animated gif when the server has the ANIMATED_ICON feature) - :type icon: Optional[Image] + :type icon?: Optional[Image] :param owner_id?: The id of the user to transfer the guild ownership to. You must be the owner to perform this - :type owner_id: Optional[int] + :type owner_id?: Optional[int] :param splash?: 16:9 png/jpeg image for the guild splash (when the server has the INVITE_SPLASH feature) - :type splash: Optional[Image] + :type splash?: Optional[Image] :param discovery_splash?: 16:9 png/jpeg image for the guild discovery splash (when the server has the DISCOVERABLE feature) - :type discovery_splash: Optional[Image] + :type discovery_splash?: Optional[Image] :param banner?: 16:9 png/jpeg image for the guild banner (when the server has the BANNER feature; can be animated gif when the server has the ANIMATED_BANNER feature) - :type banner: Optional[Image] + :type banner?: Optional[Image] :param system_channel_id?: The id of the channel where guild notices such as welcome messages and boost events are posted - :type system_channel_id: Optional[int] + :type system_channel_id?: Optional[int] :param suppress_join_notifications?: Whether to suppress member join notifications in the system channel or not - :type suppress_join_notifications: Optional[bool] + :type suppress_join_notifications?: Optional[bool] :param suppress_premium_subscriptions?: Whether to suppress server boost notifications in the system channel or not - :type suppress_premium_subscriptions: Optional[bool] + :type suppress_premium_subscriptions?: Optional[bool] :param suppress_guild_reminder_notifications?: Whether to suppress server setup tips in the system channel or not - :type suppress_guild_reminder_notifications: Optional[bool] + :type suppress_guild_reminder_notifications?: Optional[bool] :param suppress_join_notification_replies?: Whether to hide member join sticker reply buttons in the system channel or not - :type suppress_join_notification_replies: Optional[bool] + :type suppress_join_notification_replies?: Optional[bool] :param rules_channel_id?: The id of the channel where guilds display rules and/or guidelines - :type rules_channel_id: Optional[int] + :type rules_channel_id?: Optional[int] :param public_updates_channel_id?: The id of the channel where admins and moderators of community guilds receive notices from Discord - :type public_updates_channel_id: Optional[int] + :type public_updates_channel_id?: Optional[int] :param preferred_locale?: The preferred locale of a community guild used in server discovery and notices from Discord; defaults to "en-US" - :type preferred_locale: Optional[str] + :type preferred_locale?: Optional[str] :param description?: The description for the guild, if the guild is discoverable - :type description: Optional[str] + :type description?: Optional[str] :param premium_progress_bar_enabled?: Whether the guild's boost progress bar is enabled - :type premium_progress_bar_enabled: Optional[bool] + :type premium_progress_bar_enabled?: Optional[bool] :param reason?: The reason for the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified guild :rtype: Guild """ @@ -1294,7 +1295,7 @@ async def set_name( :param name: The new name of the guild :type name: str :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(name=name, reason=reason) @@ -1310,7 +1311,7 @@ async def set_verification_level( :param verification_level: The new verification level of the guild :type verification_level: VerificationLevel :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(verification_level=verification_level, reason=reason) @@ -1326,7 +1327,7 @@ async def set_default_message_notifications( :param default_message_notifications: The new default message notification level of the guild :type default_message_notifications: DefaultMessageNotificationLevel :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify( default_message_notifications=default_message_notifications, reason=reason @@ -1344,7 +1345,7 @@ async def set_explicit_content_filter( :param explicit_content_filter: The new explicit content filter level of the guild :type explicit_content_filter: ExplicitContentFilterLevel :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(explicit_content_filter=explicit_content_filter, reason=reason) @@ -1360,7 +1361,7 @@ async def set_afk_channel( :param afk_channel_id: The new name of the guild :type afk_channel_id: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(afk_channel_id=afk_channel_id, reason=reason) @@ -1376,7 +1377,7 @@ async def set_afk_timeout( :param afk_timeout: The new afk timeout of the guild :type afk_timeout: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(afk_timeout=afk_timeout, reason=reason) @@ -1392,7 +1393,7 @@ async def set_system_channel( :param system_channel_id: The new system channel id of the guild :type system_channel_id: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(system_channel_id=system_channel_id, reason=reason) @@ -1408,7 +1409,7 @@ async def set_rules_channel( :param rules_channel_id: The new rules channel id of the guild :type rules_channel_id: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(rules_channel_id=rules_channel_id, reason=reason) @@ -1424,7 +1425,7 @@ async def set_public_updates_channel( :param public_updates_channel_id: The new public updates channel id of the guild :type public_updates_channel_id: int :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(public_updates_channel_id=public_updates_channel_id, reason=reason) @@ -1440,7 +1441,7 @@ async def set_preferred_locale( :param preferred_locale: The new preferredlocale of the guild :type preferred_locale: str :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(preferred_locale=preferred_locale, reason=reason) @@ -1456,7 +1457,7 @@ async def set_description( :param description: The new description of the guild :type description: str :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(description=description, reason=reason) @@ -1472,7 +1473,7 @@ async def set_premium_progress_bar_enabled( :param premium_progress_bar_enabled: Whether the bar is enabled or not :type premium_progress_bar_enabled: bool :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify( premium_progress_bar_enabled=premium_progress_bar_enabled, reason=reason @@ -1490,7 +1491,7 @@ async def set_icon( :param icon: The new icon of the guild :type icon: Image :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(icon=icon, reason=reason) @@ -1506,7 +1507,7 @@ async def set_splash( :param splash: The new splash of the guild :type splash: Image :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(splash=splash, reason=reason) @@ -1522,7 +1523,7 @@ async def set_discovery_splash( :param discovery_splash: The new discovery_splash of the guild :type discovery_splash: Image :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(discovery_splash=discovery_splash, reason=reason) @@ -1538,7 +1539,7 @@ async def set_banner( :param banner: The new banner of the guild :type banner: Image :param reason?: The reason of the edit - :type reason: Optional[str] + :type reason?: Optional[str] """ return await self.modify(banner=banner, reason=reason) @@ -1564,13 +1565,13 @@ async def create_scheduled_event( :param scheduled_start_time: The time to schedule the scheduled event :type scheduled_start_time: datetime.isoformat :param scheduled_end_time?: The time when the scheduled event is scheduled to end - :type scheduled_end_time: Optional[datetime.isoformat] + :type scheduled_end_time?: Optional[datetime.isoformat] :param entity_metadata?: The entity metadata of the scheduled event - :type entity_metadata: Optional[EventMetadata] + :type entity_metadata?: Optional[EventMetadata] :param channel_id?: The channel id of the scheduled event. - :type channel_id: Optional[int] + :type channel_id?: Optional[int] :param description?: The description of the scheduled event - :type description: Optional[str] + :type description?: Optional[str] :param image?: The cover image of the scheduled event :type image?: Optional[Image] :return: The created event @@ -1639,15 +1640,15 @@ async def modify_scheduled_event( :param scheduled_start_time: The time to schedule the scheduled event :type scheduled_start_time: Optional[datetime.isoformat] :param scheduled_end_time?: The time when the scheduled event is scheduled to end - :type scheduled_end_time: Optional[datetime.isoformat] + :type scheduled_end_time?: Optional[datetime.isoformat] :param entity_metadata?: The entity metadata of the scheduled event - :type entity_metadata: Optional[EventMetadata] + :type entity_metadata?: Optional[EventMetadata] :param channel_id?: The channel id of the scheduled event. - :type channel_id: Optional[int] + :type channel_id?: Optional[int] :param description?: The description of the scheduled event - :type description: Optional[str] + :type description?: Optional[str] :param status?: The status of the scheduled event - :type status: Optional[EventStatus] + :type status?: Optional[EventStatus] :param image?: The cover image of the scheduled event :type image?: Optional[Image] :return: The modified event @@ -1796,7 +1797,7 @@ async def modify_role_position( :param position: The new position of the role :type position: int :param reason?: The reason for the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: List of guild roles with updated hierarchy :rtype: List[Role] """ @@ -2021,9 +2022,9 @@ async def get_list_of_members( Lists the members of a guild. :param limit?: How many members to get from the API. Max is 1000. - :type limit: Optional[int] + :type limit?: Optional[int] :param after?: Get only Members after this member. - :type after: Optional[Union[Member, int]] + :type after?: Optional[Union[Member, int]] :return: A list of members :rtype: List[Member] """ @@ -2051,7 +2052,7 @@ async def search_members(self, query: str, limit: Optional[int] = 1) -> List[Mem :param query: The string to search for :type query: str :param limit?: The number of members to return. - :type limit: Optional[int] + :type limit?: Optional[int] :return: A list of matching members :rtype: List[Member] """ @@ -2271,6 +2272,161 @@ async def modify_auto_moderation_rule( ) return AutoModerationRule(**res) + async def get_audit_logs( + self, + limit: Optional[int] = 100, + user_id: Optional[Union[User, int, Snowflake]] = MISSING, + action_type: Optional[Union[int, AuditLogEvents]] = MISSING, + before: Optional[Union[int, Snowflake]] = MISSING, + ) -> AuditLogs: + """ + Gets the audit logs of the guild. + + :param limit?: How many entries to get, default 100 + :type limit?: Optional[int] + :param user_id?: User ID snowflake. filter the log for actions made by a user. + :type user_id?: Optional[Union[User, int, Snowflake]] + :param action_type?: The Type of the audit log action. + :type action_type?: Optional[Union[int, AuditLogEvents]] + :param before?: filter the log before a certain entry id. + :type before?: Union[int, Snowflake] + :return: The guild audit logs + :rtype: AuditLogs + """ + + _user_id = ( + (user_id.id if isinstance(user_id, User) else user_id) + if user_id is not MISSING + else None + ) + _before = before if before is not MISSING else None + _action_type = action_type if action_type is not MISSING else None + + res = await self._client.get_guild_auditlog( + guild_id=int(self.id), + limit=limit, + before=_before, + user_id=_user_id, + action_type=_action_type, + ) + return AuditLogs(**res) + + async def get_latest_audit_log_action( + self, + of: Union[ + User, + Snowflake, + AuditLogEvents, + int, + Member, + Tuple[Union[User, Member, Snowflake, int], Union[AuditLogs, int]], + ], + ) -> AuditLogs: + """ + Gets the latest audit log action of either a user or an action type + + :param of: The user, user id or action type to look for + :type of: Union[User, Snowflake, AuditLogEvents, int, Tuple[Union[User, Snowflake, int], Union[AuditLogs, int]]] + :return: The latest AuditLog action that applies to the ``of`` parameter + :rtype: AuditLogs + """ + + if isinstance(of, tuple): + if len(of) != 2 or len(str(of[1])) > 3: + raise LibraryException( + 12, + "You specified invalid arguments in the tuple. Make sure the first argument" + "is the user ID and the second is the action type!", + ) + + _user = of[0].id if isinstance(of[0], (Member, User)) else of[0] + res = await self._client.get_guild_auditlog( + guild_id=int(self.id), user_id=_user, action_type=of[1] + ) + + elif isinstance(of, AuditLogEvents) or isinstance(of, int) and len(str(of)) <= 3: + res = await self._client.get_guild_auditlog( + guild_id=int(self.id), limit=1, action_type=of + ) + + else: + if isinstance(of, (Member, User)): + of = of.id + res = await self._client.get_guild_auditlog(guild_id=int(self.id), user_id=of, limit=1) + + return AuditLogs(**res) + + async def get_full_audit_logs( + self, + user_id: Optional[Union[User, int, Snowflake]] = MISSING, + action_type: Optional[Union[int, AuditLogEvents]] = MISSING, + ) -> AuditLogs: + """ + Gets the full audit log of the guild. + + :param user_id?: User ID snowflake. filter the log for actions made by a user. + :type user_id?: Optional[Union[User, int, Snowflake]] + :param action_type?: The type of the audit log action. + :type action_type?: Optional[Union[int, AuditLogEvents]] + :return: The full AuditLog of the guild + :rtype: AuditLogs + """ + + _action_type = action_type if action_type is not MISSING else None + _user_id = ( + (user_id.id if isinstance(user_id, User) else user_id) + if user_id is not MISSING + else None + ) + _audit_log_dict: dict = { + "audit_log_entries": [], + "users": [], + "integrations": [], + "webhooks": [], + "guild_scheduled_events": [], + "threads": [], + "application_commands": [], + "auto_moderation_rules": [], + } + + res = await self._client.get_guild_auditlog( + guild_id=int(self.id), user_id=_user_id, action_type=_action_type, limit=100 + ) + + if len(res["audit_log_entries"]) < 100: + return AuditLogs(**res) + + while len(res["audit_log_entries"]) == 100: + _before = res["audit_log_entries"][-1]["id"] + + double = False + for key, values in res.items(): + for value in values: + if value not in _audit_log_dict[key]: + _audit_log_dict[key] = value + else: + double = True + # It is possible that an item is already present, however we should not break directly out + # in case other attributes are not present yet. + if double: + break + + res = await self._client.get_guild_auditlog( + guild_id=int(self.id), + user_id=_user_id, + before=_before, + action_type=_action_type, + limit=100, + ) + + if not double: + for key, values in res.items(): + for value in values: + if value not in _audit_log_dict[key]: + _audit_log_dict[key] = value + + return AuditLogs(**_audit_log_dict) + @property def icon_url(self) -> Optional[str]: """ diff --git a/interactions/api/models/gw.py b/interactions/api/models/gw.py index b11966690..212630d65 100644 --- a/interactions/api/models/gw.py +++ b/interactions/api/models/gw.py @@ -38,7 +38,7 @@ "ChannelPins", "ThreadMembers", "ThreadList", - "ReactionRemove", + "MessageReactionRemove", "MessageReaction", "GuildIntegrations", "GuildBan", @@ -246,6 +246,7 @@ class GuildMember(ClientSerializerMixin): :ivar Optional[bool] deaf?: Whether the member of the event is deafened or not. :ivar Optional[bool] mute?: Whether the member of the event is muted or not. :ivar Optional[bool] pending?: Whether the member of the event is still pending -- pass membership screening -- or not. + :ivat Optional[datetime.isoformat] communication_disabled_until?: when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out. """ guild_id: Snowflake = field(converter=Snowflake) @@ -258,6 +259,9 @@ class GuildMember(ClientSerializerMixin): deaf: Optional[bool] = field(default=None) mute: Optional[bool] = field(default=None) pending: Optional[bool] = field(default=None) + communication_disabled_until: Optional[datetime.isoformat] = field( + converter=datetime.fromisoformat, default=None + ) def __str__(self) -> str: return self.name or "" @@ -305,9 +309,9 @@ async def ban( Bans the member from a guild. :param reason?: The reason of the ban - :type reason: Optional[str] + :type reason?: Optional[str] :param delete_message_days?: Number of days to delete messages, from 0 to 7. Defaults to 0 - :type delete_message_days: Optional[int] + :type delete_message_days?: Optional[int] """ await self._client.create_guild_ban( guild_id=int(self.guild_id), @@ -324,7 +328,7 @@ async def kick( Kicks the member from a guild. :param reason?: The reason for the kick - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -345,7 +349,7 @@ async def add_role( :param role: The role to add. Either ``Role`` object or role_id :type role: Union[Role, int] :param reason?: The reason why the roles are added - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -375,7 +379,7 @@ async def remove_role( :param role: The role to remove. Either ``Role`` object or role_id :type role: Union[Role, int] :param reason?: The reason why the roles are removed - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -417,17 +421,17 @@ async def send( Sends a DM to the member. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param components?: A component, or list of components for the message. - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[Actionrow], List[Button], List[SelectMenu]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[Actionrow], List[Button], List[SelectMenu]]] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param files?: A file or list of files to be attached to the message. - :type files: Optional[Union[File, List[File]]] + :type files?: Optional[Union[File, List[File]]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :return: The sent message as an object. :rtype: Message """ @@ -489,19 +493,19 @@ async def modify( Modifies the member of a guild. :param nick?: The nickname of the member - :type nick: Optional[str] + :type nick?: Optional[str] :param roles?: A list of all role ids the member has - :type roles: Optional[List[int]] + :type roles?: Optional[List[int]] :param mute?: whether the user is muted in voice channels - :type mute: Optional[bool] + :type mute?: Optional[bool] :param deaf?: whether the user is deafened in voice channels - :type deaf: Optional[bool] + :type deaf?: Optional[bool] :param channel_id?: id of channel to move user to (if they are connected to voice) - :type channel_id: Optional[int] + :type channel_id?: Optional[int] :param communication_disabled_until?: when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future) - :type communication_disabled_until: Optional[datetime.isoformat] + :type communication_disabled_until?: Optional[datetime.isoformat] :param reason?: The reason of the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified member object :rtype: Member """ @@ -758,7 +762,7 @@ class Presence(ClientSerializerMixin): @define() class MessageReaction(DictSerializerMixin): """ - A class object representing the gateway event ``MESSAGE_REACTION_ADD``. + A class object representing the gateway event ``MESSAGE_REACTION_ADD`` and ``MESSAGE_REACTION_REMOVE``. :ivar Optional[Snowflake] user_id?: The user ID of the event. :ivar Snowflake channel_id: The channel ID of the event. @@ -776,9 +780,9 @@ class MessageReaction(DictSerializerMixin): emoji: Optional[Emoji] = field(converter=Emoji, default=None) -class ReactionRemove(MessageReaction): +class MessageReactionRemove(MessageReaction): """ - A class object representing the gateway events ``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``. + A class object representing the gateway events ``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``. .. note:: This class inherits the already existing attributes of :class:`interactions.api.models.gw.Reaction`. diff --git a/interactions/api/models/member.py b/interactions/api/models/member.py index d061f46dc..fc23af51c 100644 --- a/interactions/api/models/member.py +++ b/interactions/api/models/member.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING, Any, List, Optional, Union from ..error import LibraryException -from .attrs_utils import MISSING, ClientSerializerMixin, convert_int, define, field +from .attrs_utils import MISSING, ClientSerializerMixin, convert_int, convert_list, define, field from .channel import Channel from .flags import Permissions from .misc import File, IDMixin, Snowflake @@ -30,7 +30,7 @@ class Member(ClientSerializerMixin, IDMixin): :ivar User user: The user of the guild. :ivar str nick: The nickname of the member. :ivar Optional[str] avatar?: The hash containing the user's guild avatar, if applicable. - :ivar List[Role] roles: The list of roles of the member. + :ivar List[int] roles: The list of roles of the member. :ivar datetime joined_at: The timestamp the member joined the guild at. :ivar datetime premium_since: The timestamp the member has been a server booster since. :ivar bool deaf: Whether the member is deafened. @@ -43,7 +43,7 @@ class Member(ClientSerializerMixin, IDMixin): user: Optional[User] = field(converter=User, default=None, add_client=True, repr=True) nick: Optional[str] = field(default=None, repr=True) _avatar: Optional[str] = field(default=None, discord_name="avatar") - roles: List[int] = field() + roles: List[int] = field(converter=convert_list(int)) joined_at: datetime = field(converter=datetime.fromisoformat) premium_since: Optional[datetime] = field(converter=datetime.fromisoformat, default=None) deaf: bool = field() @@ -108,9 +108,9 @@ async def ban( :param guild_id: The id of the guild to ban the member from :type guild_id: Union[int, Snowflake, "Guild"] :param reason?: The reason of the ban - :type reason: Optional[str] + :type reason?: Optional[str] :param delete_message_days?: Number of days to delete messages, from 0 to 7. Defaults to 0 - :type delete_message_days: Optional[int] + :type delete_message_days?: Optional[int] """ _guild_id = int(guild_id) if isinstance(guild_id, (Snowflake, int)) else int(guild_id.id) @@ -133,7 +133,7 @@ async def kick( :param guild_id: The id of the guild to kick the member from :type guild_id: Union[int, Snowflake, "Guild"] :param reason?: The reason for the kick - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -160,7 +160,7 @@ async def add_role( :param guild_id: The id of the guild to add the roles to the member :type guild_id: Union[int, Snowflake, "Guild"] :param reason?: The reason why the roles are added - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -189,7 +189,7 @@ async def remove_role( :param guild_id: The id of the guild to remove the roles of the member :type guild_id: Union[int, Snowflake, "Guild"] :param reason?: The reason why the roles are removed - :type reason: Optional[str] + :type reason?: Optional[str] """ if not self._client: raise LibraryException(code=13) @@ -228,19 +228,19 @@ async def send( Sends a DM to the member. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param components?: A component, or list of components for the message. - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param files?: A file or list of files to be attached to the message. - :type files: Optional[Union[File, List[File]]] + :type files?: Optional[Union[File, List[File]]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :return: The sent message as an object. :rtype: Message """ @@ -305,19 +305,19 @@ async def modify( :param guild_id: The id of the guild to modify the member on :type guild_id: Union[int, Snowflake, "Guild"] :param nick?: The nickname of the member - :type nick: Optional[str] + :type nick?: Optional[str] :param roles?: A list of all role ids the member has - :type roles: Optional[List[int]] + :type roles?: Optional[List[int]] :param mute?: whether the user is muted in voice channels - :type mute: Optional[bool] + :type mute?: Optional[bool] :param deaf?: whether the user is deafened in voice channels - :type deaf: Optional[bool] + :type deaf?: Optional[bool] :param channel_id?: id of channel to move user to (if they are connected to voice) - :type channel_id: Optional[Union[Channel, int, Snowflake]] + :type channel_id?: Optional[Union[Channel, int, Snowflake]] :param communication_disabled_until?: when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future) - :type communication_disabled_until: Optional[datetime.isoformat] + :type communication_disabled_until?: Optional[datetime.isoformat] :param reason?: The reason of the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified member object :rtype: Member """ diff --git a/interactions/api/models/message.py b/interactions/api/models/message.py index 4167c1bd0..0b3849a5e 100644 --- a/interactions/api/models/message.py +++ b/interactions/api/models/message.py @@ -563,7 +563,7 @@ def clear_fields(self) -> None: self.fields = [] def insert_field_at( - self, index: int, name: str = None, value: str = None, inline: Optional[bool] = False + self, index: int, name: str, value: str, inline: Optional[bool] = False ) -> None: """ Inserts a field in the embed at the specified index @@ -578,6 +578,14 @@ def insert_field_at( :type inline?: Optional[bool] """ + try: + fields = self.fields + fields.insert(index, EmbedField(name=name, value=value, inline=inline)) + self.fields = fields + + except AttributeError as e: + raise AttributeError("No fields found in Embed") from e + def set_field_at( self, index: int, name: str, value: str, inline: Optional[bool] = False ) -> None: @@ -834,6 +842,7 @@ class Message(ClientSerializerMixin, IDMixin): :ivar Optional[Union[Component, List[Component]]] components?: Components associated with this message, if any. :ivar Optional[List[PartialSticker]] sticker_items?: An array of message sticker item objects, if sent with them. :ivar Optional[List[Sticker]] stickers?: Array of sticker objects sent with the message if any. Deprecated. + :ivar Optional[int] position?: The approximate position of the message in a thread. """ id: Snowflake = field(converter=Snowflake) @@ -842,8 +851,8 @@ class Message(ClientSerializerMixin, IDMixin): author: User = field(converter=User, add_client=True, default=None) member: Optional[Member] = field(converter=Member, default=None, add_client=True) content: str = field(default=None) - timestamp: datetime = field(converter=str, default=None) - edited_timestamp: Optional[datetime] = field(converter=str, default=None) + timestamp: datetime = field(converter=datetime.fromisoformat, default=None) + edited_timestamp: Optional[datetime] = field(converter=datetime.fromisoformat, default=None) tts: bool = field(default=None) mention_everyone: bool = field(default=None) # mentions: array of Users, and maybe partial members @@ -881,12 +890,7 @@ class Message(ClientSerializerMixin, IDMixin): stickers: Optional[List[Sticker]] = field( converter=convert_list(Sticker), default=None ) # deprecated - - def __attrs_post_init__(self): - if self.timestamp and isinstance(self.timestamp, str): - self.timestamp = datetime.fromisoformat(self.timestamp) - if self.edited_timestamp and isinstance(self.edited_timestamp, str): - self.edited_timestamp = datetime.fromisoformat(self.edited_timestamp) + position: Optional[int] = field(default=None) async def get_channel(self) -> Channel: """ @@ -951,21 +955,21 @@ async def edit( This method edits a message. Only available for messages sent by the bot. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param files?: A file or list of files to be attached to the message. - :type files: Optional[Union[File, List[File]]] + :type files?: Optional[Union[File, List[File]]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param suppress_embeds?: Whether to suppress embeds in the message. - :type suppress_embeds: Optional[bool] + :type suppress_embeds?: Optional[bool] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param components?: A component, or list of components for the message. If `[]` the components will be removed - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] :return: The edited message as an object. :rtype: Message """ @@ -1065,21 +1069,21 @@ async def reply( Sends a new message replying to the old. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param files?: A file or list of files to be attached to the message. - :type files: Optional[Union[File, List[File]]] + :type files?: Optional[Union[File, List[File]]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :param components?: A component, or list of components for the message. - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] :param stickers?: A list of stickers to send with your message. You can send up to 3 stickers per message. - :type stickers: Optional[List[Sticker]] + :type stickers?: Optional[List[Sticker]] :return: The sent message as an object. :rtype: Message """ @@ -1177,11 +1181,11 @@ async def create_thread( :type name: str :param auto_archive_duration?: duration in minutes to automatically archive the thread after recent activity, can be set to: 60, 1440, 4320, 10080 - :type auto_archive_duration: Optional[int] + :type auto_archive_duration?: Optional[int] :param invitable?: Boolean to display if the Thread is open to join or private. - :type invitable: Optional[bool] + :type invitable?: Optional[bool] :param reason?: An optional reason for the audit log - :type reason: Optional[str] + :type reason?: Optional[str] :return: The created thread :rtype: Channel """ diff --git a/interactions/api/models/presence.py b/interactions/api/models/presence.py index 9f1003437..ad01dde18 100644 --- a/interactions/api/models/presence.py +++ b/interactions/api/models/presence.py @@ -14,7 +14,6 @@ "PresenceTimestamp", "PresenceActivity", "PresenceActivityType", - "PresenceButtons", "ClientPresence", ) @@ -64,19 +63,6 @@ class PresenceSecrets(DictSerializerMixin): match: Optional[str] = field(default=None) -@define() -class PresenceButtons(DictSerializerMixin): - """ - A class object representing the buttons of a presence. - - :ivar str label: Text of the button - :ivar str url: URL of the button - """ - - label: str = field() - url: str = field() - - @define() class PresenceTimestamp(DictSerializerMixin): """ @@ -109,8 +95,11 @@ class PresenceActivity(DictSerializerMixin): A class object representing the current activity data of a presence. .. note:: - When using this model to instantiate alongside the client, if you provide a type 1 ( or PresenceActivityType.STREAMING ), then - the ``url`` attribute is necessary. + When using this model to instantiate alongside the client, if you provide a type 1 ( or PresenceActivityType.STREAMING ), + then the ``url`` attribute is necessary. + + The ``button`` attribute technically contains an object denoting Presence buttons. However, the gateway dispatches these + as strings (of button labels) as bots don't read the button URLs. :ivar str name: The activity name :ivar Union[int, PresenceActivityType] type: The activity type @@ -126,7 +115,7 @@ class PresenceActivity(DictSerializerMixin): :ivar Optional[PresenceSecrets] secrets?: for RPC join/spectate :ivar Optional[bool] instance?: A status denoting if the activity is a game session :ivar Optional[int] flags?: activity flags - :ivar Optional[List[PresenceButtons]] buttons?: Custom buttons shown in the RPC. + :ivar Optional[List[str]] buttons?: Custom button labels shown in the status, if any. """ name: str = field() @@ -143,9 +132,7 @@ class PresenceActivity(DictSerializerMixin): secrets: Optional[PresenceSecrets] = field(converter=PresenceSecrets, default=None) instance: Optional[bool] = field(default=None) flags: Optional[int] = field(default=None) - buttons: Optional[List[PresenceButtons]] = field( - converter=convert_list(PresenceButtons), default=None - ) + buttons: Optional[List[str]] = field(default=None) # TODO: document/investigate what these do. user: Optional[Any] = field(default=None) users: Optional[Any] = field(default=None) diff --git a/interactions/api/models/role.py b/interactions/api/models/role.py index 05c49fe3c..cb0bfbd41 100644 --- a/interactions/api/models/role.py +++ b/interactions/api/models/role.py @@ -90,7 +90,7 @@ async def delete( await self._client.delete_guild_role( guild_id=_guild_id, role_id=int(self.id), reason=reason - ), + ) async def modify( self, @@ -110,21 +110,21 @@ async def modify( :param guild_id: The id of the guild to edit the role on :type guild_id: int :param name?: The name of the role, defaults to the current value of the role - :type name: Optional[str] + :type name?: Optional[str] :param color?: RGB color value as integer, defaults to the current value of the role - :type color: Optional[int] - :param permissions?: Bitwise value of the enabled/disabled permissions, defaults to the current value of the role - :type permissions: Optional[int] + :type color?: Optional[int] + :param permissions?: Bitwise value of the enabled/disabled permissions, defaults to the current value of the role + :type permissions?: Optional[int] :param hoist?: Whether the role should be displayed separately in the sidebar, defaults to the current value of the role - :type hoist: Optional[bool] + :type hoist?: Optional[bool] :param icon?: The role's icon image (if the guild has the ROLE_ICONS feature), defaults to the current value of the role - :type icon: Optional[Image] + :type icon?: Optional[Image] :param unicode_emoji?: The role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature), defaults to the current value of the role - :type unicode_emoji: Optional[str] + :type unicode_emoji?: Optional[str] :param mentionable?: Whether the role should be mentionable, defaults to the current value of the role - :type mentionable: Optional[bool] + :type mentionable?: Optional[bool] :param reason?: The reason why the role is edited, default ``None`` - :type reason: Optional[str] + :type reason?: Optional[str] :return: The modified role object :rtype: Role """ @@ -174,7 +174,7 @@ async def modify_position( :param position: The new position of the role :type position: int :param reason?: The reason for the modifying - :type reason: Optional[str] + :type reason?: Optional[str] :return: List of guild roles with updated hierarchy :rtype: List[Role] """ diff --git a/interactions/api/models/webhook.py b/interactions/api/models/webhook.py index 743da4b34..4cc1b3411 100644 --- a/interactions/api/models/webhook.py +++ b/interactions/api/models/webhook.py @@ -210,7 +210,7 @@ async def execute( :param tts: true if this is a TTS message :type tts: bool :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param embeds: embedded ``rich`` content :type embeds: Union[Embed, List[Embed]] :param allowed_mentions: allowed mentions for the message diff --git a/interactions/base.py b/interactions/base.py index 7bb767b1a..0acab378d 100644 --- a/interactions/base.py +++ b/interactions/base.py @@ -6,7 +6,7 @@ "__authors__", ) -__version__ = "4.3.0-beta.2" +__version__ = "4.3.0-rc.1" __authors__ = { "current": [ diff --git a/interactions/client/bot.py b/interactions/client/bot.py index 0e1141610..6161b659b 100644 --- a/interactions/client/bot.py +++ b/interactions/client/bot.py @@ -50,15 +50,15 @@ class Client: :param token: The token of the application for authentication and connection. :type token: str :param intents?: Allows specific control of permissions the application has when connected. In order to use multiple intents, the | operator is recommended. Defaults to ``Intents.DEFAULT``. - :type intents: Optional[Intents] + :type intents?: Optional[Intents] :param shards?: Dictates and controls the shards that the application connects under. - :type shards: Optional[List[Tuple[int]]] + :type shards?: Optional[List[Tuple[int]]] :param presence?: Sets an RPC-like presence on the application when connected to the Gateway. - :type presence: Optional[ClientPresence] + :type presence?: Optional[ClientPresence] :param default_scope?: Sets the default scope of all commands. - :type default_scope: Optional[Union[int, Guild, List[int], List[Guild]]] + :type default_scope?: Optional[Union[int, Guild, List[int], List[Guild]]] :param disable_sync?: Controls whether synchronization in the user-facing API should be automatic or not. - :type disable_sync: Optional[bool] + :type disable_sync?: Optional[bool] :ivar AbstractEventLoop _loop: The asynchronous event loop of the client. :ivar HTTPClient _http: The user-facing HTTP connection to the Web API, as its own separate client. @@ -456,9 +456,13 @@ def __resolve_commands(self) -> None: if cmd.resolved: continue + cmd.listener = self._websocket._dispatch + if cmd.default_scope and self._default_scope: cmd.scope = ( - cmd.scope.extend(cmd.default_scope) if cmd.scope else self._default_scope + cmd.scope.extend(self._default_scope) + if isinstance(cmd.scope, list) + else self._default_scope ) data: Union[dict, List[dict]] = cmd.full_data @@ -476,6 +480,7 @@ def __resolve_commands(self) -> None: coro._command_data = data coro._name = cmd.name + coro._converters = cmd.converters if (data["name"] if isinstance(data, dict) else data[0]["name"]) not in ( ( @@ -958,25 +963,25 @@ async def sudo(ctx): If ``default_member_permissions`` is not given, this will default to anyone that is able to use the command. :param type?: The type of application command. Defaults to :meth:`interactions.enums.ApplicationCommandType.CHAT_INPUT` or ``1``. - :type type: Optional[Union[str, int, ApplicationCommandType]] + :type type?: Optional[Union[str, int, ApplicationCommandType]] :param name: The name of the application command. This *is* required but kept optional to follow kwarg rules. :type name: Optional[str] :param description?: The description of the application command. This should be left blank if you are not using ``CHAT_INPUT``. - :type description: Optional[str] + :type description?: Optional[str] :param scope?: The "scope"/applicable guilds the application command applies to. - :type scope: Optional[Union[int, Guild, List[int], List[Guild]]] + :type scope?: Optional[Union[int, Guild, List[int], List[Guild]]] :param options?: The "arguments"/options of an application command. This should be left blank if you are not using ``CHAT_INPUT``. - :type options: Optional[Union[Dict[str, Any], List[Dict[str, Any]], Option, List[Option]]] + :type options?: Optional[Union[Dict[str, Any], List[Dict[str, Any]], Option, List[Option]]] :param name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. - :type name_localizations: Optional[Dict[Union[str, Locale], str]] + :type name_localizations?: Optional[Dict[Union[str, Locale], str]] :param description_localizations?: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field. - :type description_localizations: Optional[Dict[Union[str, Locale], str]] + :type description_localizations?: Optional[Dict[Union[str, Locale], str]] :param default_member_permissions?: The permissions bit value of ``interactions.api.model.flags.Permissions``. If not given, defaults to :meth:`interactions.api.model.flags.Permissions.USE_APPLICATION_COMMANDS` or ``2147483648`` - :type default_member_permissions: Optional[Union[int, Permissions]] + :type default_member_permissions?: Optional[Union[int, Permissions]] :param dm_permission?: The application permissions if executed in a Direct Message. Defaults to ``True``. - :type dm_permission: Optional[bool] + :type dm_permission?: Optional[bool] :param default_scope?: Whether the scope of the command is the default scope set in the client. Defaults to ``True``. - :type default_scope: bool + :type default_scope?: bool :return: A callable response. :rtype: Callable[[Callable[..., Coroutine]], Command] """ @@ -1029,17 +1034,17 @@ async def context_menu_name(ctx): :param name: The name of the application command. :type name: Optional[str] :param scope?: The "scope"/applicable guilds the application command applies to. Defaults to ``None``. - :type scope: Optional[Union[int, Guild, List[int], List[Guild]]] + :type scope?: Optional[Union[int, Guild, List[int], List[Guild]]] :param default_permission?: The default permission of accessibility for the application command. Defaults to ``True``. - :type default_permission: Optional[bool] + :type default_permission?: Optional[bool] :param name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. - :type name_localizations: Optional[Dict[Union[str, Locale], str]] + :type name_localizations?: Optional[Dict[Union[str, Locale], str]] :param default_member_permissions?: The permissions bit value of ``interactions.api.model.flags.Permissions``. If not given, defaults to :meth:`interactions.api.model.flags.Permissions.USE_APPLICATION_COMMANDS` or ``2147483648`` - :type default_member_permissions: Optional[Union[int, Permissions]] + :type default_member_permissions?: Optional[Union[int, Permissions]] :param dm_permission?: The application permissions if executed in a Direct Message. Defaults to ``True``. - :type dm_permission: Optional[bool] + :type dm_permission?: Optional[bool] :param default_scope?: Whether the scope of the command is the default scope set in the client. Defaults to ``True``. - :type default_scope: bool + :type default_scope?: bool :return: A callable response. :rtype: Callable[[Callable[..., Coroutine]], Command] """ @@ -1086,17 +1091,17 @@ async def context_menu_name(ctx): :param name: The name of the application command. :type name: Optional[str] :param scope?: The "scope"/applicable guilds the application command applies to. Defaults to ``None``. - :type scope: Optional[Union[int, Guild, List[int], List[Guild]]] + :type scope?: Optional[Union[int, Guild, List[int], List[Guild]]] :param default_permission?: The default permission of accessibility for the application command. Defaults to ``True``. - :type default_permission: Optional[bool] + :type default_permission?: Optional[bool] :param name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. - :type name_localizations: Optional[Dict[Union[str, Locale], str]] + :type name_localizations?: Optional[Dict[Union[str, Locale], str]] :param default_member_permissions?: The permissions bit value of ``interactions.api.model.flags.Permissions``. If not given, defaults to :meth:`interactions.api.model.flags.Permissions.USE_APPLICATION_COMMANDS` or ``2147483648`` - :type default_member_permissions: Optional[Union[int, Permissions]] + :type default_member_permissions?: Optional[Union[int, Permissions]] :param dm_permission?: The application permissions if executed in a Direct Message. Defaults to ``True``. - :type dm_permission: Optional[bool] + :type dm_permission?: Optional[bool] :param default_scope?: Whether the scope of the command is the default scope set in the client. Defaults to ``True``. - :type default_scope: bool + :type default_scope?: bool :return: A callable response. :rtype: Callable[[Callable[..., Coroutine]], Command] """ @@ -1295,11 +1300,11 @@ def load( :param name: The name of the extension. :type name: str :param package?: The package of the extension. - :type package: Optional[str] + :type package?: Optional[str] :param \*args?: Optional arguments to pass to the extension :type \**args: tuple :param \**kwargs?: Optional keyword-only arguments to pass to the extension. - :type \**kwargs: dict + :type \**kwargs?: dict :return: The loaded extension. :rtype: Optional[Extension] """ @@ -1334,9 +1339,9 @@ def remove( :param name: The name of the extension. :type name: str :param remove_commands?: Whether to remove commands before reloading. Defaults to True. - :type remove_commands: bool + :type remove_commands?: bool :param package?: The package of the extension. - :type package: Optional[str] + :type package?: Optional[str] """ try: _name: str = resolve_name(name, package) @@ -1390,13 +1395,13 @@ def reload( :param name: The name of the extension :type name: str :param package?: The package of the extension - :type package: Optional[str] + :type package?: Optional[str] :param remove_commands?: Whether to remove commands before reloading. Defaults to True - :type remove_commands: bool + :type remove_commands?: bool :param \*args?: Optional arguments to pass to the extension :type \**args: tuple :param \**kwargs?: Optional keyword-only arguments to pass to the extension. - :type \**kwargs: dict + :type \**kwargs?: dict :return: The reloaded extension. :rtype: Optional[Extension] """ @@ -1690,20 +1695,18 @@ def decorator(func): @wraps(Client.message_command) -def extension_message_command(*args, **kwargs): - def decorator(func): +def extension_message_command(**kwargs) -> Callable[[Callable[..., Coroutine]], Command]: + def decorator(func) -> Command: kwargs["type"] = ApplicationCommandType.MESSAGE - func.__command_data__ = (args, kwargs) - return func + return extension_command(**kwargs)(func) return decorator @wraps(Client.user_command) -def extension_user_command(*args, **kwargs): - def decorator(func): +def extension_user_command(**kwargs) -> Callable[[Callable[..., Coroutine]], Command]: + def decorator(func) -> Command: kwargs["type"] = ApplicationCommandType.USER - func.__command_data__ = (args, kwargs) - return func + return extension_command(**kwargs)(func) return decorator diff --git a/interactions/client/context.py b/interactions/client/context.py index ab78a5396..66e79db75 100644 --- a/interactions/client/context.py +++ b/interactions/client/context.py @@ -120,19 +120,19 @@ async def send( to send an interaction response. :param content?: The contents of the message as a string or string-converted value. - :type content: Optional[str] + :type content?: Optional[str] :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. - :type tts: Optional[bool] + :type tts?: Optional[bool] :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first - :type attachments: Optional[List[Attachment]] + :type attachments?: Optional[List[Attachment]] :param embeds?: An embed, or list of embeds for the message. - :type embeds: Optional[Union[Embed, List[Embed]]] + :type embeds?: Optional[Union[Embed, List[Embed]]] :param allowed_mentions?: The message interactions/mention limits that the message can refer to. - :type allowed_mentions: Optional[MessageInteraction] + :type allowed_mentions?: Optional[MessageInteraction] :param components?: A component, or list of components for the message. - :type components: Optional[Union[ActionRow, Button, SelectMenu, List[Union[ActionRow, Button, SelectMenu]]]] + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[Union[ActionRow, Button, SelectMenu]]]] :param ephemeral?: Whether the response is hidden or not. - :type ephemeral: Optional[bool] + :type ephemeral?: Optional[bool] :return: The sent message as an object. :rtype: Message """ @@ -411,7 +411,7 @@ async def defer(self, ephemeral: Optional[bool] = False) -> None: to a 15-minute delay between invocation and responding. :param ephemeral?: Whether the deferred state is hidden or not. - :type ephemeral: Optional[bool] + :type ephemeral?: Optional[bool] """ if not self.responded: self.deferred = True @@ -631,9 +631,9 @@ async def defer( to a 15-minute delay between invocation and responding. :param ephemeral?: Whether the deferred state is hidden or not. - :type ephemeral: Optional[bool] + :type ephemeral?: Optional[bool] :param edit_origin?: Whether you want to edit the original message or send a followup message - :type edit_origin: Optional[bool] + :type edit_origin?: Optional[bool] """ if not self.responded: diff --git a/interactions/client/get.py b/interactions/client/get.py index fb012df97..8d756249a 100644 --- a/interactions/client/get.py +++ b/interactions/client/get.py @@ -169,7 +169,11 @@ def get(client: Client, obj: Type[_T], **kwargs) -> Optional[_T]: if version_info >= (3, 9): def _check(): - return obj == list[get_args(obj)[0]] + return ( + obj == list[get_args(obj)[0]] + if isinstance(get_args(obj), tuple) and get_args(obj) + else False + ) else: @@ -254,7 +258,7 @@ async def _http_request( return await _func(**kwargs) _func = getattr(http, _name) - _obj = await _func + _obj = await _func(**kwargs) return obj(**_obj, _client=http) if not isinstance(request, list): diff --git a/interactions/client/get.pyi b/interactions/client/get.pyi index 8e6d1522c..e4c34f89c 100644 --- a/interactions/client/get.pyi +++ b/interactions/client/get.pyi @@ -2,6 +2,7 @@ from enum import Enum from typing import Awaitable, Coroutine, List, Literal, Optional, Type, TypeVar, Union, overload from interactions.client.bot import Client + from ..api.http.client import HTTPClient from ..api.models.channel import Channel from ..api.models.guild import Guild @@ -21,10 +22,10 @@ class Force(str, Enum): """ An enum representing the force methods for the get method """ + CACHE: str HTTP: str - # API-object related # with http force @@ -35,9 +36,8 @@ def get( obj: Type[_SA], *, object_id: int, - force: Optional[Literal["http", Force.HTTP]] = None + force: Optional[Literal["http", Force.HTTP]] = None, ) -> Awaitable[_SA]: ... - @overload def get( client: Client, @@ -45,7 +45,7 @@ def get( *, parent_id: int, object_id: int, - force: Optional[Literal["http", Force.HTTP]] = None + force: Optional[Literal["http", Force.HTTP]] = None, ) -> Awaitable[_MA]: ... # list of objects @@ -55,9 +55,8 @@ def get( obj: Type[List[_SA]], *, object_ids: List[int], - force: Optional[Literal["http", Force.HTTP]] = None + force: Optional[Literal["http", Force.HTTP]] = None, ) -> Awaitable[List[_SA]]: ... - @overload def get( client: Client, @@ -65,24 +64,33 @@ def get( *, parent_id: int, object_ids: List[int], - force: Optional[Literal["http", Force.HTTP]] = None + force: Optional[Literal["http", Force.HTTP]] = None, ) -> Awaitable[List[_MA]]: ... # with cache force @overload -def get(client: Client, obj: Type[_SA], *, object_id: int, force: Literal["cache", Force.CACHE]) -> Optional[_SA]: ... - +def get( + client: Client, obj: Type[_SA], *, object_id: int, force: Literal["cache", Force.CACHE] +) -> Optional[_SA]: ... @overload def get( - client: Client, obj: Type[_MA], *, parent_id: int, object_id: int, force: Literal["cache", Force.CACHE] + client: Client, + obj: Type[_MA], + *, + parent_id: int, + object_id: int, + force: Literal["cache", Force.CACHE], ) -> Optional[_MA]: ... # list of objects @overload def get( - client: Client, obj: Type[List[_SA]], *, object_ids: List[int], force: Literal["cache", Force.CACHE] + client: Client, + obj: Type[List[_SA]], + *, + object_ids: List[int], + force: Literal["cache", Force.CACHE], ) -> List[Optional[_SA]]: ... - @overload def get( client: Client, @@ -90,7 +98,7 @@ def get( *, parent_id: int, object_ids: List[int], - force: Literal["cache", Force.CACHE] + force: Literal["cache", Force.CACHE], ) -> List[Optional[_MA]]: ... # Having a not-overloaded definition stops showing a warning/complaint from the IDE if wrong arguments are put in, @@ -98,14 +106,14 @@ def get( def _get_cache( _object: Type[_T], client: Client, kwarg_name: str, _list: bool = False, **kwargs -) -> Union[Optional[_T], List[Optional[_T]]]:... +) -> Union[Optional[_T], List[Optional[_T]]]: ... async def _return_cache( obj: Union[Optional[_T], List[Optional[_T]]] -) -> Union[Optional[_T], List[Optional[_T]]]:... +) -> Union[Optional[_T], List[Optional[_T]]]: ... async def _http_request( obj: Type[_T], http: HTTPClient, request: Union[Coroutine, List[Union[_T, Coroutine]], List[Coroutine]] = None, _name: str = None, **kwargs, -) -> Union[_T, List[_T]]:... +) -> Union[_T, List[_T]]: ... diff --git a/interactions/client/models/command.py b/interactions/client/models/command.py index 40a5be291..29cff3be2 100644 --- a/interactions/client/models/command.py +++ b/interactions/client/models/command.py @@ -9,12 +9,13 @@ from ...api.models.guild import Guild from ...api.models.member import Member from ...api.models.message import Attachment -from ...api.models.misc import File, Image, Snowflake +from ...api.models.misc import Snowflake from ...api.models.role import Role from ...api.models.user import User from ..enums import ApplicationCommandType, Locale, OptionType, PermissionType if TYPE_CHECKING: + from ...api.dispatch import Listener from ..bot import Extension from ..context import CommandContext @@ -25,6 +26,8 @@ "ApplicationCommand", "option", "StopCommand", + "BaseResult", + "GroupResult", "Command", ) @@ -103,9 +106,12 @@ class Option(DictSerializerMixin): :ivar Optional[List[ChannelType]] channel_types?: Restrictive shown channel types, if given. :ivar Optional[int] min_value?: The minimum value supported by the option. :ivar Optional[int] max_value?: The maximum value supported by the option. + :ivar Optional[int] min_length?: The minimum length supported by the option. + :ivar Optional[int] max_length?: The maximum length supported by the option. :ivar Optional[bool] autocomplete?: A status denoting whether this option is an autocomplete option. :ivar Optional[Dict[Union[str, Locale], str]] name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. :ivar Optional[Dict[Union[str, Locale], str]] description_localizations?: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field. + :ivar Optional[str] converter: How the option value is passed to the function, if different than ``name`` """ type: OptionType = field(converter=OptionType) @@ -121,6 +127,8 @@ class Option(DictSerializerMixin): ) min_value: Optional[int] = field(default=None) max_value: Optional[int] = field(default=None) + min_length: Optional[int] = field(default=None) + max_length: Optional[int] = field(default=None) autocomplete: Optional[bool] = field(default=None) name_localizations: Optional[Dict[Union[str, Locale], str]] = field( default=None @@ -128,14 +136,22 @@ class Option(DictSerializerMixin): description_localizations: Optional[Dict[Union[str, Locale], str]] = field( default=None ) # so can this + converter: Optional[str] = field(default=None) def __attrs_post_init__(self): + self._json.pop("converter", None) + # needed for nested classes - self.options = ( - [Option(**option) if isinstance(option, dict) else option for option in self.options] - if self.options is not None - else None - ) + if self.options is not None: + self.options = [ + Option(**option) if isinstance(option, dict) else option for option in self.options + ] + self._json["options"] = [option._json for option in self.options] + if self.choices is not None: + self.choices = [ + Choice(**choice) if isinstance(choice, dict) else choice for choice in self.choices + ] + self._json["choices"] = [choice._json for choice in self.choices] @define() @@ -206,66 +222,73 @@ class ApplicationCommand(DictSerializerMixin): def option( - option_type: OptionType, + description: str = "No description set", /, - name: str, - description: Optional[str] = "No description set", **kwargs, ) -> Callable[[Callable[..., Awaitable]], Callable[..., Awaitable]]: r""" A decorator for adding options to a command. + The ``type`` and ``name`` of the option are defaulted to the parameter's typehint and name. + + When the ``name`` of the option differs from the parameter name, + the ``converter`` field will default to the name of the parameter. + The structure of an option: .. code-block:: python @client.command() - @interactions.option(str, name="opt", ...) + @interactions.option("description (optional)") # kwargs are optional, same as Option async def my_command(ctx, opt: str): ... - :param option_type: The type of the option. - :type option_type: OptionType - :param name: The name of the option. - :type name: str - :param description?: The description of the option. Defaults to ``"No description set"``. - :type description: str - :param \**kwargs: The keyword arguments of the option, same as :class:`Option`. - :type \**kwargs: dict + :param description?: The description of the option. Defaults to "No description set". + :type description?: str + :param \**kwargs?: The keyword arguments of the option, same as :class:`Option`. + :type \**kwargs?: dict """ - if option_type in (str, int, float, bool): - if option_type is str: - option_type = OptionType.STRING - elif option_type is int: - option_type = OptionType.INTEGER - elif option_type is float: - option_type = OptionType.NUMBER - elif option_type is bool: - option_type = OptionType.BOOLEAN - elif option_type in (Member, User): - option_type = OptionType.USER - elif option_type is Channel: - option_type = OptionType.CHANNEL - elif option_type is Role: - option_type = OptionType.ROLE - elif option_type in (Attachment, File, Image): - option_type = OptionType.ATTACHMENT - - option: Option = Option( - type=option_type, - name=name, - description=description, - **kwargs, - ) def decorator(coro: Callable[..., Awaitable]) -> Callable[..., Awaitable]: - nonlocal option + parameters = list(signature(coro).parameters.values()) + + if not hasattr(coro, "_options") or not isinstance(coro._options, list): + coro._options = [] + + param = parameters[-1 - len(coro._options)] - if hasattr(coro, "_options") and isinstance(coro._options, list): - coro._options.insert(0, option) - else: - coro._options = [option] + option_type = kwargs.get("type", param.annotation) + name = kwargs.pop("name", param.name) + if name != param.name: + kwargs["converter"] = param.name + if option_type is param.empty: + raise LibraryException( + code=12, + message=f"No type specified for option '{name}'.", + ) + + option_types = { + str: OptionType.STRING, + int: OptionType.INTEGER, + bool: OptionType.BOOLEAN, + User: OptionType.USER, + Member: OptionType.USER, + Channel: OptionType.CHANNEL, + Role: OptionType.ROLE, + float: OptionType.NUMBER, + Attachment: OptionType.ATTACHMENT, + } + option_type = option_types.get(option_type, option_type) + + _option = Option( + type=option_type, + name=name, + description=kwargs.pop("description", description), + required=kwargs.pop("required", param.default is param.empty), + **kwargs, + ) + coro._options.insert(0, _option) return coro return decorator @@ -388,7 +411,8 @@ class Command(DictSerializerMixin): :ivar Dict[str, Union[Callable[..., Awaitable], str]] autocompletions: The dictionary of autocompletions for the command. :ivar Optional[str] recent_group: The name of the group most recently utilized. :ivar bool resolved: Whether the command is synced. Defaults to ``False``. - :ivar Extension extension: The extension that the command belongs to, if any. + :ivar Optional[Extension] extension: The extension that the command belongs to, if any. + :ivar Optional[Listener] listener: The listener, used for dispatching command errors. """ coro: Callable[..., Awaitable] = field() @@ -411,7 +435,8 @@ class Command(DictSerializerMixin): recent_group: Optional[str] = field(default=None, init=False) error_callback: Optional[Callable[..., Awaitable]] = field(default=None, init=False) resolved: bool = field(default=False, init=False) - extension: "Extension" = field(default=None, init=False) + extension: Optional["Extension"] = field(default=None, init=False) + listener: Optional["Listener"] = field(default=None, init=False) def __attrs_post_init__(self) -> None: if self.name is MISSING: @@ -445,6 +470,13 @@ def __call__(self, *args, **kwargs) -> Awaitable: """ return self.dispatcher(*args, **kwargs) + @property + def converters(self) -> dict: + """ + Returns a dictionary with all converters added to the options of the command + """ + return {_option.name: _option.converter for _option in self.options if _option.converter} + @property def full_data(self) -> Union[dict, List[dict]]: """ @@ -513,17 +545,17 @@ async def subcommand_group(ctx): first create the subcommands without groups, then create the subcommands with groups. :param group?: The name of the group the subcommand belongs to. Defaults to the most recently used group. - :type group: Optional[str] + :type group?: Optional[str] :param name?: The name of the subcommand. Defaults to the name of the coroutine. - :type name: Optional[str] + :type name?: Optional[str] :param description?: The description of the subcommand. Defaults to the docstring of the coroutine. - :type description: Optional[str] + :type description?: Optional[str] :param options?: The options of the subcommand. - :type options: Optional[List[Option]] + :type options?: Optional[List[Option]] :param name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. - :type name_localizations: Optional[Dict[Union[str, Locale], str]] + :type name_localizations?: Optional[Dict[Union[str, Locale], str]] :param description_localizations?: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field. - :type description_localizations: Optional[Dict[Union[str, Locale], str]] + :type description_localizations?: Optional[Dict[Union[str, Locale], str]] :return: The :class:`interactions.client.models.command.Command` object. :rtype: Command """ @@ -620,13 +652,13 @@ async def subcommand_group(ctx): first create the subcommands without groups, then create the subcommands with groups. :param name?: The name of the group. Defaults to the name of the coroutine. - :type name: Optional[str] + :type name?: Optional[str] :param description?: The description of the group. Defaults to the docstring of the coroutine. - :type description: Optional[str] + :type description?: Optional[str] :param name_localizations?: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field. - :type name_localizations: Optional[Dict[Union[str, Locale], str]] + :type name_localizations?: Optional[Dict[Union[str, Locale], str]] :param description_localizations?: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field. - :type description_localizations: Optional[Dict[Union[str, Locale], str]] + :type description_localizations?: Optional[Dict[Union[str, Locale], str]] :return: The :class:`interactions.client.models.command.Command` object. :rtype: Command """ @@ -729,7 +761,7 @@ def autocomplete( Decorator for creating an autocomplete for the command. :param name?: The name of the option to autocomplete. Defaults to the name of the coroutine. - :type name: Optional[str] + :type name?: Optional[str] :return: The coroutine :rtype: Callable[..., Coroutine] """ @@ -822,17 +854,19 @@ async def __call( except CancelledError: pass except Exception as e: - if not self.error_callback: - raise e - - num_params = len(signature(self.error_callback).parameters) + if self.error_callback: + num_params = len(signature(self.error_callback).parameters) - if num_params == (3 if self.extension else 2): - await self.error_callback(ctx, e) - elif num_params == (4 if self.extension else 3): - await self.error_callback(ctx, e, _res) + if num_params == (3 if self.extension else 2): + await self.error_callback(ctx, e) + elif num_params == (4 if self.extension else 3): + await self.error_callback(ctx, e, _res) + else: + await self.error_callback(ctx, e, _res, *args, **kwargs) + elif self.listener and "on_command_error" in self.listener.events: + self.listener.dispatch("on_command_error", ctx, e) else: - await self.error_callback(ctx, e, _res, *args, **kwargs) + raise e return StopCommand @@ -873,15 +907,17 @@ async def wrapper(ctx: "CommandContext", *args, **kwargs): except CancelledError: pass except Exception as e: - if self.has_subcommands or not self.error_callback: - raise e - - num_params = len(signature(self.error_callback).parameters) - - if num_params == (3 if self.extension else 2): - await self.error_callback(ctx, e) + if self.error_callback: + num_params = len(signature(self.error_callback).parameters) + + if num_params == (3 if self.extension else 2): + await self.error_callback(ctx, e) + else: + await self.error_callback(ctx, e, *args, **kwargs) + elif self.listener and "on_command_error" in self.listener.events: + self.listener.dispatch("on_command_error", ctx, e) else: - await self.error_callback(ctx, e, *args, **kwargs) + raise e return StopCommand diff --git a/interactions/client/models/component.py b/interactions/client/models/component.py index c95ab9bb8..562313902 100644 --- a/interactions/client/models/component.py +++ b/interactions/client/models/component.py @@ -1,5 +1,5 @@ import contextlib -from typing import List, Optional +from typing import List, Optional, Union from ...api.error import LibraryException from ...api.models.attrs_utils import MISSING, DictSerializerMixin, convert_list, define, field @@ -297,12 +297,12 @@ def __attrs_post_init__(self) -> None: self._json["components"] = [component._json for component in self.components] @classmethod - def new(cls, *components: Component) -> "ActionRow": + def new(cls, *components: Union[Button, SelectMenu, TextInput]) -> "ActionRow": r""" A class method for creating a new ``ActionRow``. :param \*components: The components to add to the ``ActionRow``. - :type \*components: Component + :type \*components: Union[Button, SelectMenu, TextInput] :return: A new ``ActionRow``. :rtype: ActionRow """ diff --git a/interactions/client/models/utils.py b/interactions/client/models/utils.py index 3422865a2..ea6f31a9a 100644 --- a/interactions/client/models/utils.py +++ b/interactions/client/models/utils.py @@ -32,11 +32,11 @@ async def command(ctx): await ctx.send("I'm awake now!") :param delay?: The amount of time in seconds to wait before defering the command. Defaults to ``2`` seconds. - :type delay: Union[float, int] + :type delay?: Union[float, int] :param ephemeral?: Whether the command is deferred ephemerally. Defaults to ``False``. - :type ephemeral: bool + :type ephemeral?: bool :param edit_origin?: Whether the command is deferred on origin. Defaults to ``False``. - :type edit_origin: bool + :type edit_origin?: bool :return: The inner function, for decorating. :rtype: """ @@ -102,7 +102,7 @@ async def command(ctx): :param \*components: The components to spread. :type \*components: Union[ActionRow, Button, SelectMenu] :param max_in_row?: The maximum number of components in a single row. Defaults to ``5``. - :type max_in_row: int + :type max_in_row?: int """ if not components or len(components) > 25: raise LibraryException(code=12, message="Number of components should be between 1 and 25.") diff --git a/interactions/ext/base.py b/interactions/ext/base.py index 1a98b32af..b9c66ea96 100644 --- a/interactions/ext/base.py +++ b/interactions/ext/base.py @@ -56,13 +56,13 @@ def __init__( :param description: The description of the library, e.g. the purpose. :type description: str :param long_description?: The full description of the library, e.g. README. Defaults to ``None``. - :type long_description: Optional[str] + :type long_description?: Optional[str] :param packages?: The package(s) of the library. Defaults to ``None``. - :type packages: Optional[List[str]] + :type packages?: Optional[List[str]] :param requirements?: The required modules needed for library function. Defaults to ``None``. - :type requirements: Optional[List[str]] + :type requirements?: Optional[List[str]] :param kwargs?: Any other keyword arguments. Defaults to ``None``. - :type kwargs: Optional[dict] + :type kwargs?: Optional[dict] """ self.version: Version = version self.name: str = name diff --git a/interactions/ext/version.py b/interactions/ext/version.py index 2269bb57b..f37b2f161 100644 --- a/interactions/ext/version.py +++ b/interactions/ext/version.py @@ -44,11 +44,11 @@ def __init__( :param name: The name of the author. :type name: str :param shared?: The author's relationship as the main or co-author. Defaults to ``False``. - :type shared: Optional[bool] + :type shared?: Optional[bool] :param active?: The author's state of activity. Defaults to ``True``. - :type active: Optional[bool] + :type active?: Optional[bool] :param email?: The author's email address or point of contact. Defaults to ``None``. - :type email: Optional[str] + :type email?: Optional[str] """ self.name = name self._co_author = shared @@ -94,13 +94,13 @@ class Version: def __init__(self, **kwargs) -> None: """ :param major?: The major version. If not specified, ``version`` will be read from. - :type major: Optional[Union[str, int]] + :type major?: Optional[Union[str, int]] :param minor?: The minor version. If not specified, ``version`` will be read from. - :type minor: Optional[Union[str, int]] + :type minor?: Optional[Union[str, int]] :param patch?: The patch version. If not specified, ``version`` will be read from. - :type patch: Optional[Union[str, int]] + :type patch?: Optional[Union[str, int]] :param version?: The overall version. Must be used if ``major``, ``minor`` or ``patch`` are not. - :type version: Optional[str] + :type version?: Optional[str] """ self._major = int(kwargs.get("major") or kwargs.get("version", "0.0.0").split(".")[0]) self._minor = int(kwargs.get("minor") or kwargs.get("version", "0.0.0").split(".")[1]) diff --git a/requirements-docs.txt b/requirements-docs.txt index 311389be2..db66987af 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,4 +1,5 @@ -karma_sphinx_theme -readthedocs-sphinx-search +enum-tools[sphinx] +furo Sphinx +sphinx-copybutton sphinx-hoverxref diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..a6578a30e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +extend-ignore = E501