From 098793b119c9fb9e50cf46f7abb898d9bed74ea5 Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sat, 16 Jul 2022 17:03:12 -0400 Subject: [PATCH 1/5] docs: Switch to Furo, add copybutton/enum extensions. --- docs/conf.py | 14 +++++++++++--- requirements-docs.txt | 5 +++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 6e85a5f97..3e1827cca 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,13 +33,21 @@ autosectionlabel_prefix_document = True hoverxref_auto_ref = True hoverxref_sphinxtabs = True + + +# descriptions of the relevant function/method. +autodoc_typehints = "description" + +# Don't show class signature with the class' name. +autodoc_class_signature = "separated" + 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 +88,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/requirements-docs.txt b/requirements-docs.txt index 311389be2..e40f81576 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,4 +1,5 @@ -karma_sphinx_theme -readthedocs-sphinx-search +furo Sphinx sphinx-hoverxref +sphinx-copybutton +enum-tools[sphinx] \ No newline at end of file From d2f4e7669e4ef4970a34a89c89cf961eb08d17ec Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sat, 16 Jul 2022 17:06:01 -0400 Subject: [PATCH 2/5] docs: Update localisation, run pre-commit --- docs/conf.py | 4 +- docs/locale/de/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/de/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/de/LC_MESSAGES/api.enums.po | 14 +- docs/locale/de/LC_MESSAGES/api.error.po | 130 ++- docs/locale/de/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/de/LC_MESSAGES/api.http.po | 349 ++++++- .../de/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/de/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/de/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/de/LC_MESSAGES/api.models.gw.po | 145 ++- .../de/LC_MESSAGES/api.models.member.po | 38 +- .../de/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/de/LC_MESSAGES/api.models.misc.po | 114 ++- .../de/LC_MESSAGES/api.models.presence.po | 71 +- .../de/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/de/LC_MESSAGES/client.po | 177 ++-- docs/locale/de/LC_MESSAGES/context.po | 32 +- docs/locale/de/LC_MESSAGES/enums.po | 43 +- docs/locale/de/LC_MESSAGES/events.po | 335 +++++++ docs/locale/de/LC_MESSAGES/ext.base.po | 54 +- docs/locale/de/LC_MESSAGES/ext.error.po | 18 +- docs/locale/de/LC_MESSAGES/ext.version.po | 75 +- docs/locale/de/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/de/LC_MESSAGES/get.po | 230 +++++ docs/locale/de/LC_MESSAGES/migration.po | 36 +- docs/locale/de/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/de/LC_MESSAGES/models.component.po | 26 +- docs/locale/de/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/de/LC_MESSAGES/quickstart.po | 299 +++++- docs/locale/fr/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/fr/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/fr/LC_MESSAGES/api.enums.po | 14 +- docs/locale/fr/LC_MESSAGES/api.error.po | 130 ++- docs/locale/fr/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/fr/LC_MESSAGES/api.http.po | 349 ++++++- .../fr/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/fr/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/fr/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/fr/LC_MESSAGES/api.models.gw.po | 145 ++- .../fr/LC_MESSAGES/api.models.member.po | 38 +- .../fr/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/fr/LC_MESSAGES/api.models.misc.po | 114 ++- .../fr/LC_MESSAGES/api.models.presence.po | 71 +- .../fr/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/fr/LC_MESSAGES/client.po | 177 ++-- docs/locale/fr/LC_MESSAGES/context.po | 32 +- docs/locale/fr/LC_MESSAGES/enums.po | 43 +- docs/locale/fr/LC_MESSAGES/events.po | 335 +++++++ docs/locale/fr/LC_MESSAGES/ext.base.po | 54 +- docs/locale/fr/LC_MESSAGES/ext.error.po | 18 +- docs/locale/fr/LC_MESSAGES/ext.version.po | 75 +- docs/locale/fr/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/fr/LC_MESSAGES/get.po | 230 +++++ docs/locale/fr/LC_MESSAGES/migration.po | 36 +- docs/locale/fr/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/fr/LC_MESSAGES/models.component.po | 26 +- docs/locale/fr/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/fr/LC_MESSAGES/quickstart.po | 299 +++++- docs/locale/hi/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/hi/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/hi/LC_MESSAGES/api.enums.po | 14 +- docs/locale/hi/LC_MESSAGES/api.error.po | 130 ++- docs/locale/hi/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/hi/LC_MESSAGES/api.http.po | 349 ++++++- .../hi/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/hi/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/hi/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/hi/LC_MESSAGES/api.models.gw.po | 145 ++- .../hi/LC_MESSAGES/api.models.member.po | 38 +- .../hi/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/hi/LC_MESSAGES/api.models.misc.po | 114 ++- .../hi/LC_MESSAGES/api.models.presence.po | 71 +- .../hi/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/hi/LC_MESSAGES/client.po | 177 ++-- docs/locale/hi/LC_MESSAGES/context.po | 32 +- docs/locale/hi/LC_MESSAGES/enums.po | 43 +- docs/locale/hi/LC_MESSAGES/events.po | 335 +++++++ docs/locale/hi/LC_MESSAGES/ext.base.po | 54 +- docs/locale/hi/LC_MESSAGES/ext.error.po | 18 +- docs/locale/hi/LC_MESSAGES/ext.version.po | 75 +- docs/locale/hi/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/hi/LC_MESSAGES/get.po | 230 +++++ docs/locale/hi/LC_MESSAGES/migration.po | 36 +- docs/locale/hi/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/hi/LC_MESSAGES/models.component.po | 26 +- docs/locale/hi/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/hi/LC_MESSAGES/quickstart.po | 299 +++++- docs/locale/it/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/it/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/it/LC_MESSAGES/api.enums.po | 14 +- docs/locale/it/LC_MESSAGES/api.error.po | 130 ++- docs/locale/it/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/it/LC_MESSAGES/api.http.po | 349 ++++++- .../it/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/it/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/it/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/it/LC_MESSAGES/api.models.gw.po | 145 ++- .../it/LC_MESSAGES/api.models.member.po | 38 +- .../it/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/it/LC_MESSAGES/api.models.misc.po | 114 ++- .../it/LC_MESSAGES/api.models.presence.po | 71 +- .../it/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/it/LC_MESSAGES/client.po | 177 ++-- docs/locale/it/LC_MESSAGES/context.po | 32 +- docs/locale/it/LC_MESSAGES/enums.po | 43 +- docs/locale/it/LC_MESSAGES/events.po | 335 +++++++ docs/locale/it/LC_MESSAGES/ext.base.po | 54 +- docs/locale/it/LC_MESSAGES/ext.error.po | 18 +- docs/locale/it/LC_MESSAGES/ext.version.po | 75 +- docs/locale/it/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/it/LC_MESSAGES/get.po | 230 +++++ docs/locale/it/LC_MESSAGES/migration.po | 36 +- docs/locale/it/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/it/LC_MESSAGES/models.component.po | 26 +- docs/locale/it/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/it/LC_MESSAGES/quickstart.po | 299 +++++- docs/locale/pl/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/pl/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/pl/LC_MESSAGES/api.enums.po | 14 +- docs/locale/pl/LC_MESSAGES/api.error.po | 130 ++- docs/locale/pl/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/pl/LC_MESSAGES/api.http.po | 349 ++++++- .../pl/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/pl/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/pl/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/pl/LC_MESSAGES/api.models.gw.po | 145 ++- .../pl/LC_MESSAGES/api.models.member.po | 38 +- .../pl/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/pl/LC_MESSAGES/api.models.misc.po | 114 ++- .../pl/LC_MESSAGES/api.models.presence.po | 71 +- .../pl/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/pl/LC_MESSAGES/client.po | 177 ++-- docs/locale/pl/LC_MESSAGES/context.po | 32 +- docs/locale/pl/LC_MESSAGES/enums.po | 43 +- docs/locale/pl/LC_MESSAGES/events.po | 335 +++++++ docs/locale/pl/LC_MESSAGES/ext.base.po | 54 +- docs/locale/pl/LC_MESSAGES/ext.error.po | 18 +- docs/locale/pl/LC_MESSAGES/ext.version.po | 75 +- docs/locale/pl/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/pl/LC_MESSAGES/get.po | 230 +++++ docs/locale/pl/LC_MESSAGES/migration.po | 36 +- docs/locale/pl/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/pl/LC_MESSAGES/models.component.po | 26 +- docs/locale/pl/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/pl/LC_MESSAGES/quickstart.po | 299 +++++- docs/locale/ru/LC_MESSAGES/api.cache.po | 132 +-- docs/locale/ru/LC_MESSAGES/api.dispatch.po | 8 +- docs/locale/ru/LC_MESSAGES/api.enums.po | 14 +- docs/locale/ru/LC_MESSAGES/api.error.po | 130 ++- docs/locale/ru/LC_MESSAGES/api.gateway.po | 67 +- docs/locale/ru/LC_MESSAGES/api.http.po | 349 ++++++- .../ru/LC_MESSAGES/api.models.channel.po | 84 +- .../locale/ru/LC_MESSAGES/api.models.flags.po | 32 +- .../locale/ru/LC_MESSAGES/api.models.guild.po | 225 ++++- docs/locale/ru/LC_MESSAGES/api.models.gw.po | 145 ++- .../ru/LC_MESSAGES/api.models.member.po | 38 +- .../ru/LC_MESSAGES/api.models.message.po | 909 ++++++++++-------- docs/locale/ru/LC_MESSAGES/api.models.misc.po | 114 ++- .../ru/LC_MESSAGES/api.models.presence.po | 71 +- .../ru/LC_MESSAGES/api.models.webhook.po | 31 +- docs/locale/ru/LC_MESSAGES/client.po | 177 ++-- docs/locale/ru/LC_MESSAGES/context.po | 32 +- docs/locale/ru/LC_MESSAGES/enums.po | 43 +- docs/locale/ru/LC_MESSAGES/events.po | 335 +++++++ docs/locale/ru/LC_MESSAGES/ext.base.po | 54 +- docs/locale/ru/LC_MESSAGES/ext.error.po | 18 +- docs/locale/ru/LC_MESSAGES/ext.version.po | 75 +- docs/locale/ru/LC_MESSAGES/faq.po | 415 ++++++-- docs/locale/ru/LC_MESSAGES/get.po | 230 +++++ docs/locale/ru/LC_MESSAGES/migration.po | 36 +- docs/locale/ru/LC_MESSAGES/models.command.po | 363 ++++++- .../locale/ru/LC_MESSAGES/models.component.po | 26 +- docs/locale/ru/LC_MESSAGES/models.utils.po | 87 ++ docs/locale/ru/LC_MESSAGES/quickstart.po | 299 +++++- interactions/api/models/channel.py | 1 + requirements-docs.txt | 4 +- 177 files changed, 21911 insertions(+), 5332 deletions(-) create mode 100644 docs/locale/de/LC_MESSAGES/events.po create mode 100644 docs/locale/de/LC_MESSAGES/get.po create mode 100644 docs/locale/de/LC_MESSAGES/models.utils.po create mode 100644 docs/locale/fr/LC_MESSAGES/events.po create mode 100644 docs/locale/fr/LC_MESSAGES/get.po create mode 100644 docs/locale/fr/LC_MESSAGES/models.utils.po create mode 100644 docs/locale/hi/LC_MESSAGES/events.po create mode 100644 docs/locale/hi/LC_MESSAGES/get.po create mode 100644 docs/locale/hi/LC_MESSAGES/models.utils.po create mode 100644 docs/locale/it/LC_MESSAGES/events.po create mode 100644 docs/locale/it/LC_MESSAGES/get.po create mode 100644 docs/locale/it/LC_MESSAGES/models.utils.po create mode 100644 docs/locale/pl/LC_MESSAGES/events.po create mode 100644 docs/locale/pl/LC_MESSAGES/get.po create mode 100644 docs/locale/pl/LC_MESSAGES/models.utils.po create mode 100644 docs/locale/ru/LC_MESSAGES/events.po create mode 100644 docs/locale/ru/LC_MESSAGES/get.po create mode 100644 docs/locale/ru/LC_MESSAGES/models.utils.po diff --git a/docs/conf.py b/docs/conf.py index 3e1827cca..6a4ae1606 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,8 +46,8 @@ "sphinx.ext.intersphinx", "sphinx.ext.autosectionlabel", "hoverxref.extension", - 'sphinx_copybutton', - 'enum_tools.autoenum' + "sphinx_copybutton", + "enum_tools.autoenum", ] # Stackoverflow said that this is gonna cure my LaTeX errors for ref handling. diff --git a/docs/locale/de/LC_MESSAGES/api.cache.po b/docs/locale/de/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/de/LC_MESSAGES/api.cache.po +++ b/docs/locale/de/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.dispatch.po b/docs/locale/de/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/de/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/de/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/de/LC_MESSAGES/api.enums.po +++ b/docs/locale/de/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/de/LC_MESSAGES/api.error.po +++ b/docs/locale/de/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.gateway.po b/docs/locale/de/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/de/LC_MESSAGES/api.gateway.po +++ b/docs/locale/de/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.http.po b/docs/locale/de/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/de/LC_MESSAGES/api.http.po +++ b/docs/locale/de/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/de/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/de/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/de/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.gw.po b/docs/locale/de/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/de/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.member.po b/docs/locale/de/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.member.po +++ b/docs/locale/de/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.message.po +++ b/docs/locale/de/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/de/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/de/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/de/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/de/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/de/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/de/LC_MESSAGES/client.po +++ b/docs/locale/de/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/de/LC_MESSAGES/context.po +++ b/docs/locale/de/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/de/LC_MESSAGES/enums.po +++ b/docs/locale/de/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/de/LC_MESSAGES/ext.base.po +++ b/docs/locale/de/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/de/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/de/LC_MESSAGES/ext.error.po +++ b/docs/locale/de/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/de/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/de/LC_MESSAGES/ext.version.po +++ b/docs/locale/de/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/de/LC_MESSAGES/faq.po +++ b/docs/locale/de/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/de/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/de/LC_MESSAGES/migration.po +++ b/docs/locale/de/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/de/LC_MESSAGES/models.command.po +++ b/docs/locale/de/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.component.po b/docs/locale/de/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/de/LC_MESSAGES/models.component.po +++ b/docs/locale/de/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/de/LC_MESSAGES/quickstart.po +++ b/docs/locale/de/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.cache.po b/docs/locale/fr/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.cache.po +++ b/docs/locale/fr/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.dispatch.po b/docs/locale/fr/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/fr/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/fr/LC_MESSAGES/api.enums.po +++ b/docs/locale/fr/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/fr/LC_MESSAGES/api.error.po +++ b/docs/locale/fr/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.gateway.po b/docs/locale/fr/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/fr/LC_MESSAGES/api.gateway.po +++ b/docs/locale/fr/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.http.po b/docs/locale/fr/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/fr/LC_MESSAGES/api.http.po +++ b/docs/locale/fr/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.gw.po b/docs/locale/fr/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.member.po b/docs/locale/fr/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.member.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.message.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/fr/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/fr/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/fr/LC_MESSAGES/client.po +++ b/docs/locale/fr/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/fr/LC_MESSAGES/context.po +++ b/docs/locale/fr/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/fr/LC_MESSAGES/enums.po +++ b/docs/locale/fr/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.base.po +++ b/docs/locale/fr/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/fr/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.error.po +++ b/docs/locale/fr/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/fr/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/fr/LC_MESSAGES/ext.version.po +++ b/docs/locale/fr/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/fr/LC_MESSAGES/faq.po +++ b/docs/locale/fr/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/fr/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/fr/LC_MESSAGES/migration.po +++ b/docs/locale/fr/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/fr/LC_MESSAGES/models.command.po +++ b/docs/locale/fr/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.component.po b/docs/locale/fr/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/fr/LC_MESSAGES/models.component.po +++ b/docs/locale/fr/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/fr/LC_MESSAGES/quickstart.po +++ b/docs/locale/fr/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.cache.po b/docs/locale/hi/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.cache.po +++ b/docs/locale/hi/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.dispatch.po b/docs/locale/hi/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/hi/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/hi/LC_MESSAGES/api.enums.po +++ b/docs/locale/hi/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/hi/LC_MESSAGES/api.error.po +++ b/docs/locale/hi/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.gateway.po b/docs/locale/hi/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/hi/LC_MESSAGES/api.gateway.po +++ b/docs/locale/hi/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.http.po b/docs/locale/hi/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/hi/LC_MESSAGES/api.http.po +++ b/docs/locale/hi/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.gw.po b/docs/locale/hi/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.member.po b/docs/locale/hi/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.member.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.message.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/hi/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/hi/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/hi/LC_MESSAGES/client.po +++ b/docs/locale/hi/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/hi/LC_MESSAGES/context.po +++ b/docs/locale/hi/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/hi/LC_MESSAGES/enums.po +++ b/docs/locale/hi/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.base.po +++ b/docs/locale/hi/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/hi/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.error.po +++ b/docs/locale/hi/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/hi/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/hi/LC_MESSAGES/ext.version.po +++ b/docs/locale/hi/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/hi/LC_MESSAGES/faq.po +++ b/docs/locale/hi/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/hi/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/hi/LC_MESSAGES/migration.po +++ b/docs/locale/hi/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/hi/LC_MESSAGES/models.command.po +++ b/docs/locale/hi/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.component.po b/docs/locale/hi/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/hi/LC_MESSAGES/models.component.po +++ b/docs/locale/hi/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/hi/LC_MESSAGES/quickstart.po +++ b/docs/locale/hi/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.cache.po b/docs/locale/it/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/it/LC_MESSAGES/api.cache.po +++ b/docs/locale/it/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.dispatch.po b/docs/locale/it/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/it/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/it/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/it/LC_MESSAGES/api.enums.po +++ b/docs/locale/it/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/it/LC_MESSAGES/api.error.po +++ b/docs/locale/it/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.gateway.po b/docs/locale/it/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/it/LC_MESSAGES/api.gateway.po +++ b/docs/locale/it/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.http.po b/docs/locale/it/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/it/LC_MESSAGES/api.http.po +++ b/docs/locale/it/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/it/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/it/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/it/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.gw.po b/docs/locale/it/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/it/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.member.po b/docs/locale/it/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.member.po +++ b/docs/locale/it/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.message.po +++ b/docs/locale/it/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/it/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/it/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/it/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/it/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/it/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/it/LC_MESSAGES/client.po +++ b/docs/locale/it/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/it/LC_MESSAGES/context.po +++ b/docs/locale/it/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/it/LC_MESSAGES/enums.po +++ b/docs/locale/it/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/it/LC_MESSAGES/ext.base.po +++ b/docs/locale/it/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/it/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/it/LC_MESSAGES/ext.error.po +++ b/docs/locale/it/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/it/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/it/LC_MESSAGES/ext.version.po +++ b/docs/locale/it/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/it/LC_MESSAGES/faq.po +++ b/docs/locale/it/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/it/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/it/LC_MESSAGES/migration.po +++ b/docs/locale/it/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/it/LC_MESSAGES/models.command.po +++ b/docs/locale/it/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.component.po b/docs/locale/it/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/it/LC_MESSAGES/models.component.po +++ b/docs/locale/it/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/it/LC_MESSAGES/quickstart.po +++ b/docs/locale/it/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.cache.po b/docs/locale/pl/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.cache.po +++ b/docs/locale/pl/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.dispatch.po b/docs/locale/pl/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/pl/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/pl/LC_MESSAGES/api.enums.po +++ b/docs/locale/pl/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/pl/LC_MESSAGES/api.error.po +++ b/docs/locale/pl/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.gateway.po b/docs/locale/pl/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/pl/LC_MESSAGES/api.gateway.po +++ b/docs/locale/pl/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.http.po b/docs/locale/pl/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/pl/LC_MESSAGES/api.http.po +++ b/docs/locale/pl/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.gw.po b/docs/locale/pl/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.member.po b/docs/locale/pl/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.member.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.message.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/pl/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/pl/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/pl/LC_MESSAGES/client.po +++ b/docs/locale/pl/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/pl/LC_MESSAGES/context.po +++ b/docs/locale/pl/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/pl/LC_MESSAGES/enums.po +++ b/docs/locale/pl/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.base.po +++ b/docs/locale/pl/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/pl/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.error.po +++ b/docs/locale/pl/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/pl/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/pl/LC_MESSAGES/ext.version.po +++ b/docs/locale/pl/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/pl/LC_MESSAGES/faq.po +++ b/docs/locale/pl/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/pl/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/pl/LC_MESSAGES/migration.po +++ b/docs/locale/pl/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/pl/LC_MESSAGES/models.command.po +++ b/docs/locale/pl/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.component.po b/docs/locale/pl/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/pl/LC_MESSAGES/models.component.po +++ b/docs/locale/pl/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/pl/LC_MESSAGES/quickstart.po +++ b/docs/locale/pl/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.cache.po b/docs/locale/ru/LC_MESSAGES/api.cache.po index 43abb1314..5fe0c510e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.cache.po +++ b/docs/locale/ru/LC_MESSAGES/api.cache.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ +#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add +#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge 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 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 @@ -112,34 +109,47 @@ msgid "" "requests made for the represented instances of the class." msgstr "" -#: interactions.api.cache.Cache:5 of -msgid "The cached Direct Messages." -msgstr "" +#~ msgid "A class representing the defined item in a stored dataset." +#~ msgstr "" -#: interactions.api.cache.Cache:6 of -msgid "The cached guilds upon gateway connection." -msgstr "" +#~ msgid "The item itself." +#~ msgstr "" -#: interactions.api.cache.Cache:7 of -msgid "The cached guilds after ready." -msgstr "" +#~ msgid "The ID type representation." +#~ msgstr "" -#: interactions.api.cache.Cache:8 of -msgid "The cached channels of guilds." -msgstr "" +#~ msgid "The new storage." +#~ msgstr "" -#: interactions.api.cache.Cache:9 of -msgid "The cached roles of guilds." -msgstr "" +#~ msgid "Updates an item from the storage." +#~ msgstr "" -#: interactions.api.cache.Cache:10 of -msgid "The cached members of guilds and threads." -msgstr "" +#~ msgid "The item to update." +#~ msgstr "" -#: interactions.api.cache.Cache:11 of -msgid "The cached messages of DMs and channels." -msgstr "" +#~ msgid "The updated item, if stored." +#~ msgstr "" -#: interactions.api.cache.Cache:12 of -msgid "The cached interactions upon interaction." -msgstr "" +#~ msgid "The cached Direct Messages." +#~ msgstr "" + +#~ msgid "The cached guilds upon gateway connection." +#~ msgstr "" + +#~ msgid "The cached guilds after ready." +#~ msgstr "" + +#~ msgid "The cached channels of guilds." +#~ msgstr "" + +#~ msgid "The cached roles of guilds." +#~ msgstr "" + +#~ msgid "The cached members of guilds and threads." +#~ msgstr "" + +#~ msgid "The cached messages of DMs and channels." +#~ msgstr "" + +#~ msgid "The cached interactions upon interaction." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.dispatch.po b/docs/locale/ru/LC_MESSAGES/api.dispatch.po index b6707ea02..d5df5422e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/ru/LC_MESSAGES/api.dispatch.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -38,6 +38,12 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" +#: interactions.api.dispatch.Listener.__init__ +#: 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..23af570f0 100644 --- a/docs/locale/ru/LC_MESSAGES/api.enums.po +++ b/docs/locale/ru/LC_MESSAGES/api.enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..1441d73ad 100644 --- a/docs/locale/ru/LC_MESSAGES/api.error.po +++ b/docs/locale/ru/LC_MESSAGES/api.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,74 +22,98 @@ 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." +#: 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.InteractionException:4 of +#: interactions.api.error.LibraryException._parse: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." +"Internal function that should not be executed externally. Parse the error" +" data and set the code and message." msgstr "" -#: interactions.api.error.GatewayException interactions.api.error.HTTPException -#: interactions.api.error.InteractionException -#: interactions.api.error.JSONException of -msgid "Variables" +#: interactions.api.error.LibraryException.__init__ +#: interactions.api.error.LibraryException._parse +#: interactions.api.error.LibraryException.log of +msgid "Parameters" 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._parse:4 of +msgid "The error data to parse." 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." +#: interactions.api.error.LibraryException._parse of +msgid "Returns" 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 -msgid "" -"From the default error enum integer declaration, generate a dictionary " -"containing the phrases used for the errors." +#: interactions.api.error.LibraryException._parse:6 of +msgid "A list of tuples containing parsed errors." 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 of +msgid "Return type" msgstr "" -#: interactions.api.error.InteractionException.error:1 of -msgid "This calls the exception." +#: interactions.api.error.LibraryException.log:1 of +msgid "Log the error message." 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." -msgstr "" +#~ msgid "A customized error formatting script to return specific errors." +#~ msgstr "" -#: interactions.api.error.HTTPException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent HTTP Exceptions." -msgstr "" +#~ msgid "An exception class for interactions." +#~ msgstr "" -#: interactions.api.error.JSONException:1 of -msgid "" -"This is a derivation of InteractionException in that this is used to " -"represent JSON API Exceptions." -msgstr "" +#~ 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 "" + +#~ msgid "Variables" +#~ msgstr "" + +#~ msgid "The built-in formatter." +#~ msgstr "" + +#~ msgid "A dictionary containing the values from the built-in Enum." +#~ msgstr "" + +#~ msgid "" +#~ "From the default error enum integer " +#~ "declaration, generate a dictionary containing" +#~ " the phrases used for the errors." +#~ msgstr "" + +#~ msgid "" +#~ "Grabs the type attribute. Primarily " +#~ "useful to use it in conditions for" +#~ " integral v4 (potential) logic." +#~ msgstr "" + +#~ msgid "This calls the exception." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent Gateway closing OP " +#~ "codes." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent HTTP Exceptions." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of " +#~ "InteractionException in that this is " +#~ "used to represent JSON API Exceptions." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.gateway.po b/docs/locale/ru/LC_MESSAGES/api.gateway.po index c64b34dd0..86e7896a4 100644 --- a/docs/locale/ru/LC_MESSAGES/api.gateway.po +++ b/docs/locale/ru/LC_MESSAGES/api.gateway.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -116,28 +116,66 @@ msgstr "" msgid "The latency of the connection, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._manage_heartbeat:1 of -msgid "Manages the heartbeat loop." +#: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ +#: 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.__init__ of +msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__init__:1 of +msgid "The token of the application for connecting to 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.__init__:3 of +msgid "The Gateway intents of the application for event dispatch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:5 of +msgid "The ID of the session if trying to reconnect. Defaults to ``None``." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__init__:7 of +msgid "The identifier sequence if trying to reconnect. Defaults to ``None``." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__init__ #: 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.__init__ 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 +233,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 " @@ -295,3 +326,7 @@ msgstr "" #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of +msgid "The event loop to base the asynchronous manager." +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.http.po b/docs/locale/ru/LC_MESSAGES/api.http.po index b637802cb..dcb106111 100644 --- a/docs/locale/ru/LC_MESSAGES/api.http.po +++ b/docs/locale/ru/LC_MESSAGES/api.http.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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.__init__ #: 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.__init__ #: 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.__init__ #: interactions.api.http.request._Request.request +#: interactions.api.http.route.Route.__init__ #: interactions.api.http.route.Route.get_bucket #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event @@ -193,13 +198,26 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.__init__:1 of +msgid "The HTTP request method." msgstr "" +#: interactions.api.http.route.Route.__init__:3 of +msgid "The path of the HTTP/URL." +msgstr "" + +#: interactions.api.http.route.Route.__init__:5 of +msgid "Optional keyword-only arguments to pass as information in the route." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.__init__ #: 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 @@ -208,19 +226,37 @@ msgstr "" #: 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.__init__ #: 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.__init__ #: 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 @@ -231,16 +267,28 @@ msgstr "" #: 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.__init__ +#: 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 @@ -249,22 +297,47 @@ 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.__init__ +#: interactions.api.http.member.MemberRequest.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ +#: 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.__init__ #: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__ #: 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.__init__ #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -272,38 +345,152 @@ msgstr "" #: 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.__init__ +#: 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.__init__ #: 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.__init__ #: 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 "Returns" +msgid "Return type" msgstr "" -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +#: 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 of -msgid "Return type" +#: 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 @@ -326,6 +513,14 @@ msgstr "" msgid "The remaining time before the request can be ran." msgstr "" +#: interactions.api.http.limiter.Limiter.__init__:1 of +msgid "The asynchronous lock to control limits for." +msgstr "" + +#: interactions.api.http.limiter.Limiter.__init__:3 of +msgid "The remaining time to run the limited lock on. Defaults to ``0``." +msgstr "" + #: interactions.api.http.request._Request:1 of msgid "A class representing how HTTP requests are sent/read." msgstr "" @@ -358,6 +553,10 @@ msgstr "" msgid "The global rate limiter." msgstr "" +#: interactions.api.http.request._Request.__init__:1 of +msgid "The application token used for authorizing." +msgstr "" + #: interactions.api.http.request._Request._check_session:1 of msgid "Ensures that we have a valid connection session." msgstr "" @@ -518,6 +717,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 +734,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 +1021,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 +1486,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 +1520,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 +2161,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..9a169fe3f 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.channel.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -165,6 +177,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 +202,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 +230,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 "" @@ -221,11 +244,13 @@ msgstr "" #: 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 @@ -253,18 +278,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 +449,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 +515,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 +566,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 +714,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..2a460c72f 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.flags.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.flags.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..55c53ef3c 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.guild.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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 "" @@ -582,6 +609,7 @@ 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,6 +619,7 @@ 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_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 @@ -598,6 +627,7 @@ msgstr "" #: 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 @@ -638,6 +668,66 @@ msgstr "" 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 "" @@ -672,9 +762,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 +825,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 +844,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 +859,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 +1525,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 +1639,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 +1699,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 " @@ -1734,3 +1886,12 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#~ 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]" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.gw.po b/docs/locale/ru/LC_MESSAGES/api.models.gw.po index ffa9c1972..023d54338 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.gw.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,19 +22,15 @@ 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``." -msgstr "" - -#: interactions.api.models.gw.ApplicationCommandPermissions:3 of -msgid "" -"This is undocumented by the Discord API, so these attribute docs may or " -"may not be finalised." +"``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 @@ -55,6 +51,122 @@ msgstr "" 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.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 "" @@ -371,6 +483,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 +492,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 "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.member.po b/docs/locale/ru/LC_MESSAGES/api.models.member.po index d616587fa..d9d53d52c 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.member.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.member.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -97,10 +97,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 "" @@ -128,6 +134,7 @@ 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.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -208,18 +215,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 +290,17 @@ 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" -msgstr "" +"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 "" + +#~ 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" +#~ 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..eaf0149d8 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.message.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.message.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,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,180 +61,175 @@ 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." +#: interactions.api.models.message.Message:3 of +msgid "ID of the message." msgstr "" -#: interactions.api.models.message.Attachment:1 of -msgid "A class object representing an attachment in a message." +#: interactions.api.models.message.Message:4 of +msgid "ID of the channel the message was sent in" 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." +#: 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: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." +#: interactions.api.models.message.Message:6 of +msgid "The author of the message." msgstr "" -#: interactions.api.models.message.Attachment:11 of -msgid "The ID of the attachment." +#: interactions.api.models.message.Message:7 of +msgid "The member object associated with the author, if any." msgstr "" -#: interactions.api.models.message.Attachment:12 of -msgid "The name of the attachment file." +#: interactions.api.models.message.Message:8 of +msgid "Message contents." msgstr "" -#: interactions.api.models.message.Attachment:13 of -msgid "The description of the file." +#: interactions.api.models.message.Message:9 of +msgid "Timestamp denoting when the message was sent." msgstr "" -#: interactions.api.models.message.Attachment:14 of -msgid "The type of 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:15 of -msgid "The size 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:16 of -msgid "The CDN URL of the attachment file." +#: interactions.api.models.message.Message:12 of +msgid "Status dictating of this message mentions everyone" msgstr "" -#: interactions.api.models.message.Attachment:17 of -msgid "The proxied/cached CDN URL of the attachment file." +#: interactions.api.models.message.Message:13 of +msgid "Array of user objects with an additional partial member field." msgstr "" -#: interactions.api.models.message.Attachment:18 of -msgid "The height of the attachment file." +#: interactions.api.models.message.Message:14 of +msgid "Array of roles mentioned in this message" msgstr "" -#: interactions.api.models.message.Attachment:19 of -msgid "The width of the attachment file." +#: interactions.api.models.message.Message:15 of +msgid "Channels mentioned in this message, if any." msgstr "" -#: interactions.api.models.message.Attachment:20 of -msgid "Whether the attachment is ephemeral." +#: interactions.api.models.message.Message:16 of +msgid "An array of attachments" 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:17 of +msgid "An array of embeds" msgstr "" -#: interactions.api.models.message.MessageInteraction:4 of -msgid "ID of the interaction." +#: interactions.api.models.message.Message:18 of +msgid "Reactions to the message." msgstr "" -#: interactions.api.models.message.MessageInteraction:5 of -msgid "Type of interaction." +#: interactions.api.models.message.Message:19 of +msgid "Used for message validation" msgstr "" -#: interactions.api.models.message.MessageInteraction:6 of -msgid "Name of the application command." +#: interactions.api.models.message.Message:20 of +msgid "Whether this message is pinned." msgstr "" -#: interactions.api.models.message.MessageInteraction:7 of -msgid "The user who invoked the interaction." +#: interactions.api.models.message.Message:21 of +msgid "Webhook ID if the message is generated by a webhook." 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:22 of +msgid "Type of message" msgstr "" -#: interactions.api.models.message.ChannelMention:4 of -msgid "The ID of the channel." +#: interactions.api.models.message.Message:23 of +msgid "Message activity object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:5 of -msgid "The ID of the guild that contains the channel." +#: interactions.api.models.message.Message:24 of +msgid "Application object that's sent by Rich Presence" msgstr "" -#: interactions.api.models.message.ChannelMention:6 of -msgid "The channel type." +#: 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.ChannelMention:7 of -msgid "The name of the channel." +#: interactions.api.models.message.Message:26 of +msgid "The allowed mentions of roles attached in the message." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." +#: interactions.api.models.message.Message:27 of +msgid "Message flags" msgstr "" -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" +#: 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:4 of -msgid "Emoji name." +#: 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:5 of -msgid "Roles allowed to use this emoji" +#: interactions.api.models.message.Message:30 of +msgid "Components associated with this message, if any." msgstr "" -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" +#: 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:7 of -msgid "Status denoting of this emoji must be wrapped in colons" +#: interactions.api.models.message.Message:32 of +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" +#: interactions.api.models.message.Message.get_channel:1 of +msgid "Gets the channel where the message was sent." msgstr "" -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" +#: 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:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" +#: 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:1 of -msgid "Gets an emoji." +#: interactions.api.models.message.Message.delete:1 of +msgid "Deletes the message." msgstr "" #: interactions.api.models.message.Embed.add_field @@ -252,6 +249,7 @@ msgstr "" #: 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 @@ -259,179 +257,287 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" +#: 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.get:5 of -msgid "The id of 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.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#: 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.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.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.get:9 of -msgid "The Emoji as object" +#: 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.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_channel +#: 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_guild +#: 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 "Return type" +msgid "Returns" msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Message.edit:19 of +msgid "The edited message as an object." 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.reply:1 of +msgid "Sends a new message replying to the old." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" +#: interactions.api.models.message.Message.reply:15 of +msgid "A component, or list of components for the message." msgstr "" -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." +#: 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.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" +#: interactions.api.models.message.Message.reply:19 of +msgid "The sent message as an object." msgstr "" -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" +#: interactions.api.models.message.Message.pin:1 of +msgid "Pins the message to its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." +#: interactions.api.models.message.Message.unpin:1 of +msgid "Unpins the message from its channel" msgstr "" -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: 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.EmbedImageStruct:1 of -msgid "A class object representing the structure of an image in an embed." +#: interactions.api.models.message.Message.publish:3 of +msgid "message object" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:3 of -msgid "The structure of an embed image:" +#: interactions.api.models.message.Message.create_thread:1 of +msgid "Creates a thread from the message." msgstr "" -#: interactions.api.models.message.EmbedImageStruct:13 of -msgid "Source URL of the object." +#: interactions.api.models.message.Message.create_thread:3 of +msgid "The name of the thread" msgstr "" -#: interactions.api.models.message.EmbedImageStruct:14 of -msgid "Proxied url of the object." +#: 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.EmbedImageStruct:15 of -msgid "Height of the object." +#: 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.EmbedImageStruct:16 of -msgid "Width of the object." +#: interactions.api.models.message.Message.create_thread:10 of +msgid "An optional reason for the audit log" msgstr "" -#: interactions.api.models.message.EmbedProvider:1 of -msgid "A class object representing the provider of an embed." +#: interactions.api.models.message.Message.create_thread:12 of +msgid "The created thread" msgstr "" -#: interactions.api.models.message.EmbedProvider:3 of -msgid "Name of provider" +#: interactions.api.models.message.Message.create_reaction:1 of +msgid "Adds a reaction to the message." msgstr "" -#: interactions.api.models.message.EmbedProvider:4 of -msgid "URL of provider" +#: 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.EmbedAuthor:1 of -msgid "A class object representing the author of an embed." +#: interactions.api.models.message.Message.remove_all_reactions:1 of +msgid "Removes all reactions of the message." msgstr "" -#: interactions.api.models.message.EmbedAuthor:3 of -msgid "The structure of an embed author:" +#: 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.EmbedAuthor:11 of -msgid "Name of author" +#: 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.EmbedAuthor:12 of -msgid "URL of author" +#: 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.EmbedAuthor:13 of -msgid "URL of author icon" +#: 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.EmbedAuthor:14 of -msgid "Proxied URL of author icon" +#: 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.EmbedFooter:1 of -msgid "A class object representing the footer of an embed." +#: interactions.api.models.message.Message.get_users_from_reaction:5 of +msgid "A list of user objects" msgstr "" -#: interactions.api.models.message.EmbedFooter:3 of -msgid "The structure of an embed footer:" +#: interactions.api.models.message.Message.get_from_url:1 of +msgid "Gets a Message based from its url." msgstr "" -#: interactions.api.models.message.EmbedFooter:11 of -msgid "Footer text" +#: interactions.api.models.message.Message.get_from_url:3 of +msgid "The full url of the message" msgstr "" -#: interactions.api.models.message.EmbedFooter:12 of -msgid "URL of footer icon" +#: 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.EmbedFooter:13 of -msgid "Proxied URL of footer icon" +#: interactions.api.models.message.Message.get_from_url:7 of +msgid "The message the URL points to" msgstr "" -#: interactions.api.models.message.EmbedField:1 of -msgid "A class object representing the field of an embed." +#: interactions.api.models.message.Message.url:1 of +msgid "Returns the URL of the message." msgstr "" -#: interactions.api.models.message.EmbedField:3 of -msgid "The structure of an embed field:" +#: interactions.api.models.message.Message.url:3 of +msgid "The URL of said message" msgstr "" -#: interactions.api.models.message.EmbedField:13 of -msgid "Name of the field." +#: interactions.api.models.message.MessageReference:1 of +msgid "A class object representing the \"referenced\"/replied message." msgstr "" -#: interactions.api.models.message.EmbedField:14 of -msgid "Value of the field" +#: 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.EmbedField:15 of -msgid "A status denoting if the field should be displayed inline." +#: 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 @@ -646,373 +752,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" -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)" +#: interactions.api.models.message.EmbedAuthor:12 of +msgid "URL of author" msgstr "" -#: interactions.api.models.message.Sticker:8 of -msgid "Previously a sticker asset hash, now an empty string." +#: interactions.api.models.message.EmbedAuthor:13 of +msgid "URL of author icon" msgstr "" -#: interactions.api.models.message.Sticker:9 of -msgid "Type of sticker" +#: interactions.api.models.message.EmbedAuthor:14 of +msgid "Proxied URL of author icon" 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.EmbedProvider:1 of +msgid "A class object representing the provider of an embed." msgstr "" -#: interactions.api.models.message.Sticker:12 of -msgid "Guild ID that owns the sticker." +#: interactions.api.models.message.EmbedProvider:3 of +msgid "Name of provider" msgstr "" -#: interactions.api.models.message.Sticker:13 of -msgid "The user that uploaded the sticker." +#: interactions.api.models.message.EmbedProvider:4 of +msgid "URL of provider" msgstr "" -#: interactions.api.models.message.Sticker:14 of -msgid "The standard sticker's sort order within its pack" +#: 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.ReactionObject:1 of -msgid "The reaction object." +#: interactions.api.models.message.EmbedImageStruct:3 of +msgid "The structure of an embed image:" msgstr "" -#: interactions.api.models.message.ReactionObject:3 of -msgid "The amount of times this emoji has been used to react" +#: interactions.api.models.message.EmbedImageStruct:13 of +msgid "Source URL of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:4 of -msgid "A status denoting if the current user reacted using this emoji" +#: interactions.api.models.message.EmbedImageStruct:14 of +msgid "Proxied url of the object." msgstr "" -#: interactions.api.models.message.ReactionObject:5 of -msgid "Emoji information" +#: interactions.api.models.message.EmbedImageStruct:15 of +msgid "Height of the object." msgstr "" -#: interactions.api.models.message.Message:1 of -msgid "A class object representing a message." +#: interactions.api.models.message.EmbedImageStruct:16 of +msgid "Width of the object." msgstr "" -#: interactions.api.models.message.Message:3 of -msgid "ID of the message." +#: interactions.api.models.message.EmbedField:1 of +msgid "A class object representing the field of an embed." msgstr "" -#: interactions.api.models.message.Message:4 of -msgid "ID of the channel the message was sent in" +#: interactions.api.models.message.EmbedField:3 of +msgid "The structure of an embed field:" 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.EmbedField:13 of +msgid "Name of the field." msgstr "" -#: interactions.api.models.message.Message:6 of -msgid "The author of the message." +#: interactions.api.models.message.EmbedField:14 of +msgid "Value of the field" msgstr "" -#: interactions.api.models.message.Message:7 of -msgid "The member object associated with the author, if any." +#: interactions.api.models.message.EmbedField:15 of +msgid "A status denoting if the field should be displayed inline." msgstr "" -#: interactions.api.models.message.Message:8 of -msgid "Message contents." +#: interactions.api.models.message.Attachment:1 of +msgid "A class object representing an attachment in a message." msgstr "" -#: interactions.api.models.message.Message:9 of -msgid "Timestamp denoting when the message was sent." +#: 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:10 of -msgid "Timestamp denoting when the message was edited, if any." +#: 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:11 of -msgid "Status dictating if this was a TTS message or not." +#: interactions.api.models.message.Attachment:11 of +msgid "The ID of the attachment." msgstr "" -#: interactions.api.models.message.Message:12 of -msgid "Status dictating of this message mentions everyone" +#: interactions.api.models.message.Attachment:12 of +msgid "The name of the attachment file." msgstr "" -#: interactions.api.models.message.Message:13 of -msgid "Array of user objects with an additional partial member field." +#: interactions.api.models.message.Attachment:13 of +msgid "The description of the file." msgstr "" -#: interactions.api.models.message.Message:14 of -msgid "Array of roles mentioned in this message" +#: interactions.api.models.message.Attachment:14 of +msgid "The type of attachment file." 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..ccfa1adc8 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.misc.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -22,6 +22,82 @@ 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: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 +120,23 @@ msgid "" "integer." msgstr "" +#: interactions.api.models.misc.File.__init__ +#: interactions.api.models.misc.Image.__init__ +#: interactions.api.models.misc.Snowflake.__init__ of +msgid "Parameters" +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.__init__ 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 +224,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 +236,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 "" @@ -193,8 +285,8 @@ msgstr "" 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 "" +#~ 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.presence.po b/docs/locale/ru/LC_MESSAGES/api.models.presence.po index cd9426f00..5013ebd46 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.presence.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -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 @@ -104,63 +103,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 +187,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 @@ -214,3 +222,18 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Unix timestamp of when the activity was created to the User's session" +#~ msgstr "" + +#~ msgid "Custom buttons shown in the RPC." +#~ msgstr "" + +#~ msgid "A class object representing the buttons of a presence." +#~ msgstr "" + +#~ msgid "Text of the button" +#~ msgstr "" + +#~ msgid "URL of the button" +#~ 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..c201be33e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.webhook.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -128,6 +128,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 +198,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 +244,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/client.po b/docs/locale/ru/LC_MESSAGES/client.po index 8e2fd324c..0bfd7ef38 100644 --- a/docs/locale/ru/LC_MESSAGES/client.po +++ b/docs/locale/ru/LC_MESSAGES/client.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,48 +28,128 @@ 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.__init__ +#: 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.__new__ 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.__check_command +#: interactions.client.bot.Client.__compare_sync +#: interactions.client.bot.Client.__init__ +#: 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.__new__ 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 +170,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 +191,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 +199,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 +213,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 +243,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 +373,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" @@ -585,12 +641,11 @@ msgstr "" 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 "" +#~ 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 "" +#~ 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..77cab9c1c 100644 --- a/docs/locale/ru/LC_MESSAGES/context.po +++ b/docs/locale/ru/LC_MESSAGES/context.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -75,14 +75,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,12 +107,16 @@ msgid "" "interaction response." msgstr "" +#: interactions.api.models.attrs_utils.ClientSerializerMixin.__init__ #: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext.defer +#: 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.popup #: interactions.client.context._Context.send of msgid "Parameters" @@ -129,30 +137,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 +278,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..8fc379297 100644 --- a/docs/locale/ru/LC_MESSAGES/enums.po +++ b/docs/locale/ru/LC_MESSAGES/enums.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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..7e929fb5a 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.base.po +++ b/docs/locale/ru/LC_MESSAGES/ext.base.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -30,11 +30,11 @@ msgstr "" msgid "Variables" msgstr "" -#: interactions.ext.base.Base:3 of +#: interactions.ext.base.Base:3 interactions.ext.base.Base.__init__:3 of msgid "The version of the library." msgstr "" -#: interactions.ext.base.Base:4 of +#: interactions.ext.base.Base:4 interactions.ext.base.Base.__init__:1 of msgid "The name of the library." msgstr "" @@ -62,14 +62,47 @@ 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.__init__ +#: 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.__init__:5 of +msgid "The repository link of the library via. GitHub." +msgstr "" + +#: interactions.ext.base.Base.__init__:7 of +msgid "The description of the library, e.g. the purpose." +msgstr "" + +#: interactions.ext.base.Base.__init__:9 of +msgid "The full description of the library, e.g. README. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:11 of +msgid "The package(s) of the library. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:13 of +msgid "The required modules needed for library function. Defaults to ``None``." +msgstr "" + +#: interactions.ext.base.Base.__init__:15 of +msgid "Any other keyword arguments. Defaults to ``None``." msgstr "" +#: interactions.ext.base.Base.__init__ #: 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 +120,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.error.po b/docs/locale/ru/LC_MESSAGES/ext.error.po index 763b1799e..7b39f4fa1 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.error.po +++ b/docs/locale/ru/LC_MESSAGES/ext.error.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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.version.po b/docs/locale/ru/LC_MESSAGES/ext.version.po index 7ad8f183b..57ffb44f0 100644 --- a/docs/locale/ru/LC_MESSAGES/ext.version.po +++ b/docs/locale/ru/LC_MESSAGES/ext.version.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -46,10 +46,37 @@ msgstr "" msgid "The email of the author." msgstr "" -#: interactions.ext.version.VersionAuthor:7 of +#: interactions.ext.version.VersionAuthor:7 +#: interactions.ext.version.VersionAuthor.__init__:1 of msgid "The name of the author." msgstr "" +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ of +msgid "Parameters" +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:3 of +msgid "The author's relationship as the main or co-author. Defaults to ``False``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:5 of +msgid "The author's state of activity. Defaults to ``True``." +msgstr "" + +#: interactions.ext.version.VersionAuthor.__init__:7 of +msgid "The author's email address or point of contact. Defaults to ``None``." +msgstr "" + +#: interactions.ext.version.Version.__init__ +#: interactions.ext.version.Version.author +#: interactions.ext.version.Version.authors +#: interactions.ext.version.Version.extend_version +#: interactions.ext.version.VersionAuthor.__init__ 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 +85,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 "" @@ -104,6 +147,24 @@ msgstr "" msgid "The alphanumeric typing of the version." msgstr "" +#: interactions.ext.version.Version.__init__:1 of +msgid "The major version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:3 of +msgid "The minor version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:5 of +msgid "The patch version. If not specified, ``version`` will be read from." +msgstr "" + +#: interactions.ext.version.Version.__init__:7 of +msgid "" +"The overall version. Must be used if ``major``, ``minor`` or ``patch`` " +"are not." +msgstr "" + #: interactions.ext.version.Version.major:1 of msgid "Returns the major version." msgstr "" @@ -132,12 +193,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 +218,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..308f71de8 100644 --- a/docs/locale/ru/LC_MESSAGES/faq.po +++ b/docs/locale/ru/LC_MESSAGES/faq.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,329 @@ 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 +#: ../../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:170 +#: ../../faq.rst:302 msgid "" -"Please join our Discord server for any further support regarding our " +"Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" -#: ../../faq.rst:172 -msgid "Invite Link: https://discord.gg/KkgMBVuEkx" -msgstr "" +#~ 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." +#~ msgstr "" + +#~ msgid "discord.py is dead! Will this library die too?" +#~ msgstr "" + +#~ 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:" +#~ msgstr "" + +#~ 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):" +#~ msgstr "" + +#~ 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 avoid spamming of commands." +#~ msgstr "" + +#~ 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 spammable, and " +#~ "since we won't be supporting them, " +#~ "there's no feasibility to having them" +#~ " in our library." +#~ msgstr "" + +#~ msgid "" +#~ "Please join our Discord server for " +#~ "any further support regarding our " +#~ "library and/or any integration code " +#~ "depending on it." +#~ msgstr "" + +#~ msgid "Invite Link: https://discord.gg/KkgMBVuEkx" +#~ 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/migration.po b/docs/locale/ru/LC_MESSAGES/migration.po index d07c11207..26ad31cde 100644 --- a/docs/locale/ru/LC_MESSAGES/migration.po +++ b/docs/locale/ru/LC_MESSAGES/migration.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -99,3 +99,37 @@ 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 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:72 +msgid "You can get more information by reading the `get-documentation`_." +msgstr "" + +#: ../../migration.rst:75 +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:78 +msgid "" +"The following example shows and explains how to create commands " +"effortlessly and use new features mentioned above:" +msgstr "" + +#: ../../migration.rst:186 +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..acbfe63bc 100644 --- a/docs/locale/ru/LC_MESSAGES/models.command.po +++ b/docs/locale/ru/LC_MESSAGES/models.command.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -33,26 +33,30 @@ 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." @@ -73,80 +77,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 +226,306 @@ 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.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 of +msgid "Parameters" +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 "" + +#~ msgid "The structure for a choice: ::" +#~ msgstr "" + +#~ msgid "The structure for an option: ::" +#~ msgstr "" + +#~ msgid "The structure for a permission: ::" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.component.po b/docs/locale/ru/LC_MESSAGES/models.component.po index 97de1c249..e4d356e6c 100644 --- a/docs/locale/ru/LC_MESSAGES/models.component.po +++ b/docs/locale/ru/LC_MESSAGES/models.component.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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" @@ -309,3 +309,27 @@ 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 of +msgid "Parameters" +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.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..f92a3951e 100644 --- a/docs/locale/ru/LC_MESSAGES/quickstart.po +++ b/docs/locale/ru/LC_MESSAGES/quickstart.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\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,58 @@ 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 "" + +#~ msgid "``name`` and ``description`` are required." +#~ msgstr "" diff --git a/interactions/api/models/channel.py b/interactions/api/models/channel.py index cef609b04..d0cb36d5d 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() diff --git a/requirements-docs.txt b/requirements-docs.txt index e40f81576..db66987af 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ +enum-tools[sphinx] furo Sphinx -sphinx-hoverxref sphinx-copybutton -enum-tools[sphinx] \ No newline at end of file +sphinx-hoverxref From 978ba84c3802973404ab0b6e2e95edd1662c15fe Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sat, 16 Jul 2022 17:21:38 -0400 Subject: [PATCH 3/5] docs: Update index.rst third party references. --- docs/index.rst | 11 +++-- docs/locale/de/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- docs/locale/fr/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- docs/locale/hi/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- docs/locale/it/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- docs/locale/pl/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- docs/locale/ru/LC_MESSAGES/index.po | 62 ++++++++++++++++++++--------- 7 files changed, 263 insertions(+), 120 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 8de4f62bf..f469a3923 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? diff --git a/docs/locale/de/LC_MESSAGES/index.po b/docs/locale/de/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/de/LC_MESSAGES/index.po +++ b/docs/locale/de/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + diff --git a/docs/locale/fr/LC_MESSAGES/index.po b/docs/locale/fr/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/fr/LC_MESSAGES/index.po +++ b/docs/locale/fr/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + diff --git a/docs/locale/hi/LC_MESSAGES/index.po b/docs/locale/hi/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/hi/LC_MESSAGES/index.po +++ b/docs/locale/hi/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + diff --git a/docs/locale/it/LC_MESSAGES/index.po b/docs/locale/it/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/it/LC_MESSAGES/index.po +++ b/docs/locale/it/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + diff --git a/docs/locale/pl/LC_MESSAGES/index.po b/docs/locale/pl/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/pl/LC_MESSAGES/index.po +++ b/docs/locale/pl/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + diff --git a/docs/locale/ru/LC_MESSAGES/index.po b/docs/locale/ru/LC_MESSAGES/index.po index 62d4c17de..761920ce9 100644 --- a/docs/locale/ru/LC_MESSAGES/index.po +++ b/docs/locale/ru/LC_MESSAGES/index.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-07 21:27-0400\n" +"POT-Creation-Date: 2022-07-16 17:20-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 @@ -258,3 +251,34 @@ msgstr "" #: ../../index.rst:89 msgid ":ref:`search`" msgstr "" + +#~ msgid "" +#~ "**pre-commit** ``2.16.0``: the architecture" +#~ " uses this before every commit to " +#~ "format and check for severity/QOL-" +#~ "breaking changes." +#~ msgstr "" + +#~ msgid "**black** ``21.11b1``" +#~ msgstr "" + +#~ msgid "**flake8** ``3.9.2``" +#~ msgstr "" + +#~ msgid "**isort** ``5.9.3``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.1.2``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" + +#~ msgid "" +#~ "**colorama** ``0.4.4``: our internal logger" +#~ " uses a customized coloring formatter " +#~ "to make looking for specific conditions" +#~ " easier when running tests." +#~ msgstr "" + From 947164b61fce04733b6f2de43d744a7e4e049b8a Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sun, 17 Jul 2022 10:32:35 -0400 Subject: [PATCH 4/5] docs: Fix internal permalinks --- docs/api.cache.rst | 1 - docs/api.dispatch.rst | 1 - docs/api.enums.rst | 1 - docs/api.error.rst | 1 - docs/api.gateway.rst | 3 --- docs/api.http.rst | 16 ---------------- docs/api.models.channel.rst | 1 - docs/api.models.flags.rst | 1 - docs/api.models.guild.rst | 1 - docs/api.models.gw.rst | 1 - docs/api.models.member.rst | 1 - docs/api.models.message.rst | 1 - docs/api.models.misc.rst | 1 - docs/api.models.presence.rst | 1 - docs/api.models.role.rst | 1 - docs/api.models.team.rst | 1 - docs/api.models.user.rst | 1 - docs/api.models.webhook.rst | 1 - docs/client.rst | 1 - docs/context.rst | 1 - docs/enums.rst | 1 - docs/ext.base.rst | 1 - docs/ext.converter.rst | 1 - docs/ext.error.rst | 1 - docs/ext.version.rst | 1 - docs/get.rst | 1 - docs/locale/de/LC_MESSAGES/index.po | 1 - docs/locale/fr/LC_MESSAGES/index.po | 1 - docs/locale/hi/LC_MESSAGES/index.po | 1 - docs/locale/it/LC_MESSAGES/index.po | 1 - docs/locale/pl/LC_MESSAGES/index.po | 1 - docs/locale/ru/LC_MESSAGES/index.po | 1 - docs/models.command.rst | 1 - docs/models.component.rst | 1 - docs/models.misc.rst | 1 - docs/models.utils.rst | 1 - 36 files changed, 53 deletions(-) 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.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.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/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/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/locale/de/LC_MESSAGES/index.po b/docs/locale/de/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/de/LC_MESSAGES/index.po +++ b/docs/locale/de/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - diff --git a/docs/locale/fr/LC_MESSAGES/index.po b/docs/locale/fr/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/fr/LC_MESSAGES/index.po +++ b/docs/locale/fr/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - diff --git a/docs/locale/hi/LC_MESSAGES/index.po b/docs/locale/hi/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/hi/LC_MESSAGES/index.po +++ b/docs/locale/hi/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - diff --git a/docs/locale/it/LC_MESSAGES/index.po b/docs/locale/it/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/it/LC_MESSAGES/index.po +++ b/docs/locale/it/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - diff --git a/docs/locale/pl/LC_MESSAGES/index.po b/docs/locale/pl/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/pl/LC_MESSAGES/index.po +++ b/docs/locale/pl/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - diff --git a/docs/locale/ru/LC_MESSAGES/index.po b/docs/locale/ru/LC_MESSAGES/index.po index 761920ce9..6ff693eaa 100644 --- a/docs/locale/ru/LC_MESSAGES/index.po +++ b/docs/locale/ru/LC_MESSAGES/index.po @@ -281,4 +281,3 @@ msgstr "" #~ "to make looking for specific conditions" #~ " easier when running tests." #~ msgstr "" - 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: From 90df5eecd78e05b6bb9df15b426efd8811328c43 Mon Sep 17 00:00:00 2001 From: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com> Date: Sun, 17 Jul 2022 12:31:50 -0400 Subject: [PATCH 5/5] docs: Revert dedicated __init__ for index searching, optimise index.rst --- docs/conf.py | 3 --- docs/index.rst | 1 - 2 files changed, 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 6a4ae1606..c40b3032c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,9 +38,6 @@ # descriptions of the relevant function/method. autodoc_typehints = "description" -# Don't show class signature with the class' name. -autodoc_class_signature = "separated" - extensions = [ "sphinx.ext.autodoc", "sphinx.ext.intersphinx", diff --git a/docs/index.rst b/docs/index.rst index f469a3923..cf2e1da66 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -86,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