diff --git a/docs/api.models.emoji.rst b/docs/api.models.emoji.rst new file mode 100644 index 000000000..6e1813d85 --- /dev/null +++ b/docs/api.models.emoji.rst @@ -0,0 +1,7 @@ +.. currentmodule:: interactions + +Emoji Models +================ + +.. automodule:: interactions.api.models.emoji + :members: diff --git a/docs/api.models.rst b/docs/api.models.rst index b9fd49298..32c5386f6 100644 --- a/docs/api.models.rst +++ b/docs/api.models.rst @@ -8,6 +8,7 @@ Model Objects api.models.audit_log.rst api.models.channel.rst + api.models.emoji.rst api.models.guild.rst api.models.gw.rst api.models.flags.rst diff --git a/docs/api.rst b/docs/api.rst index 7c1cdc37e..ae3cdc806 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -20,7 +20,7 @@ Interactions ext.rst context.rst - get.rst + utils.rst .. toctree:: :maxdepth: 2 diff --git a/docs/conf.py b/docs/conf.py index c40b3032c..33869f8a6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,6 +37,7 @@ # descriptions of the relevant function/method. autodoc_typehints = "description" +autodoc_typehints_description_target = "documented_params" extensions = [ "sphinx.ext.autodoc", diff --git a/docs/events.rst b/docs/events.rst index 119388dd2..a9bf65a3b 100644 --- a/docs/events.rst +++ b/docs/events.rst @@ -66,9 +66,10 @@ Event: ``raw_socket_create`` 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. -The function handling the event should take in one argument, the type of this argument is a ``dict``. +A function handling an event should take two arguments, +the first argument is the name of the event, the second is the data of that event with type ``dict``. -The value of the argument will be the *raw* data sent from Discord, so it is not recommended to use that event +The value of the second 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. diff --git a/docs/get.rst b/docs/get.rst deleted file mode 100644 index 03e881794..000000000 --- a/docs/get.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. currentmodule:: interactions - -The ``get`` utility method -================ - -.. automodule:: interactions.client.get - :members: diff --git a/docs/index.rst b/docs/index.rst index cf2e1da66..815613d3f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -8,7 +8,7 @@ Ever since December 2019, this open-source project has become the culmination of - Looking for a compatible library that implements all interactions? - Itching to get your hands on slash commands, but in a simple manner? -Look no more! The goal of this library is to make all three of these questions go from possibilites to trivial matters. +Look no more! The goal of this library is to make all three of these questions go from possibilities to trivial matters. What can we do? *************** @@ -63,10 +63,10 @@ This open-source project utilizes the following workflows for development: #. **pre-commit** ``2.20.0``: the architecture uses this before every commit to format and check for severity/QOL-breaking changes. #. **black** ``22.6.0`` - #. **flake8** ``4.0.1`` + #. **flake8** ``5.0.4`` #. **isort** ``5.10.1`` -#. **Sphinx** ``4.4.0``: all of our documentation is powered off of autogenerated documentation of the Sphinx engine. +#. **Sphinx** ``5.1.1``: 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/api.dispatch.po b/docs/locale/de/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/de/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/de/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.gateway.po b/docs/locale/de/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/de/LC_MESSAGES/api.gateway.po +++ b/docs/locale/de/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.http.po b/docs/locale/de/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/de/LC_MESSAGES/api.http.po +++ b/docs/locale/de/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.audit_log.po b/docs/locale/de/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.channel.po b/docs/locale/de/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/de/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.emoji.po b/docs/locale/de/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.guild.po b/docs/locale/de/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/de/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.gw.po b/docs/locale/de/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/de/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.member.po b/docs/locale/de/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.member.po +++ b/docs/locale/de/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.message.po b/docs/locale/de/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.message.po +++ b/docs/locale/de/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.misc.po b/docs/locale/de/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/de/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.presence.po b/docs/locale/de/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/de/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.role.po b/docs/locale/de/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.role.po +++ b/docs/locale/de/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/de/LC_MESSAGES/api.models.team.po b/docs/locale/de/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.team.po +++ b/docs/locale/de/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.user.po b/docs/locale/de/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.user.po +++ b/docs/locale/de/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/api.models.webhook.po b/docs/locale/de/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/de/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/de/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/client.po b/docs/locale/de/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/de/LC_MESSAGES/client.po +++ b/docs/locale/de/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/context.po b/docs/locale/de/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/de/LC_MESSAGES/context.po +++ b/docs/locale/de/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/events.po b/docs/locale/de/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/de/LC_MESSAGES/events.po +++ b/docs/locale/de/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/de/LC_MESSAGES/faq.po b/docs/locale/de/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/de/LC_MESSAGES/faq.po +++ b/docs/locale/de/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/index.po b/docs/locale/de/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/de/LC_MESSAGES/index.po +++ b/docs/locale/de/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/migration.po b/docs/locale/de/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/de/LC_MESSAGES/migration.po +++ b/docs/locale/de/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.command.po b/docs/locale/de/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/de/LC_MESSAGES/models.command.po +++ b/docs/locale/de/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.component.po b/docs/locale/de/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/de/LC_MESSAGES/models.component.po +++ b/docs/locale/de/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/models.misc.po b/docs/locale/de/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/de/LC_MESSAGES/models.misc.po +++ b/docs/locale/de/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/quickstart.po b/docs/locale/de/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/de/LC_MESSAGES/quickstart.po +++ b/docs/locale/de/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/de/LC_MESSAGES/utils.po b/docs/locale/de/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/de/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.dispatch.po b/docs/locale/es/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/es/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/es/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.gateway.po b/docs/locale/es/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/es/LC_MESSAGES/api.gateway.po +++ b/docs/locale/es/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.http.po b/docs/locale/es/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/es/LC_MESSAGES/api.http.po +++ b/docs/locale/es/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.audit_log.po b/docs/locale/es/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.channel.po b/docs/locale/es/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/es/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.emoji.po b/docs/locale/es/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.guild.po b/docs/locale/es/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/es/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.gw.po b/docs/locale/es/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/es/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.member.po b/docs/locale/es/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.member.po +++ b/docs/locale/es/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.message.po b/docs/locale/es/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.message.po +++ b/docs/locale/es/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.misc.po b/docs/locale/es/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/es/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.presence.po b/docs/locale/es/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/es/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.role.po b/docs/locale/es/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.role.po +++ b/docs/locale/es/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/es/LC_MESSAGES/api.models.team.po b/docs/locale/es/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.team.po +++ b/docs/locale/es/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.user.po b/docs/locale/es/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.user.po +++ b/docs/locale/es/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/api.models.webhook.po b/docs/locale/es/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/es/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/es/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/client.po b/docs/locale/es/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/es/LC_MESSAGES/client.po +++ b/docs/locale/es/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/context.po b/docs/locale/es/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/es/LC_MESSAGES/context.po +++ b/docs/locale/es/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/events.po b/docs/locale/es/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/es/LC_MESSAGES/events.po +++ b/docs/locale/es/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/es/LC_MESSAGES/faq.po b/docs/locale/es/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/es/LC_MESSAGES/faq.po +++ b/docs/locale/es/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/index.po b/docs/locale/es/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/es/LC_MESSAGES/index.po +++ b/docs/locale/es/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/migration.po b/docs/locale/es/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/es/LC_MESSAGES/migration.po +++ b/docs/locale/es/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.command.po b/docs/locale/es/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/es/LC_MESSAGES/models.command.po +++ b/docs/locale/es/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.component.po b/docs/locale/es/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/es/LC_MESSAGES/models.component.po +++ b/docs/locale/es/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/models.misc.po b/docs/locale/es/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/es/LC_MESSAGES/models.misc.po +++ b/docs/locale/es/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/quickstart.po b/docs/locale/es/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/es/LC_MESSAGES/quickstart.po +++ b/docs/locale/es/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/es/LC_MESSAGES/utils.po b/docs/locale/es/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/es/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.dispatch.po b/docs/locale/fr/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/fr/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/fr/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.gateway.po b/docs/locale/fr/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/fr/LC_MESSAGES/api.gateway.po +++ b/docs/locale/fr/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.http.po b/docs/locale/fr/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/fr/LC_MESSAGES/api.http.po +++ b/docs/locale/fr/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.audit_log.po b/docs/locale/fr/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.channel.po b/docs/locale/fr/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.emoji.po b/docs/locale/fr/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.guild.po b/docs/locale/fr/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.gw.po b/docs/locale/fr/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.member.po b/docs/locale/fr/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.member.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.message.po b/docs/locale/fr/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.message.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.misc.po b/docs/locale/fr/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.presence.po b/docs/locale/fr/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.role.po b/docs/locale/fr/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.role.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/fr/LC_MESSAGES/api.models.team.po b/docs/locale/fr/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.team.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.user.po b/docs/locale/fr/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.user.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/api.models.webhook.po b/docs/locale/fr/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/fr/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/fr/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/client.po b/docs/locale/fr/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/fr/LC_MESSAGES/client.po +++ b/docs/locale/fr/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/context.po b/docs/locale/fr/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/fr/LC_MESSAGES/context.po +++ b/docs/locale/fr/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/events.po b/docs/locale/fr/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/fr/LC_MESSAGES/events.po +++ b/docs/locale/fr/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/fr/LC_MESSAGES/faq.po b/docs/locale/fr/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/fr/LC_MESSAGES/faq.po +++ b/docs/locale/fr/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/index.po b/docs/locale/fr/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/fr/LC_MESSAGES/index.po +++ b/docs/locale/fr/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/migration.po b/docs/locale/fr/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/fr/LC_MESSAGES/migration.po +++ b/docs/locale/fr/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.command.po b/docs/locale/fr/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/fr/LC_MESSAGES/models.command.po +++ b/docs/locale/fr/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.component.po b/docs/locale/fr/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/fr/LC_MESSAGES/models.component.po +++ b/docs/locale/fr/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/models.misc.po b/docs/locale/fr/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/fr/LC_MESSAGES/models.misc.po +++ b/docs/locale/fr/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/quickstart.po b/docs/locale/fr/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/fr/LC_MESSAGES/quickstart.po +++ b/docs/locale/fr/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/fr/LC_MESSAGES/utils.po b/docs/locale/fr/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/fr/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.dispatch.po b/docs/locale/hi/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/hi/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/hi/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.gateway.po b/docs/locale/hi/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/hi/LC_MESSAGES/api.gateway.po +++ b/docs/locale/hi/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.http.po b/docs/locale/hi/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/hi/LC_MESSAGES/api.http.po +++ b/docs/locale/hi/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.audit_log.po b/docs/locale/hi/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.channel.po b/docs/locale/hi/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.emoji.po b/docs/locale/hi/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.guild.po b/docs/locale/hi/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.gw.po b/docs/locale/hi/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.member.po b/docs/locale/hi/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.member.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.message.po b/docs/locale/hi/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.message.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.misc.po b/docs/locale/hi/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.presence.po b/docs/locale/hi/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.role.po b/docs/locale/hi/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.role.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/hi/LC_MESSAGES/api.models.team.po b/docs/locale/hi/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.team.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.user.po b/docs/locale/hi/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.user.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/api.models.webhook.po b/docs/locale/hi/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/hi/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/hi/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/client.po b/docs/locale/hi/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/hi/LC_MESSAGES/client.po +++ b/docs/locale/hi/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/context.po b/docs/locale/hi/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/hi/LC_MESSAGES/context.po +++ b/docs/locale/hi/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/events.po b/docs/locale/hi/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/hi/LC_MESSAGES/events.po +++ b/docs/locale/hi/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/hi/LC_MESSAGES/faq.po b/docs/locale/hi/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/hi/LC_MESSAGES/faq.po +++ b/docs/locale/hi/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/index.po b/docs/locale/hi/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/hi/LC_MESSAGES/index.po +++ b/docs/locale/hi/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/migration.po b/docs/locale/hi/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/hi/LC_MESSAGES/migration.po +++ b/docs/locale/hi/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.command.po b/docs/locale/hi/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/hi/LC_MESSAGES/models.command.po +++ b/docs/locale/hi/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.component.po b/docs/locale/hi/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/hi/LC_MESSAGES/models.component.po +++ b/docs/locale/hi/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/models.misc.po b/docs/locale/hi/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/hi/LC_MESSAGES/models.misc.po +++ b/docs/locale/hi/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/quickstart.po b/docs/locale/hi/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/hi/LC_MESSAGES/quickstart.po +++ b/docs/locale/hi/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/hi/LC_MESSAGES/utils.po b/docs/locale/hi/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/hi/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.dispatch.po b/docs/locale/it/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/it/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/it/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.gateway.po b/docs/locale/it/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/it/LC_MESSAGES/api.gateway.po +++ b/docs/locale/it/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.http.po b/docs/locale/it/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/it/LC_MESSAGES/api.http.po +++ b/docs/locale/it/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.audit_log.po b/docs/locale/it/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.channel.po b/docs/locale/it/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/it/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.emoji.po b/docs/locale/it/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.guild.po b/docs/locale/it/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/it/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.gw.po b/docs/locale/it/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/it/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.member.po b/docs/locale/it/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.member.po +++ b/docs/locale/it/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.message.po b/docs/locale/it/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.message.po +++ b/docs/locale/it/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.misc.po b/docs/locale/it/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/it/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.presence.po b/docs/locale/it/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/it/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.role.po b/docs/locale/it/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.role.po +++ b/docs/locale/it/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/it/LC_MESSAGES/api.models.team.po b/docs/locale/it/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.team.po +++ b/docs/locale/it/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.user.po b/docs/locale/it/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.user.po +++ b/docs/locale/it/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/api.models.webhook.po b/docs/locale/it/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/it/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/it/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/client.po b/docs/locale/it/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/it/LC_MESSAGES/client.po +++ b/docs/locale/it/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/context.po b/docs/locale/it/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/it/LC_MESSAGES/context.po +++ b/docs/locale/it/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/events.po b/docs/locale/it/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/it/LC_MESSAGES/events.po +++ b/docs/locale/it/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/it/LC_MESSAGES/faq.po b/docs/locale/it/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/it/LC_MESSAGES/faq.po +++ b/docs/locale/it/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/index.po b/docs/locale/it/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/it/LC_MESSAGES/index.po +++ b/docs/locale/it/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/migration.po b/docs/locale/it/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/it/LC_MESSAGES/migration.po +++ b/docs/locale/it/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.command.po b/docs/locale/it/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/it/LC_MESSAGES/models.command.po +++ b/docs/locale/it/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.component.po b/docs/locale/it/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/it/LC_MESSAGES/models.component.po +++ b/docs/locale/it/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/models.misc.po b/docs/locale/it/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/it/LC_MESSAGES/models.misc.po +++ b/docs/locale/it/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/quickstart.po b/docs/locale/it/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/it/LC_MESSAGES/quickstart.po +++ b/docs/locale/it/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/it/LC_MESSAGES/utils.po b/docs/locale/it/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/it/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.dispatch.po b/docs/locale/pl/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/pl/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/pl/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.gateway.po b/docs/locale/pl/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/pl/LC_MESSAGES/api.gateway.po +++ b/docs/locale/pl/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.http.po b/docs/locale/pl/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/pl/LC_MESSAGES/api.http.po +++ b/docs/locale/pl/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.audit_log.po b/docs/locale/pl/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.channel.po b/docs/locale/pl/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.emoji.po b/docs/locale/pl/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.guild.po b/docs/locale/pl/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.gw.po b/docs/locale/pl/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.member.po b/docs/locale/pl/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.member.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.message.po b/docs/locale/pl/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.message.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.misc.po b/docs/locale/pl/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.presence.po b/docs/locale/pl/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.role.po b/docs/locale/pl/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.role.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/pl/LC_MESSAGES/api.models.team.po b/docs/locale/pl/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.team.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.user.po b/docs/locale/pl/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.user.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/api.models.webhook.po b/docs/locale/pl/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/pl/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/pl/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/client.po b/docs/locale/pl/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/pl/LC_MESSAGES/client.po +++ b/docs/locale/pl/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/context.po b/docs/locale/pl/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/pl/LC_MESSAGES/context.po +++ b/docs/locale/pl/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/events.po b/docs/locale/pl/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/pl/LC_MESSAGES/events.po +++ b/docs/locale/pl/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/pl/LC_MESSAGES/faq.po b/docs/locale/pl/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/pl/LC_MESSAGES/faq.po +++ b/docs/locale/pl/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/index.po b/docs/locale/pl/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/pl/LC_MESSAGES/index.po +++ b/docs/locale/pl/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/migration.po b/docs/locale/pl/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/pl/LC_MESSAGES/migration.po +++ b/docs/locale/pl/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.command.po b/docs/locale/pl/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/pl/LC_MESSAGES/models.command.po +++ b/docs/locale/pl/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.component.po b/docs/locale/pl/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/pl/LC_MESSAGES/models.component.po +++ b/docs/locale/pl/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/models.misc.po b/docs/locale/pl/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/pl/LC_MESSAGES/models.misc.po +++ b/docs/locale/pl/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/quickstart.po b/docs/locale/pl/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/pl/LC_MESSAGES/quickstart.po +++ b/docs/locale/pl/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/pl/LC_MESSAGES/utils.po b/docs/locale/pl/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/pl/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.dispatch.po b/docs/locale/ru/LC_MESSAGES/api.dispatch.po index 2b020e27a..18a4ff864 100644 --- a/docs/locale/ru/LC_MESSAGES/api.dispatch.po +++ b/docs/locale/ru/LC_MESSAGES/api.dispatch.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.dispatch.rst:4 msgid "Dispatching" @@ -38,12 +38,6 @@ msgstr "" msgid "A list of events being dispatched." msgstr "" -#: interactions.api.dispatch.Listener -#: interactions.api.dispatch.Listener.dispatch -#: interactions.api.dispatch.Listener.register of -msgid "Return type" -msgstr "" - #: interactions.api.dispatch.Listener.dispatch:1 of msgid "Dispatches an event given out by the gateway." msgstr "" @@ -83,3 +77,6 @@ msgstr "" #: interactions.api.dispatch.Listener.register:9 of msgid "The name to associate the coroutine with. Defaults to None." msgstr "" + +#~ msgid "Return type" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.gateway.po b/docs/locale/ru/LC_MESSAGES/api.gateway.po index aad9d8772..22e00a8ed 100644 --- a/docs/locale/ru/LC_MESSAGES/api.gateway.po +++ b/docs/locale/ru/LC_MESSAGES/api.gateway.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.gateway.rst:4 msgid "Gateway" @@ -36,121 +36,169 @@ msgid "" "WebSocket." msgstr "" +#: interactions.api.gateway.client.WebSocketClient:4 of +msgid "" +"The ``__heartbeat_event`` Event object is different from the one built in" +" to the Heartbeater object. The latter is used to trace heartbeat " +"acknowledgement." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient of msgid "Variables" msgstr "" -#: interactions.api.gateway.client.WebSocketClient:3 of +#: interactions.api.gateway.client.WebSocketClient:7 of msgid "The asynchronous event loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:4 of +#: interactions.api.gateway.client.WebSocketClient:8 of msgid "The built-in event dispatcher." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:5 of +#: interactions.api.gateway.client.WebSocketClient:9 of +msgid "The websocket ratelimiter object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:10 of msgid "The user-facing HTTP client." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:6 of +#: interactions.api.gateway.client.WebSocketClient:11 of msgid "The WebSocket data of the connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:7 of +#: interactions.api.gateway.client.WebSocketClient:12 of msgid "Whether the connection has been closed or not." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:8 of +#: interactions.api.gateway.client.WebSocketClient:13 of msgid "The connection options made during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:9 of +#: interactions.api.gateway.client.WebSocketClient:14 of msgid "The gateway intents used for connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:10 of +#: interactions.api.gateway.client.WebSocketClient:15 of msgid "The contents of the application returned when ready." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:11 of +#: interactions.api.gateway.client.WebSocketClient:16 of msgid "The context state of a \"heartbeat\" made to the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:12 of +#: interactions.api.gateway.client.WebSocketClient:17 of +msgid "The state of the overall heartbeat process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:18 of msgid "The shards used during connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:13 of +#: interactions.api.gateway.client.WebSocketClient:19 of msgid "The presence used in connection." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:14 of +#: interactions.api.gateway.client.WebSocketClient:20 of msgid "The ready state of the client as an ``asyncio.Event``." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:15 of -msgid "The closing task for ending connections." +#: interactions.api.gateway.client.WebSocketClient:21 of +msgid "The task containing the heartbeat manager process." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:16 of +#: interactions.api.gateway.client.WebSocketClient:22 of msgid "Whether the client has started." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:17 of +#: interactions.api.gateway.client.WebSocketClient:23 of msgid "The ID of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:18 of +#: interactions.api.gateway.client.WebSocketClient:24 of msgid "The sequence identifier of the ongoing session." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:19 of +#: interactions.api.gateway.client.WebSocketClient:25 of msgid "" "The latest time of the last send_packet function call since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:20 of +#: interactions.api.gateway.client.WebSocketClient:26 of msgid "" "The latest time of the last ``HEARTBEAT_ACK`` event since connection " "creation, in seconds." msgstr "" -#: interactions.api.gateway.client.WebSocketClient:21 of -msgid "The latency of the connection, in seconds." +#: interactions.api.gateway.client.WebSocketClient:27 of +msgid "The Websocket ratelimit URL for resuming connections, if any." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:28 of +msgid "The Websocket URL for instantiating connections without resuming." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:29 of +msgid "The lock used for reconnecting the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:30 of +msgid "The lock used for closing the client." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient:31 of +msgid "The task containing stopping the client, if any." msgstr "" #: interactions.api.gateway.client.WebSocketClient #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__identify +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache #: interactions.api.gateway.client.WebSocketClient.__option_type_context +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._handle_stream +#: interactions.api.gateway.client.WebSocketClient._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence +#: interactions.api.gateway.client.WebSocketClient.request_guild_members #: interactions.api.gateway.heartbeat._Heartbeat of msgid "Parameters" msgstr "" -#: interactions.api.gateway.client.WebSocketClient +#: interactions.api.gateway.client.WebSocketClient.latency:1 of +msgid "The latency of the connection, in seconds." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat:1 of +msgid "" +"Controls the heartbeat manager. Do note that this shouldn't be executed " +"by outside processes." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__heartbeat #: interactions.api.gateway.client.WebSocketClient.__identify #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream -#: interactions.api.gateway.client.WebSocketClient.__restart +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: 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._reconnect #: interactions.api.gateway.client.WebSocketClient._send_packet #: interactions.api.gateway.client.WebSocketClient._update_presence -#: interactions.api.gateway.client.WebSocketClient.wait_until_ready -#: interactions.api.gateway.heartbeat._Heartbeat of +#: interactions.api.gateway.client.WebSocketClient.close +#: interactions.api.gateway.client.WebSocketClient.request_guild_members +#: interactions.api.gateway.client.WebSocketClient.run +#: interactions.api.gateway.client.WebSocketClient.run_heartbeat +#: interactions.api.gateway.client.WebSocketClient.wait_until_ready of msgid "Return type" msgstr "" @@ -158,29 +206,21 @@ msgstr "" msgid "Manages the heartbeat loop." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__restart:1 of -msgid "Restart the client's connection and heartbeat with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:1 of -msgid "Establishes a client connection with the Gateway." -msgstr "" - -#: interactions.api.gateway.client.WebSocketClient._establish_connection:3 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:5 of -msgid "The shards to establish a connection with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient.run:1 of +msgid "Handles the client's connection with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._establish_connection:5 -#: interactions.api.gateway.client.WebSocketClient._handle_connection:7 of -msgid "The presence to carry with. Defaults to ``None``." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:1 of +msgid "" +"Parses raw stream data recieved from the Gateway, including Gateway " +"opcodes and events." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:1 of -msgid "Handles the client's connection with the Gateway." +#: interactions.api.gateway.client.WebSocketClient._handle_stream:4 of +msgid "This should never be called directly." msgstr "" -#: interactions.api.gateway.client.WebSocketClient._handle_connection:3 of +#: interactions.api.gateway.client.WebSocketClient._handle_stream:6 of msgid "The packet stream to handle." msgstr "" @@ -192,31 +232,68 @@ msgstr "" msgid "Dispatches an event from the Gateway." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:3 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:3 of msgid "The name of the event." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:5 #: interactions.api.gateway.client.WebSocketClient._dispatch_event:5 of msgid "The data for the event." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of -msgid "" -"Takes raw data given back from the Gateway and gives \"context\" based " -"off of what it is." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:1 of +msgid "Gets an ID from object." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of -msgid "The data from the Gateway." +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:5 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:3 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:7 of +msgid "The object of the event." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:7 +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:5 +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:9 of +msgid "The model of the event." msgstr "" #: interactions.api.gateway.client.WebSocketClient.__contextualize +#: interactions.api.gateway.client.WebSocketClient.__get_object_id +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids #: interactions.api.gateway.client.WebSocketClient.__option_type_context -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream +#: interactions.api.gateway.client.WebSocketClient.__receive_packet #: interactions.api.gateway.client.WebSocketClient.__sub_command_context of msgid "Returns" msgstr "" +#: interactions.api.gateway.client.WebSocketClient.__get_object_id:9 of +msgid "Object ID" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:1 of +msgid "Gets a list of ids of object." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__get_object_ids:7 of +msgid "Object IDs" +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__modify_guild_cache:1 of +msgid "Modifies guild cache." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:1 of +msgid "" +"Takes raw data given back from the Gateway and gives \"context\" based " +"off of what it is." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__contextualize:4 of +msgid "The data from the Gateway." +msgstr "" + #: interactions.api.gateway.client.WebSocketClient.__contextualize:6 of msgid "The context object." msgstr "" @@ -255,11 +332,15 @@ msgstr "" msgid "The option type context." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:1 of -msgid "Receives a stream of packets sent from the Gateway." +#: interactions.api.gateway.client.WebSocketClient._reconnect:1 of +msgid "Restarts the client's connection and heartbeat with the Gateway." msgstr "" -#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream:3 of +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:1 of +msgid "Receives a stream of packets sent from the Gateway in an async process." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.__receive_packet:3 of msgid "The packet stream." msgstr "" @@ -311,6 +392,58 @@ msgid "" "disconnect." msgstr "" +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:1 of +msgid "Sends an ``REQUEST_MEMBERS`` packet to the gateway." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:3 of +msgid "ID of the guild to get members for." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:5 of +msgid "" +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:7 of +msgid "String that username starts with." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." +msgstr "" + +#: interactions.api.gateway.client.WebSocketClient.close:1 of +msgid "Closes the current connection." +msgstr "" + #: interactions.api.gateway.heartbeat._Heartbeat:1 of msgid "An internal class representing the heartbeat in a WebSocket connection." msgstr "" + +#~ msgid "The closing task for ending connections." +#~ msgstr "" + +#~ msgid "Restart the client's connection and heartbeat with the Gateway." +#~ msgstr "" + +#~ msgid "Establishes a client connection with the Gateway." +#~ msgstr "" + +#~ msgid "The shards to establish a connection with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "The presence to carry with. Defaults to ``None``." +#~ msgstr "" + +#~ msgid "Receives a stream of packets sent from the Gateway." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.http.po b/docs/locale/ru/LC_MESSAGES/api.http.po index b141f2d87..fcab462c2 100644 --- a/docs/locale/ru/LC_MESSAGES/api.http.po +++ b/docs/locale/ru/LC_MESSAGES/api.http.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.http.rst:4 msgid "HTTP" @@ -55,10 +55,13 @@ 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.create_tag #: 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.delete_tag #: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -75,6 +78,7 @@ msgstr "" #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -169,6 +173,7 @@ msgstr "" #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker #: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread #: interactions.api.http.thread.ThreadRequest.join_thread #: interactions.api.http.thread.ThreadRequest.leave_thread @@ -198,14 +203,19 @@ msgstr "" msgid "Parameters" msgstr "" -#: interactions.api.http.channel.ChannelRequest +#: 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.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 @@ -214,37 +224,21 @@ 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 #: interactions.api.http.emoji.EmojiRequest.create_guild_emoji -#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji #: interactions.api.http.emoji.EmojiRequest.get_all_emoji #: interactions.api.http.emoji.EmojiRequest.get_guild_emoji #: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji -#: interactions.api.http.guild.GuildRequest #: interactions.api.http.guild.GuildRequest.add_guild_member +#: interactions.api.http.guild.GuildRequest.begin_guild_prune #: 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 @@ -255,28 +249,17 @@ 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 -#: 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 @@ -285,46 +268,22 @@ msgstr "" #: interactions.api.http.interaction.InteractionRequest.get_application_commands #: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response #: interactions.api.http.interaction.InteractionRequest.overwrite_application_command -#: interactions.api.http.limiter.Limiter -#: interactions.api.http.member.MemberRequest -#: interactions.api.http.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member -#: interactions.api.http.member.MemberRequest.remove_member_role -#: interactions.api.http.member.MemberRequest.search_guild_members -#: interactions.api.http.message.MessageRequest -#: interactions.api.http.message.MessageRequest.create_message -#: interactions.api.http.message.MessageRequest.delete_message -#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message -#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message -#: interactions.api.http.message.MessageRequest.send_message -#: interactions.api.http.message.MessageRequest.unpin_message -#: interactions.api.http.reaction.ReactionRequest -#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions -#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji -#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction -#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction -#: interactions.api.http.request._Request -#: interactions.api.http.request._Request._check_lock -#: interactions.api.http.request._Request._check_session -#: interactions.api.http.request._Request.close #: interactions.api.http.request._Request.request -#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint +#: interactions.api.http.route.Route.endpoint #: interactions.api.http.route.Route.get_bucket -#: interactions.api.http.scheduledEvent.ScheduledEventRequest #: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events #: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event -#: interactions.api.http.sticker.StickerRequest #: interactions.api.http.sticker.StickerRequest.create_guild_sticker #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker #: interactions.api.http.sticker.StickerRequest.get_guild_sticker @@ -332,53 +291,44 @@ 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 -#: interactions.api.http.thread.ThreadRequest.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread -#: interactions.api.http.thread.ThreadRequest.join_thread -#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members -#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread -#: interactions.api.http.user.UserRequest #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_self #: interactions.api.http.user.UserRequest.get_user -#: interactions.api.http.user.UserRequest.modify_self #: interactions.api.http.user.UserRequest.modify_self_nick_in_guild -#: interactions.api.http.webhook.WebhookRequest #: interactions.api.http.webhook.WebhookRequest.create_webhook -#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message -#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message #: interactions.api.http.webhook.WebhookRequest.edit_webhook_message #: interactions.api.http.webhook.WebhookRequest.execute_github_webhook #: interactions.api.http.webhook.WebhookRequest.execute_slack_webhook #: interactions.api.http.webhook.WebhookRequest.execute_webhook #: interactions.api.http.webhook.WebhookRequest.get_channel_webhooks #: interactions.api.http.webhook.WebhookRequest.get_guild_webhooks -#: interactions.api.http.webhook.WebhookRequest.get_webhook #: interactions.api.http.webhook.WebhookRequest.get_webhook_message #: interactions.api.http.webhook.WebhookRequest.modify_webhook of -msgid "Return type" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:1 of -msgid "" -"Returns the route's bucket. If shared_bucket is None, returns the path " -"with major parameters. Otherwise, it relies on Discord's given bucket." +msgid "Returns" msgstr "" -#: interactions.api.http.route.Route.get_bucket:4 of -msgid "The bucket that Discord provides, if available." +#: interactions.api.http.route.Route.get_bucket:7 of +msgid "The route 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 +#: interactions.api.http.channel.ChannelRequest.create_tag +#: 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.delete_tag +#: interactions.api.http.channel.ChannelRequest.edit_channel_permission +#: interactions.api.http.channel.ChannelRequest.edit_tag #: interactions.api.http.channel.ChannelRequest.get_channel #: interactions.api.http.channel.ChannelRequest.get_channel_invites #: interactions.api.http.channel.ChannelRequest.get_channel_messages @@ -387,20 +337,36 @@ 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.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.begin_guild_prune #: 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 @@ -411,17 +377,27 @@ 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._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 @@ -430,13 +406,30 @@ 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.member.MemberRequest.add_member_role #: interactions.api.http.member.MemberRequest.get_list_of_members #: interactions.api.http.member.MemberRequest.get_member #: interactions.api.http.member.MemberRequest.modify_member +#: interactions.api.http.member.MemberRequest.remove_member_role +#: interactions.api.http.member.MemberRequest.search_guild_members +#: interactions.api.http.message.MessageRequest.create_message +#: interactions.api.http.message.MessageRequest.delete_message +#: interactions.api.http.message.MessageRequest.delete_messages #: interactions.api.http.message.MessageRequest.edit_message #: interactions.api.http.message.MessageRequest.get_message +#: interactions.api.http.message.MessageRequest.pin_message #: interactions.api.http.message.MessageRequest.publish_message +#: interactions.api.http.message.MessageRequest.send_message +#: interactions.api.http.message.MessageRequest.unpin_message +#: interactions.api.http.reaction.ReactionRequest.create_reaction #: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions +#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji +#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction +#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction +#: interactions.api.http.request._Request._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.endpoint #: interactions.api.http.route.Route.get_bucket @@ -453,31 +446,36 @@ 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.add_member_to_thread #: interactions.api.http.thread.ThreadRequest.create_thread +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum #: interactions.api.http.thread.ThreadRequest.get_member_from_thread +#: interactions.api.http.thread.ThreadRequest.join_thread +#: interactions.api.http.thread.ThreadRequest.leave_thread #: interactions.api.http.thread.ThreadRequest.list_active_threads #: interactions.api.http.thread.ThreadRequest.list_joined_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_private_archived_threads #: interactions.api.http.thread.ThreadRequest.list_public_archived_threads #: interactions.api.http.thread.ThreadRequest.list_thread_members +#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread #: interactions.api.http.user.UserRequest.create_dm #: interactions.api.http.user.UserRequest.get_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.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" -msgstr "" - -#: interactions.api.http.route.Route.get_bucket:7 of -msgid "The route bucket." +msgid "Return type" msgstr "" #: interactions.api.http.route.Route.endpoint:1 of @@ -617,9 +615,12 @@ msgstr "" #: interactions.api.http.channel.ChannelRequest.create_channel_invite:6 #: interactions.api.http.channel.ChannelRequest.create_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.create_tag:7 #: interactions.api.http.channel.ChannelRequest.delete_channel_permission:3 #: interactions.api.http.channel.ChannelRequest.delete_stage_instance:3 +#: interactions.api.http.channel.ChannelRequest.delete_tag:3 #: interactions.api.http.channel.ChannelRequest.edit_channel_permission:3 +#: interactions.api.http.channel.ChannelRequest.edit_tag:7 #: interactions.api.http.channel.ChannelRequest.get_channel:3 #: interactions.api.http.channel.ChannelRequest.get_channel_invites:3 #: interactions.api.http.channel.ChannelRequest.get_channel_messages:6 @@ -919,6 +920,51 @@ msgstr "" msgid "Delete a stage instance." msgstr "" +#: interactions.api.http.channel.ChannelRequest.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:4 +#: interactions.api.http.channel.ChannelRequest.edit_tag:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:8 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:9 +#: interactions.api.http.channel.ChannelRequest.edit_tag:10 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.create_tag:10 +#: interactions.api.http.channel.ChannelRequest.edit_tag:11 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:1 of +msgid "Update a tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:8 of +msgid "The ID of the tag to update." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.edit_tag:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:1 of +msgid "Delete a forum tag." +msgstr "" + +#: interactions.api.http.channel.ChannelRequest.delete_tag:4 of +msgid "The ID of the tag to delete" +msgstr "" + #: interactions.api.http.emoji.EmojiRequest.get_all_emoji:1 of msgid "Gets all emojis from a guild." msgstr "" @@ -1279,6 +1325,7 @@ msgstr "" msgid "Gets all roles from a Guild." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:3 #: interactions.api.http.guild.GuildRequest.create_guild_ban:3 #: interactions.api.http.guild.GuildRequest.create_guild_kick:3 #: interactions.api.http.guild.GuildRequest.get_all_roles:3 @@ -1374,7 +1421,9 @@ msgid "" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "" +"Number of seconds to delete messages for, between 0 and 604800. Default " +"to 0" msgstr "" #: interactions.api.http.guild.GuildRequest.create_guild_ban:6 of @@ -1467,20 +1516,36 @@ msgstr "" msgid "Reason to send to audit log, if any." msgstr "" -#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of -msgid "" -"Retrieves a dict from an API that results in how many members would be " -"pruned given the amount of days." +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:1 of +msgid "Begins a prune operation." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:4 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:4 of -msgid "Number of days to count. Defaults to ``7``." +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:5 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:6 #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:5 of msgid "Role IDs to include, if given." msgstr "" +#: interactions.api.http.guild.GuildRequest.begin_guild_prune:7 of +msgid "A dict containing `{\"pruned\": int}` or `{\"pruned\": None}`" +msgstr "" + +#: interactions.api.http.guild.GuildRequest.get_guild_prune_count:1 of +msgid "" +"Retrieves a dict from an API that results in how many members would be " +"pruned given the amount of days." +msgstr "" + #: interactions.api.http.guild.GuildRequest.get_guild_prune_count:6 of msgid "A dict denoting `{\"pruned\": int}`" msgstr "" @@ -1974,7 +2039,8 @@ msgid "Channel snowflake ID." msgstr "" #: interactions.api.http.message.MessageRequest.create_message:5 -#: interactions.api.http.message.MessageRequest.edit_message:6 of +#: interactions.api.http.message.MessageRequest.edit_message:6 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:9 of msgid "An optional list of files to send attached to the message." msgstr "" @@ -2178,11 +2244,8 @@ msgid "Guild Scheduled Event ID snowflake." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:5 -#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 #: of -msgid "" -"A boolean to include number of users subscribed to the associated event, " -"if given." +msgid "Whether the number of users subscribed to the events is returned." msgstr "" #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event:6 @@ -2195,6 +2258,13 @@ msgstr "" msgid "Gets all guild scheduled events in a guild." msgstr "" +#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:4 +#: of +msgid "" +"Whether the number of users subscribed to the associated event is " +"returned." +msgstr "" + #: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events:5 #: of msgid "" @@ -2307,22 +2377,25 @@ msgid "" "MANAGE_EMOJIS_AND_STICKERS permission." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 -#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of -msgid "the payload to send." +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:3 of +msgid "The payload to send." msgstr "" #: interactions.api.http.sticker.StickerRequest.create_guild_sticker:4 of +msgid "The file to send." +msgstr "" + +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 of msgid "The guild to create sticker at." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:5 +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:5 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:6 of msgid "The reason for this action." msgstr "" -#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:6 of +#: interactions.api.http.sticker.StickerRequest.create_guild_sticker:7 of msgid "The new sticker data on success." msgstr "" @@ -2332,6 +2405,10 @@ msgid "" "permission." msgstr "" +#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:3 of +msgid "the payload to send." +msgstr "" + #: interactions.api.http.sticker.StickerRequest.delete_guild_sticker:3 #: interactions.api.http.sticker.StickerRequest.modify_guild_sticker:4 of msgid "The guild of the target sticker." @@ -2483,15 +2560,18 @@ msgid "" "with.." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:3 of +#: interactions.api.http.thread.ThreadRequest.create_thread:3 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:3 of msgid "The ID of the channel to create this thread in" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:4 of +#: interactions.api.http.thread.ThreadRequest.create_thread:4 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:4 of msgid "The name of the thread" msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:5 of +#: interactions.api.http.thread.ThreadRequest.create_thread:5 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:5 of msgid "" "duration in minutes to automatically archive the thread after recent " "activity, can be set to: 60, 1440, 4320, 10080" @@ -2511,7 +2591,8 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" -#: interactions.api.http.thread.ThreadRequest.create_thread:10 of +#: interactions.api.http.thread.ThreadRequest.create_thread:10 +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:11 of msgid "An optional reason for the audit log" msgstr "" @@ -2519,6 +2600,28 @@ msgstr "" msgid "The created thread" msgstr "" +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:1 of +msgid "From a given Forum channel, create a Thread with a message to start with." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:7 of +msgid "The payload/dictionary contents of the first message in the forum thread." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:8 of +msgid "List of tag ids that can be applied to the forum, if any." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:10 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.http.thread.ThreadRequest.create_thread_in_forum:12 of +msgid "Returns a Thread in a Forum object with a starting Message." +msgstr "" + #: interactions.api.http.user.UserRequest.get_self:1 of msgid "An alias to `get_user`, but only gets the current bot user." msgstr "" @@ -2743,3 +2846,15 @@ msgstr "" #: of msgid "Deletes the original message object sent." msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Number of days to count. Defaults to ``7``." +#~ msgstr "" + +#~ msgid "" +#~ "A boolean to include number of " +#~ "users subscribed to the associated " +#~ "event, if given." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.audit_log.po b/docs/locale/ru/LC_MESSAGES/api.models.audit_log.po new file mode 100644 index 000000000..7ba1f1c2b --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/api.models.audit_log.po @@ -0,0 +1,413 @@ +# 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-09-26 12:28-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.10.3\n" + +#: ../../api.models.audit_log.rst:4 +msgid "Audit-Log Models" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:1 of +msgid "A class object representing an AuditLogEntry." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange +#: interactions.api.models.audit_log.AuditLogEntry +#: interactions.api.models.audit_log.AuditLogEvents +#: interactions.api.models.audit_log.AuditLogs +#: interactions.api.models.audit_log.OptionalAuditEntryInfo of +msgid "Variables" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:3 of +msgid "ID of the affected entity (webhook, user, role, etc.)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:4 of +msgid "Changes made to the target_id" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:5 of +msgid "User or app that made the changes" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:6 of +msgid "ID of the entry" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:7 of +msgid "Type of action that occurred" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:8 of +msgid "Additional info for certain event types" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEntry:9 of +msgid "Reason for the change (1-512 characters)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "A class object representing the different types of AuditLogEvents." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:3 of +msgid "1 - Server settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:4 of +msgid "10 - Channel was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:5 of +msgid "11 - Channel settings were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:6 of +msgid "12 - Channel was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:7 of +msgid "13 - Permission overwrite was added to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:8 of +msgid "14 - Permission overwrite was updated for a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:9 of +msgid "15 - Permission overwrite was deleted from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:10 of +msgid "20 - Member was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:11 of +msgid "21 - Members were pruned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:12 of +msgid "22 - Member was banned from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:13 of +msgid "23 - Server ban was lifted for a member" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:14 of +msgid "24 - Member was updated in server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:15 of +msgid "25 - Member was added or removed from a role" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:16 of +msgid "26 - Member was moved to a different voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:17 of +msgid "27 - Member was disconnected from a voice channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:18 of +msgid "28 - Bot user was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:19 of +msgid "30 - Role was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:20 of +msgid "31 - Role was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:21 of +msgid "32 - Role was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:22 of +msgid "40 - Server invite was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:23 of +msgid "41 - Server invite was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:24 of +msgid "42 - Server invite was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:25 of +msgid "50 - Webhook was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:26 of +msgid "51 - Webhook properties or channel were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:27 of +msgid "52 - Webhook was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:28 of +msgid "60 - Emoji was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:29 of +msgid "61 - Emoji name was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:30 of +msgid "62 - Emoji was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:31 of +msgid "72 - Single message was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:32 of +msgid "73 - Multiple messages were deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:33 of +msgid "74 - Message was pinned to a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:34 of +msgid "75 - Message was unpinned from a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:35 of +msgid "80 - App was added to server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:36 of +msgid "81 - App was updated (as an example, its scopes were updated)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:37 of +msgid "82 - App was removed from server" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:38 of +msgid "83 - Stage instance was created (stage channel becomes live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:39 of +msgid "84 - Stage instance details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:40 of +msgid "85 - Stage instance was deleted (stage channel no longer live)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:41 of +msgid "90 - Sticker was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:42 of +msgid "91 - Sticker details were updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:43 of +msgid "92 - Sticker was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:44 of +msgid "100 - Event was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:45 of +msgid "101 - Event was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:46 of +msgid "102 - Event was cancelled" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:47 of +msgid "110 - Thread was created in a channel" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:48 of +msgid "111 - Thread was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:49 of +msgid "112 - Thread was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:50 of +msgid "121 - Permissions were updated for a command" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:51 of +msgid "140 - Auto Moderation rule was created" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:52 of +msgid "141 - Auto Moderation rule was updated" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:53 of +msgid "142 - Auto Moderation rule was deleted" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:54 of +msgid "143 - Message was blocked by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:55 of +msgid "144 - Message was flagged by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:56 of +msgid "145 - Member was timed out by AutoMod (according to a rule)" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents of +msgid "Member Type" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid ":py:class:`int`" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogEvents:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:1 of +msgid "A class object representing the audit logs of a guild." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:3 of +msgid "List of audit log entries, sorted from most to least recent." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:4 of +msgid "List of auto moderation rules referenced in the audit log." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:5 of +msgid "List of guild scheduled events referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:6 of +msgid "List of partial integration objects" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:7 of +msgid "List of threads referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:8 of +msgid "List of users referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogs:9 of +msgid "List of webhooks referenced in the audit log" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:1 of +msgid "A class object representing an AuditLogChange." +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:3 of +msgid "New value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:4 of +msgid "Old value of the key" +msgstr "" + +#: interactions.api.models.audit_log.AuditLogChange:5 of +msgid "" +"Name of the changed entity, with a few " +"[exceptions](https://discord.com/developers/docs/resources/audit-log" +"#audit-log-change-object-audit-log-change-exceptions)" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:1 of +msgid "A class object representing OptionalAuditEntryInfo." +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:3 of +msgid "" +"ID of the app whose permissions were targeted. ``AuditLogEvents``-type: " +"121" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:4 of +msgid "" +"Channel in which the entities were targeted. ``AuditLogEvents``-types: " +"26, 74, 75, 72, 83, 84, 85" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:5 of +msgid "" +"Name of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:6 of +msgid "" +"Trigger type of the Auto Moderation rule that was triggered. " +"``AuditLogEvents``-types: 143, 144, 145" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:7 of +msgid "" +"Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, " +"27, 26" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:8 of +msgid "" +"Number of days after which inactive members were kicked. " +"``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:9 of +msgid "ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:10 of +msgid "Number of members removed by the prune. ``AuditLogEvents``-types: 21" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:11 of +msgid "ID of the message that was targeted. ``AuditLogEvents``-types: 74, 75" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:12 of +msgid "" +"Name of the role if type is \"0\" (not present if type is \"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#: interactions.api.models.audit_log.OptionalAuditEntryInfo:13 of +msgid "" +"Type of overwritten entity - role (\"0\") or member (\"1\"). " +"``AuditLogEvents``-types: 13, 14, 15" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.channel.po b/docs/locale/ru/LC_MESSAGES/api.models.channel.po index 1ca5f1ac3..81a65bd8e 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.channel.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.channel.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.channel.rst:4 msgid "Channel Models" @@ -39,22 +39,24 @@ msgid "Valid values are as follows:" msgstr "" #: interactions.api.models.channel.Thread:1 of -msgid "An object representing a thread." -msgstr "" - -#: interactions.api.models.channel.Thread:4 of -msgid "" -"This is a derivation of the base Channel, since a thread can be its own " -"event." +msgid "An object representing a thread. .. note::" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator +#: interactions.api.models.channel.AsyncTypingContextManager #: interactions.api.models.channel.Channel #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: interactions.api.models.channel.Channel.get_history #: interactions.api.models.channel.Channel.get_message +#: interactions.api.models.channel.Channel.get_permissions_for +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.modify #: interactions.api.models.channel.Channel.pin_message @@ -72,6 +74,9 @@ msgstr "" #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit #: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit #: interactions.api.models.channel.Thread #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of @@ -88,7 +93,7 @@ msgid "" "needed to be used directly." msgstr "" -#: interactions.api.models.channel.Channel +#: interactions.api.models.channel.Channel interactions.api.models.channel.Tags #: interactions.api.models.channel.ThreadMember #: interactions.api.models.channel.ThreadMetadata of msgid "Variables" @@ -183,33 +188,64 @@ msgid "The amount of members in the channel." msgstr "" #: interactions.api.models.channel.Channel:29 of -msgid "The thread metadata of the channel." +msgid "Boolean representing if a thread is created." msgstr "" #: interactions.api.models.channel.Channel:30 of -msgid "The member of the thread in the channel." +msgid "The thread metadata of the channel." msgstr "" #: interactions.api.models.channel.Channel:31 of +msgid "The member of the thread in the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:32 of msgid "" "The set auto-archive time for all threads to naturally follow in the " "channel." msgstr "" -#: interactions.api.models.channel.Channel:32 of +#: interactions.api.models.channel.Channel:33 of msgid "The permissions of the channel." msgstr "" -#: interactions.api.models.channel.Channel.mention:1 of -msgid "Returns a string that allows you to mention the given channel." +#: interactions.api.models.channel.Channel:34 of +msgid "The flags of the channel." +msgstr "" + +#: interactions.api.models.channel.Channel:35 of +msgid "Number of messages ever sent in a thread." +msgstr "" + +#: interactions.api.models.channel.Channel:36 of +msgid "" +"The default slowmode delay in seconds for threads, if this channel is a " +"forum." +msgstr "" + +#: interactions.api.models.channel.Channel:37 of +msgid "Tags in a forum channel, if any." +msgstr "" + +#: interactions.api.models.channel.Channel:38 of +msgid "Default reaction emoji for threads created in a forum, if any." +msgstr "" + +#: interactions.api.models.channel.Channel.typing:1 of +msgid "Manages the typing of the channel. Use with `await` or `async with`" msgstr "" #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.lock #: interactions.api.models.channel.Channel.mention #: interactions.api.models.channel.Channel.modify @@ -224,24 +260,33 @@ 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.typing +#: interactions.api.models.channel.Tags.edit of msgid "Returns" msgstr "" -#: interactions.api.models.channel.Channel.mention:3 of -msgid "The string of the mentioned channel." +#: interactions.api.models.channel.Channel.typing:3 of +msgid "A manager for typing" msgstr "" +#: interactions.api.models.channel.AsyncHistoryIterator.flatten #: interactions.api.models.channel.Channel.add_member #: interactions.api.models.channel.Channel.archive +#: interactions.api.models.channel.Channel.create_forum_post #: interactions.api.models.channel.Channel.create_invite +#: interactions.api.models.channel.Channel.create_tag #: interactions.api.models.channel.Channel.create_thread #: interactions.api.models.channel.Channel.delete +#: interactions.api.models.channel.Channel.delete_tag +#: interactions.api.models.channel.Channel.edit_tag #: 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_permissions_for #: interactions.api.models.channel.Channel.get_pinned_messages #: interactions.api.models.channel.Channel.get_webhooks +#: interactions.api.models.channel.Channel.history #: interactions.api.models.channel.Channel.join #: interactions.api.models.channel.Channel.leave #: interactions.api.models.channel.Channel.lock @@ -261,10 +306,44 @@ msgstr "" #: interactions.api.models.channel.Channel.set_rate_limit_per_user #: interactions.api.models.channel.Channel.set_topic #: interactions.api.models.channel.Channel.set_user_limit -#: interactions.api.models.channel.Channel.unpin_message of +#: interactions.api.models.channel.Channel.typing +#: interactions.api.models.channel.Channel.unpin_message +#: interactions.api.models.channel.Tags.delete +#: interactions.api.models.channel.Tags.edit of msgid "Return type" msgstr "" +#: interactions.api.models.channel.Channel.mention:1 of +msgid "Returns a string that allows you to mention the given channel." +msgstr "" + +#: interactions.api.models.channel.Channel.mention:3 of +msgid "The string of the mentioned channel." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:7 +#: interactions.api.models.channel.Channel.history:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:9 +#: interactions.api.models.channel.Channel.history:3 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:13 +#: interactions.api.models.channel.Channel.history:5 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.channel.Channel.history:7 of +msgid "A custom check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.Channel.history:10 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" + #: interactions.api.models.channel.Channel.send:1 of msgid "Sends a message in the channel." msgstr "" @@ -292,7 +371,7 @@ msgid "An embed, or list of embeds for the message." msgstr "" #: interactions.api.models.channel.Channel.send:13 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.channel.Channel.send:15 of @@ -625,10 +704,12 @@ msgstr "" msgid "Creates a thread in the Channel." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:3 #: interactions.api.models.channel.Channel.create_thread:3 of msgid "The name of the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:5 #: interactions.api.models.channel.Channel.create_thread:5 of msgid "" "duration in minutes to automatically archive the thread after recent " @@ -649,6 +730,7 @@ msgstr "" msgid "An optional message to create a thread from." msgstr "" +#: interactions.api.models.channel.Channel.create_forum_post:16 #: interactions.api.models.channel.Channel.create_thread:14 of msgid "An optional reason for the audit log" msgstr "" @@ -734,6 +816,109 @@ msgstr "" msgid "Add the bot to the thread" msgstr "" +#: interactions.api.models.channel.Channel.create_tag:1 of +msgid "Create a new tag." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:4 +#: interactions.api.models.channel.Channel.edit_tag:4 +#: interactions.api.models.channel.Tags.edit:4 of +msgid "" +"Can either have an emoji_id or an emoji_name, but not both. emoji_id is " +"meant for custom emojis, emoji_name is meant for unicode emojis." +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:7 of +msgid "The name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:9 +#: interactions.api.models.channel.Channel.edit_tag:11 +#: interactions.api.models.channel.Tags.edit:11 of +msgid "The ID of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:11 +#: interactions.api.models.channel.Channel.edit_tag:13 +#: interactions.api.models.channel.Tags.edit:13 of +msgid "The name of the emoji to use for the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_tag:13 of +msgid "The create tag object" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:1 of +msgid "Edits a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:7 of +msgid "The ID of the tag to edit" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:9 +#: interactions.api.models.channel.Tags.edit:9 of +msgid "The new name of the tag" +msgstr "" + +#: interactions.api.models.channel.Channel.edit_tag:15 +#: interactions.api.models.channel.Tags.edit:15 of +msgid "The modified tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:1 of +msgid "Deletes a tag" +msgstr "" + +#: interactions.api.models.channel.Channel.delete_tag:3 of +msgid "The ID of the Tag" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:1 of +msgid "Creates a new post inside a forum channel" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:8 of +msgid "The content to send as first message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:10 of +msgid "Tags to give to the created thread" +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:12 of +msgid "An optional list of files to send attached to the message." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:14 of +msgid "" +"Seconds a user has to wait before sending another message (0 to 21600), " +"if given." +msgstr "" + +#: interactions.api.models.channel.Channel.create_forum_post:18 of +msgid "A channel of ChannelType 11 (THREAD)" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:1 of +msgid "Returns the permissions of the member in this specific channel." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:4 of +msgid "" +"The permissions returned by this function take into account role and user" +" overwrites that can be assigned to channels or categories. If you don't " +"need these overwrites, look into :meth:`.Member.get_guild_permissions`." +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:8 of +msgid "The member to get the permissions from" +msgstr "" + +#: interactions.api.models.channel.Channel.get_permissions_for:10 of +msgid "Permissions of the member in this channel" +msgstr "" + #: interactions.api.models.channel.ThreadMember:1 of msgid "A class object representing a member in a thread." msgstr "" @@ -793,3 +978,83 @@ msgstr "" #: interactions.api.models.channel.ThreadMetadata:11 of msgid "The ability to invite users to the thread." msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:3 +#: interactions.api.models.channel.AsyncTypingContextManager:5 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator:11 of +msgid "A check to ignore certain messages" +msgstr "" + +#: interactions.api.models.channel.AsyncHistoryIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:1 of +msgid "An async context manager for triggering typing." +msgstr "" + +#: interactions.api.models.channel.AsyncTypingContextManager:3 of +msgid "The channel to trigger typing in." +msgstr "" + +#: interactions.api.models.channel.Tags:1 of +msgid "An object denoting a tag object within a forum channel." +msgstr "" + +#: interactions.api.models.channel.Tags:4 of +msgid "If the emoji is custom, it won't have name information." +msgstr "" + +#: interactions.api.models.channel.Tags:6 of +msgid "Name of the tag. The limit is up to 20 characters." +msgstr "" + +#: interactions.api.models.channel.Tags:7 of +msgid "ID of the tag. Can also be 0 if manually created." +msgstr "" + +#: interactions.api.models.channel.Tags:8 of +msgid "" +"A boolean denoting whether this tag can be removed/added by moderators " +"with ``manage_threads`` permissions." +msgstr "" + +#: interactions.api.models.channel.Tags:9 of +msgid "The emoji to represent the tag, if any." +msgstr "" + +#: interactions.api.models.channel.Tags.delete:1 of +msgid "Deletes this tag" +msgstr "" + +#: interactions.api.models.channel.Tags.delete:3 +#: interactions.api.models.channel.Tags.edit:7 of +msgid "The ID of the channel where the tag belongs to" +msgstr "" + +#: interactions.api.models.channel.Tags.edit:1 of +msgid "Edits this tag" +msgstr "" + +#~ msgid "An object representing a thread." +#~ msgstr "" + +#~ msgid "" +#~ "This is a derivation of the base" +#~ " Channel, since a thread can be " +#~ "its own event." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.emoji.po b/docs/locale/ru/LC_MESSAGES/api.models.emoji.po new file mode 100644 index 000000000..2809ce66e --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/api.models.emoji.po @@ -0,0 +1,139 @@ +# 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-09-29 13:24-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.10.3\n" + +#: ../../api.models.emoji.rst:4 +msgid "Emoji Models" +msgstr "" + +#: interactions.api.models.emoji.Emoji:1 of +msgid "A class objecting representing an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji of +msgid "Variables" +msgstr "" + +#: interactions.api.models.emoji.Emoji:3 of +msgid "Emoji id" +msgstr "" + +#: interactions.api.models.emoji.Emoji:4 of +msgid "Emoji name." +msgstr "" + +#: interactions.api.models.emoji.Emoji:5 of +msgid "Roles allowed to use this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:6 of +msgid "User that created this emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji:7 of +msgid "Status denoting of this emoji must be wrapped in colons" +msgstr "" + +#: interactions.api.models.emoji.Emoji:8 of +msgid "Status denoting if this emoji is managed (by an integration)" +msgstr "" + +#: interactions.api.models.emoji.Emoji:9 of +msgid "Status denoting if this emoji is animated" +msgstr "" + +#: interactions.api.models.emoji.Emoji:10 of +msgid "" +"Status denoting if this emoji can be used. (Can be false via server " +"boosting)" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:1 of +msgid "Gets an emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild of +msgid "Parameters" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:3 of +msgid "The id of the guild of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:5 of +msgid "The id of the emoji" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:7 +#: interactions.api.models.emoji.Emoji.get_all_of_guild:5 of +msgid "The HTTPClient of your bot. Equals to ``bot._http``" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Returns" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get:9 of +msgid "The Emoji as object" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get +#: interactions.api.models.emoji.Emoji.get_all_of_guild +#: interactions.api.models.emoji.Emoji.url of +msgid "Return type" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:1 of +msgid "Gets all emoji of a guild." +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:3 of +msgid "The id of the guild to get the emojis of" +msgstr "" + +#: interactions.api.models.emoji.Emoji.get_all_of_guild:7 of +msgid "The Emoji as list" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:1 of +msgid "Deletes the emoji." +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:3 of +msgid "The guild id to delete the emoji from" +msgstr "" + +#: interactions.api.models.emoji.Emoji.delete:5 of +msgid "The reason of the deletion" +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:1 of +msgid "Returns the emoji's URL." +msgstr "" + +#: interactions.api.models.emoji.Emoji.url:3 of +msgid "URL of the emoji" +msgstr "" + +#~ msgid "Audit-Log Models" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.guild.po b/docs/locale/ru/LC_MESSAGES/api.models.guild.po index a233b694b..6a195d3a5 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.guild.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.guild.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:25-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.guild.rst:4 msgid "Guild Models" @@ -85,6 +85,7 @@ msgstr "" msgid "The location of the event, if any." msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator #: interactions.api.models.guild.EventMetadata #: interactions.api.models.guild.Guild #: interactions.api.models.guild.Guild.add_member_role @@ -95,17 +96,25 @@ msgstr "" #: 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_sticker #: 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.delete_sticker +#: interactions.api.models.guild.Guild.get_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule @@ -115,6 +124,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -672,13 +683,26 @@ msgid "The id of the member to ban" msgstr "" #: interactions.api.models.guild.Guild.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.guild.Guild.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.guild.Guild.ban:13 of +msgid "The reason of the ban" msgstr "" +#: interactions.api.models.guild.AsyncMembersIterator.flatten #: interactions.api.models.guild.Guild.add_member_role #: interactions.api.models.guild.Guild.ban #: interactions.api.models.guild.Guild.clone_channel @@ -687,6 +711,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.delete_channel #: interactions.api.models.guild.Guild.delete_emoji @@ -698,13 +723,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.kick #: interactions.api.models.guild.Guild.leave #: interactions.api.models.guild.Guild.list_auto_moderation_rules @@ -716,6 +749,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.remove_ban #: interactions.api.models.guild.Guild.remove_member_role #: interactions.api.models.guild.Guild.search_members @@ -840,6 +875,7 @@ msgstr "" #: 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_sticker #: interactions.api.models.guild.Guild.create_thread #: interactions.api.models.guild.Guild.get_all_active_threads #: interactions.api.models.guild.Guild.get_all_bans @@ -847,13 +883,21 @@ msgstr "" #: 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_audit_logs #: 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_full_audit_logs +#: interactions.api.models.guild.Guild.get_latest_audit_log_action #: interactions.api.models.guild.Guild.get_list_of_members #: interactions.api.models.guild.Guild.get_member +#: interactions.api.models.guild.Guild.get_members +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs #: interactions.api.models.guild.Guild.get_preview +#: interactions.api.models.guild.Guild.get_prune_count #: interactions.api.models.guild.Guild.get_role +#: interactions.api.models.guild.Guild.get_scheduled_events +#: interactions.api.models.guild.Guild.get_stickers #: interactions.api.models.guild.Guild.modify #: interactions.api.models.guild.Guild.modify_auto_moderation_rule #: interactions.api.models.guild.Guild.modify_channel @@ -862,6 +906,8 @@ msgstr "" #: 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.modify_sticker +#: interactions.api.models.guild.Guild.prune #: interactions.api.models.guild.Guild.search_members of msgid "Returns" msgstr "" @@ -1508,6 +1554,20 @@ msgstr "" msgid "The created event" msgstr "" +#: interactions.api.models.guild.Guild.get_scheduled_events:1 of +msgid "Gets all scheduled events of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:3 of +msgid "" +"A boolean to include number of users subscribed to the associated event, " +"if given." +msgstr "" + +#: interactions.api.models.guild.Guild.get_scheduled_events:5 of +msgid "The sheduled events of the guild." +msgstr "" + #: interactions.api.models.guild.Guild.modify_scheduled_event:1 of msgid "Edits a scheduled event of the guild." msgstr "" @@ -1614,6 +1674,40 @@ msgstr "" msgid "Gets all bans of the guild." msgstr "" +#: interactions.api.models.guild.Guild.prune:1 of +msgid "Begins a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:3 +#: interactions.api.models.guild.Guild.prune:3 of +msgid "Number of days to count, minimum 1, maximum 30. Defaults to 7." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:4 of +msgid "" +"Whether the returned \"pruned\" dict contains the computed prune count or" +" None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:4 +#: interactions.api.models.guild.Guild.prune:5 of +msgid "Role IDs to include, if given." +msgstr "" + +#: interactions.api.models.guild.Guild.prune:6 of +msgid "" +"The number of pruned members, if compute_prune_count is not false. " +"Otherwise returns None." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:1 of +msgid "Returns the number of members that would be removed in a prune operation." +msgstr "" + +#: interactions.api.models.guild.Guild.get_prune_count:5 of +msgid "The number of members that would be pruned." +msgstr "" + #: interactions.api.models.guild.Guild.get_emoji:1 of msgid "Gets an emoji of the guild and returns it." msgstr "" @@ -1664,6 +1758,77 @@ msgstr "" msgid "The emoji or the id of the emoji to delete" msgstr "" +#: interactions.api.models.guild.Guild.get_stickers:1 of +msgid "Get the stickers for a guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_stickers:3 of +msgid "List of stickers of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:1 of +msgid "Gets the list of sticker packs available to Nitro subscribers." +msgstr "" + +#: interactions.api.models.guild.Guild.get_nitro_sticker_packs:3 of +msgid "List of sticker packs." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:1 of +msgid "Creates a new sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:3 of +msgid "The file of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:5 of +msgid "The tags of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:7 +#: interactions.api.models.guild.Guild.modify_sticker:5 of +msgid "The name of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:9 +#: interactions.api.models.guild.Guild.modify_sticker:7 of +msgid "The description of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:11 of +msgid "The reason of the creation." +msgstr "" + +#: interactions.api.models.guild.Guild.create_sticker:13 of +msgid "Created sticker for the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:1 of +msgid "Modifies the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:3 +#: interactions.api.models.guild.Guild.modify_sticker:3 of +msgid "The sticker or ID of the sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:9 of +msgid "The reason of the modification." +msgstr "" + +#: interactions.api.models.guild.Guild.modify_sticker:11 of +msgid "Modified sticker." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:1 of +msgid "Deletes the sticker of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.delete_sticker:5 of +msgid "The reason of the deletion." +msgstr "" + #: interactions.api.models.guild.Guild.get_list_of_members:1 of msgid "Lists the members of a guild." msgstr "" @@ -1710,6 +1875,23 @@ msgstr "" msgid "Returns a list of all members of the guild" msgstr "" +#: interactions.api.models.guild.Guild.get_members:1 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:11 +#: interactions.api.models.guild.Guild.get_members:3 of +msgid "A set maximum of members to get before stopping the iteration" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:5 of +msgid "A custom check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.Guild.get_members:8 of +msgid "An asynchronous iterator over the members of the guild" +msgstr "" + #: interactions.api.models.guild.Guild.list_auto_moderation_rules:1 of msgid "Lists all AutoMod rules" msgstr "" @@ -1784,6 +1966,55 @@ msgstr "" msgid "The rule to modify" msgstr "" +#: interactions.api.models.guild.Guild.get_audit_logs:1 of +msgid "Gets the audit logs of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:3 of +msgid "How many entries to get, default 100" +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:5 +#: interactions.api.models.guild.Guild.get_full_audit_logs:3 of +msgid "User ID snowflake. filter the log for actions made by a user." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:7 of +msgid "The Type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:9 of +msgid "filter the log before a certain entry id." +msgstr "" + +#: interactions.api.models.guild.Guild.get_audit_logs:11 of +msgid "The guild audit logs" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:1 of +msgid "Gets the latest audit log action of either a user or an action type" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:3 of +msgid "The user, user id or action type to look for" +msgstr "" + +#: interactions.api.models.guild.Guild.get_latest_audit_log_action:5 of +msgid "The latest AuditLog action that applies to the ``of`` parameter" +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:1 of +msgid "Gets the full audit log of the guild." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:5 of +msgid "The type of the audit log action." +msgstr "" + +#: interactions.api.models.guild.Guild.get_full_audit_logs:7 of +msgid "The full AuditLog of the guild" +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 " @@ -1897,3 +2128,32 @@ msgstr "" #: interactions.api.models.guild.Invite.delete:1 of msgid "Deletes the invite" msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:1 of +msgid "A class object that allows iterating through a channel's history." +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:3 of +msgid "The HTTPClient of the bot" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:5 of +msgid "The guild to get the members from" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:7 of +msgid "" +"The member ID to start getting members from (gets all members after that " +"member)" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator:9 of +msgid "A check to ignore certain members" +msgstr "" + +#: interactions.api.models.guild.AsyncMembersIterator.flatten:1 of +msgid "returns all remaining items as list" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.gw.po b/docs/locale/ru/LC_MESSAGES/api.models.gw.po index fe823c232..88a920629 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.gw.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.gw.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.gw.rst:4 msgid "Gateway-specific Event Models" @@ -42,10 +42,10 @@ msgstr "" #: interactions.api.models.gw.GuildScheduledEventUser #: interactions.api.models.gw.GuildStickers #: interactions.api.models.gw.Integration +#: interactions.api.models.gw.MessageDelete #: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList +#: interactions.api.models.gw.MessageReactionRemove +#: interactions.api.models.gw.Presence interactions.api.models.gw.ThreadList #: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks #: of msgid "Variables" @@ -93,36 +93,6 @@ msgstr "" msgid "The substring in content that triggered rule." msgstr "" -#: interactions.api.models.gw.ApplicationCommandPermissions -#: interactions.api.models.gw.AutoModerationAction -#: interactions.api.models.gw.AutoModerationRule -#: interactions.api.models.gw.ChannelPins -#: interactions.api.models.gw.EmbeddedActivity -#: interactions.api.models.gw.GuildBan interactions.api.models.gw.GuildEmojis -#: interactions.api.models.gw.GuildIntegrations -#: interactions.api.models.gw.GuildJoinRequest -#: interactions.api.models.gw.GuildMember -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send -#: interactions.api.models.gw.GuildMembers interactions.api.models.gw.GuildRole -#: interactions.api.models.gw.GuildScheduledEvent -#: interactions.api.models.gw.GuildScheduledEventUser -#: interactions.api.models.gw.GuildStickers -#: interactions.api.models.gw.Integration -#: interactions.api.models.gw.MessageReaction -#: interactions.api.models.gw.Presence -#: interactions.api.models.gw.ReactionRemove -#: interactions.api.models.gw.ThreadList -#: interactions.api.models.gw.ThreadMembers interactions.api.models.gw.Webhooks -#: of -msgid "Parameters" -msgstr "" - #: interactions.api.models.gw.AutoModerationRule:1 of msgid "" "A class object representing the gateway events " @@ -232,14 +202,14 @@ msgstr "" #: interactions.api.models.gw.GuildEmojis:3 #: interactions.api.models.gw.GuildIntegrations:3 #: interactions.api.models.gw.GuildJoinRequest:7 -#: interactions.api.models.gw.GuildMember:3 #: interactions.api.models.gw.GuildMembers:3 #: interactions.api.models.gw.GuildRole:3 #: interactions.api.models.gw.GuildStickers:3 #: interactions.api.models.gw.Integration:23 +#: interactions.api.models.gw.MessageDelete:5 #: interactions.api.models.gw.MessageReaction:6 +#: interactions.api.models.gw.MessageReactionRemove:10 #: interactions.api.models.gw.Presence:4 -#: interactions.api.models.gw.ReactionRemove:10 #: interactions.api.models.gw.ThreadList:3 #: interactions.api.models.gw.ThreadMembers:4 of msgid "The guild ID of the event." @@ -251,8 +221,9 @@ msgstr "" #: interactions.api.models.gw.ChannelPins:4 #: interactions.api.models.gw.EmbeddedActivity:9 +#: interactions.api.models.gw.MessageDelete:4 #: interactions.api.models.gw.MessageReaction:4 -#: interactions.api.models.gw.ReactionRemove:8 of +#: interactions.api.models.gw.MessageReactionRemove:8 of msgid "The channel ID of the event." msgstr "" @@ -312,7 +283,6 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildBan:4 -#: interactions.api.models.gw.GuildMember:5 #: interactions.api.models.gw.Integration:17 #: interactions.api.models.gw.Presence:3 of msgid "The user of the event." @@ -378,14 +348,21 @@ msgstr "" msgid "The members of the thread of the event." msgstr "" -#: interactions.api.models.gw.ReactionRemove:1 of +#: interactions.api.models.gw.MessageDelete:1 of +msgid "A class object representing the gateway event ``MESSAGE_DELETE_BULK``." +msgstr "" + +#: interactions.api.models.gw.MessageDelete:3 of +msgid "The message IDs of the event." +msgstr "" + +#: interactions.api.models.gw.MessageReactionRemove:1 of msgid "" "A class object representing the gateway events " -"``MESSAGE_REACTION_REMOVE``, ``MESSAGE_REACTION_REMOVE_ALL`` and " -"``MESSAGE_REACTION_REMOVE_EMOJI``." +"``MESSAGE_REACTION_REMOVE_ALL`` and ``MESSAGE_REACTION_REMOVE_EMOJI``." msgstr "" -#: interactions.api.models.gw.ReactionRemove:4 of +#: interactions.api.models.gw.MessageReactionRemove:4 of msgid "" "This class inherits the already existing attributes of " ":class:`interactions.api.models.gw.Reaction`. The main missing attribute " @@ -394,22 +371,24 @@ msgstr "" #: interactions.api.models.gw.GuildJoinRequest:6 #: interactions.api.models.gw.MessageReaction:3 -#: interactions.api.models.gw.ReactionRemove:7 of +#: interactions.api.models.gw.MessageReactionRemove:7 of msgid "The user ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:5 -#: interactions.api.models.gw.ReactionRemove:9 of +#: interactions.api.models.gw.MessageReactionRemove:9 of msgid "The message ID of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:8 -#: interactions.api.models.gw.ReactionRemove:11 of +#: interactions.api.models.gw.MessageReactionRemove:11 of msgid "The emoji of the event." msgstr "" #: interactions.api.models.gw.MessageReaction:1 of -msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +msgid "" +"A class object representing the gateway event ``MESSAGE_REACTION_ADD`` " +"and ``MESSAGE_REACTION_REMOVE``." msgstr "" #: interactions.api.models.gw.MessageReaction:7 of @@ -473,204 +452,58 @@ msgid "" msgstr "" #: interactions.api.models.gw.GuildMember:4 of -msgid "The roles of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:6 of -msgid "The nickname of the user of the event." -msgstr "" - -#: interactions.api.models.gw.GuildMember:7 of -msgid "The avatar URL of the user of the event." +msgid "" +"``pending`` and ``permissions`` only apply for members retroactively " +"requiring to verify rules via. membership screening or lack permissions " +"to speak." msgstr "" #: interactions.api.models.gw.GuildMember:8 of -msgid "The time that the user of the event joined at." +msgid "The guild ID." msgstr "" #: interactions.api.models.gw.GuildMember:9 of -msgid "The time that the user of the event has since had \"premium.\"" +msgid "The user of the guild." msgstr "" #: interactions.api.models.gw.GuildMember:10 of -msgid "Whether the member of the event is deafened or not." +msgid "The nickname of the member." msgstr "" #: interactions.api.models.gw.GuildMember:11 of -msgid "Whether the member of the event is muted or not." +msgid "The hash containing the user's guild avatar, if applicable." msgstr "" #: interactions.api.models.gw.GuildMember:12 of -msgid "" -"Whether the member of the event is still pending -- pass membership " -"screening -- or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:1 of -msgid "Returns the ID of the user." -msgstr "" - -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.send of -msgid "Returns" -msgstr "" - -#: interactions.api.models.gw.GuildMember.id:3 of -msgid "The ID of the user" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role -#: interactions.api.models.gw.GuildMember.add_to_thread -#: interactions.api.models.gw.GuildMember.ban -#: interactions.api.models.gw.GuildMember.id -#: interactions.api.models.gw.GuildMember.kick -#: interactions.api.models.gw.GuildMember.mention -#: interactions.api.models.gw.GuildMember.modify -#: interactions.api.models.gw.GuildMember.name -#: interactions.api.models.gw.GuildMember.remove_role -#: interactions.api.models.gw.GuildMember.send of -msgid "Return type" -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:1 of -msgid "Returns the string of either the user's nickname or username." -msgstr "" - -#: interactions.api.models.gw.GuildMember.name:3 of -msgid "The name of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:1 of -msgid "Returns a string that allows you to mention the given member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.mention:3 of -msgid "The string of the mentioned member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:1 of -msgid "Bans the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:3 of -msgid "The reason of the ban" -msgstr "" - -#: interactions.api.models.gw.GuildMember.ban:5 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:1 of -msgid "Kicks the member from a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.kick:3 of -msgid "The reason for the kick" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:1 of -msgid "This method adds a role to a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:3 of -msgid "The role to add. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_role:5 of -msgid "The reason why the roles are added" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:1 of -msgid "This method removes a role from a member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:3 of -msgid "The role to remove. Either ``Role`` object or role_id" -msgstr "" - -#: interactions.api.models.gw.GuildMember.remove_role:5 of -msgid "The reason why the roles are removed" -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:1 of -msgid "Sends a DM to the member." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:3 of -msgid "The contents of the message as a string or string-converted value." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:5 of -msgid "A component, or list of components for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:7 of -msgid "Whether the message utilizes the text-to-speech Discord programme or not." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:9 of -msgid "A file or list of files to be attached to the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:11 of -msgid "An embed, or list of embeds for the message." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:13 of -msgid "The message interactions/mention limits that the message can refer to." -msgstr "" - -#: interactions.api.models.gw.GuildMember.send:15 of -msgid "The sent message as an object." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:1 of -msgid "Modifies the member of a guild." -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:3 of -msgid "The nickname of the member" -msgstr "" - -#: interactions.api.models.gw.GuildMember.modify:5 of -msgid "A list of all role ids the member has" +msgid "The list of roles of the member." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:7 of -msgid "whether the user is muted in voice channels" +#: interactions.api.models.gw.GuildMember:13 of +msgid "The timestamp the member joined the guild at." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:9 of -msgid "whether the user is deafened in voice channels" +#: interactions.api.models.gw.GuildMember:14 of +msgid "The timestamp the member has been a server booster since." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:11 of -msgid "id of channel to move user to (if they are connected to voice)" +#: interactions.api.models.gw.GuildMember:15 of +msgid "Whether the member is deafened." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:13 of -msgid "" -"when the user's timeout will expire and the user will be able to " -"communicate in the guild again (up to 28 days in the future)" +#: interactions.api.models.gw.GuildMember:16 of +msgid "Whether the member is muted." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:15 of -msgid "The reason of the modifying" +#: interactions.api.models.gw.GuildMember:17 of +msgid "Whether the member is pending to pass membership screening." msgstr "" -#: interactions.api.models.gw.GuildMember.modify:17 of -msgid "The modified member object" +#: interactions.api.models.gw.GuildMember:18 of +msgid "Whether the member has permissions." msgstr "" -#: interactions.api.models.gw.GuildMember.add_to_thread:1 of -msgid "Adds the member to a thread." -msgstr "" - -#: interactions.api.models.gw.GuildMember.add_to_thread:3 of -msgid "The id of the thread to add the member to" +#: interactions.api.models.gw.GuildMember:19 of +msgid "How long until they're unmuted, if any." msgstr "" #: interactions.api.models.gw.GuildStickers:1 of @@ -823,3 +656,164 @@ msgstr "" #: interactions.api.models.gw.GuildRole:5 of msgid "The role ID of the event." msgstr "" + +#~ msgid "" +#~ "A class object representing the gateway" +#~ " events ``MESSAGE_REACTION_REMOVE``, " +#~ "``MESSAGE_REACTION_REMOVE_ALL`` and " +#~ "``MESSAGE_REACTION_REMOVE_EMOJI``." +#~ msgstr "" + +#~ msgid "A class object representing the gateway event ``MESSAGE_REACTION_ADD``." +#~ msgstr "" + +#~ msgid "The roles of the event." +#~ msgstr "" + +#~ msgid "The nickname of the user of the event." +#~ msgstr "" + +#~ msgid "The avatar URL of the user of the event." +#~ msgstr "" + +#~ msgid "The time that the user of the event joined at." +#~ msgstr "" + +#~ msgid "The time that the user of the event has since had \"premium.\"" +#~ msgstr "" + +#~ msgid "Whether the member of the event is deafened or not." +#~ msgstr "" + +#~ msgid "Whether the member of the event is muted or not." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the member of the event is" +#~ " still pending -- pass membership " +#~ "screening -- or not." +#~ msgstr "" + +#~ msgid "Returns the ID of the user." +#~ msgstr "" + +#~ msgid "Returns" +#~ msgstr "" + +#~ msgid "The ID of the user" +#~ msgstr "" + +#~ msgid "Return type" +#~ msgstr "" + +#~ msgid "Returns the string of either the user's nickname or username." +#~ msgstr "" + +#~ msgid "The name of the member" +#~ msgstr "" + +#~ msgid "Returns a string that allows you to mention the given member." +#~ msgstr "" + +#~ msgid "The string of the mentioned member." +#~ msgstr "" + +#~ msgid "Bans the member from a guild." +#~ msgstr "" + +#~ msgid "The reason of the ban" +#~ msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "Kicks the member from a guild." +#~ msgstr "" + +#~ msgid "The reason for the kick" +#~ msgstr "" + +#~ msgid "This method adds a role to a member." +#~ msgstr "" + +#~ msgid "The role to add. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are added" +#~ msgstr "" + +#~ msgid "This method removes a role from a member." +#~ msgstr "" + +#~ msgid "The role to remove. Either ``Role`` object or role_id" +#~ msgstr "" + +#~ msgid "The reason why the roles are removed" +#~ msgstr "" + +#~ msgid "Sends a DM to the member." +#~ msgstr "" + +#~ msgid "The contents of the message as a string or string-converted value." +#~ msgstr "" + +#~ msgid "A component, or list of components for the message." +#~ msgstr "" + +#~ msgid "" +#~ "Whether the message utilizes the " +#~ "text-to-speech Discord programme or " +#~ "not." +#~ msgstr "" + +#~ msgid "A file or list of files to be attached to the message." +#~ msgstr "" + +#~ msgid "An embed, or list of embeds for the message." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The sent message as an object." +#~ msgstr "" + +#~ msgid "Modifies the member of a guild." +#~ msgstr "" + +#~ msgid "The nickname of the member" +#~ msgstr "" + +#~ msgid "A list of all role ids the member has" +#~ msgstr "" + +#~ msgid "whether the user is muted in voice channels" +#~ msgstr "" + +#~ msgid "whether the user is deafened in voice channels" +#~ msgstr "" + +#~ msgid "id of channel to move user to (if they are connected to voice)" +#~ msgstr "" + +#~ msgid "" +#~ "when the user's timeout will expire " +#~ "and the user will be able to " +#~ "communicate in the guild again (up " +#~ "to 28 days in the future)" +#~ msgstr "" + +#~ msgid "The reason of the modifying" +#~ msgstr "" + +#~ msgid "The modified member object" +#~ msgstr "" + +#~ msgid "Adds the member to a thread." +#~ msgstr "" + +#~ msgid "The id of the thread to add the member to" +#~ msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.member.po b/docs/locale/ru/LC_MESSAGES/api.models.member.po index ce23f99ac..f5839f391 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.member.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.member.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.member.rst:4 msgid "Member Models" @@ -86,6 +86,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.modify #: interactions.api.models.member.Member.remove_role @@ -93,10 +95,20 @@ msgstr "" msgid "Parameters" msgstr "" +#: interactions.api.models.member.Member.guild_id:1 of +msgid "" +"Attempts to get the guild ID the member is in. Only works then roles or " +"nick or joined at is present. :return: The ID of the guild this member " +"belongs to." +msgstr "" + #: interactions.api.models.member.Member.id:1 of msgid "Returns the ID of the user." msgstr "" +#: interactions.api.models.member.Member.get_avatar_url +#: interactions.api.models.member.Member.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.mention #: interactions.api.models.member.Member.modify @@ -113,6 +125,8 @@ msgstr "" #: 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.get_guild_permissions +#: interactions.api.models.member.Member.has_permissions #: interactions.api.models.member.Member.id #: interactions.api.models.member.Member.kick #: interactions.api.models.member.Member.mention @@ -148,11 +162,23 @@ msgid "The id of the guild to ban the member from" msgstr "" #: interactions.api.models.member.Member.ban:5 of -msgid "The reason of the ban" +msgid "Number of seconds to delete messages, from 0 to 604800. Defaults to 0" msgstr "" #: interactions.api.models.member.Member.ban:7 of -msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +msgid "Number of minutes to delete messages, from 0 to 10080" +msgstr "" + +#: interactions.api.models.member.Member.ban:9 of +msgid "Number of hours to delete messages, from 0 to 168" +msgstr "" + +#: interactions.api.models.member.Member.ban:11 of +msgid "Number of days to delete messages, from 0 to 7" +msgstr "" + +#: interactions.api.models.member.Member.ban:13 of +msgid "The reason of the ban" msgstr "" #: interactions.api.models.member.Member.kick:1 of @@ -230,7 +256,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.member.Member.send:17 of @@ -288,9 +314,83 @@ msgid "The id of the thread to add the member to" msgstr "" #: interactions.api.models.member.Member.get_avatar_url:1 of +msgid "Returns the URL of the member's avatar for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:3 of +msgid "The id of the guild to get the member's avatar from" +msgstr "" + +#: interactions.api.models.member.Member.get_avatar_url:5 of +msgid "URL of the members's avatar (None will be returned if no avatar is set)" +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:1 of +msgid "Returns the permissions of the member for the specified guild." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:4 of msgid "" -"Returns the URL of the member's avatar for the specified guild. :param " -"guild_id: The id of the guild to get the member's avatar from :type " -"guild_id: Union[int, Snowflake, \"Guild\"] :return: URL of the members's " -"avatar (None will be returned if no avatar is set) :rtype: str" +"The permissions returned by this function will not take into account role" +" and user overwrites that can be assigned to channels or categories. If " +"you need these overwrites, look into " +":meth:`.Channel.get_permissions_for`." +msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:8 of +msgid "The guild of the member" msgstr "" + +#: interactions.api.models.member.Member.get_guild_permissions:10 of +msgid "Base permissions of the member in the specified guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:1 of +msgid "Returns whether the member has the permissions passed." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:4 of +msgid "" +"If the channel argument is present, the function will look if the member " +"has the permissions in the specified channel. If the argument is missing," +" then it will only consider the member's guild permissions." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:7 of +msgid "The list of permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:9 of +msgid "The channel where to check for permissions" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:11 of +msgid "The id of the guild" +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:13 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.api.models.member.Member.has_permissions:15 of +msgid "Whether the member has the permissions" +msgstr "" + +#~ msgid "Number of days to delete messages, from 0 to 7. Defaults to 0" +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ 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: Union[int, Snowflake, " +#~ "\"Guild\"] :return: URL of the members's" +#~ " avatar (None will be returned if " +#~ "no avatar is set) :rtype: str" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.message.po b/docs/locale/ru/LC_MESSAGES/api.models.message.po index 5bcd77f9c..e1f033a87 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.message.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.message.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.message.rst:4 msgid "Message Models" @@ -50,14 +50,14 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji #: interactions.api.models.message.Message #: interactions.api.models.message.MessageActivity #: interactions.api.models.message.MessageInteraction #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Variables" msgstr "" @@ -156,33 +156,33 @@ msgid "" msgstr "" #: interactions.api.models.message.Message:26 of -msgid "The allowed mentions of roles attached in the message." -msgstr "" - -#: interactions.api.models.message.Message:27 of msgid "Message flags" msgstr "" -#: interactions.api.models.message.Message:28 of +#: interactions.api.models.message.Message:27 of msgid "Message interaction object, if the message is sent by an interaction." msgstr "" -#: interactions.api.models.message.Message:29 of +#: interactions.api.models.message.Message:28 of msgid "" "The thread that started from this message, if any, with a thread member " "object embedded." msgstr "" +#: interactions.api.models.message.Message:29 of +msgid "Array of Action Rows associated with this message, if any." +msgstr "" + #: interactions.api.models.message.Message:30 of -msgid "Components associated with this message, if any." +msgid "An array of message sticker item objects, if sent with them." msgstr "" #: interactions.api.models.message.Message:31 of -msgid "An array of message sticker item objects, if sent with them." +msgid "Array of sticker objects sent with the message if any. Deprecated." msgstr "" #: interactions.api.models.message.Message:32 of -msgid "Array of sticker objects sent with the message if any. Deprecated." +msgid "The approximate position of the message in a thread." msgstr "" #: interactions.api.models.message.Attachment @@ -202,10 +202,6 @@ msgstr "" #: interactions.api.models.message.EmbedFooter #: interactions.api.models.message.EmbedImageStruct #: interactions.api.models.message.EmbedProvider -#: interactions.api.models.message.Emoji -#: interactions.api.models.message.Emoji.delete -#: interactions.api.models.message.Emoji.get -#: interactions.api.models.message.Emoji.get_all_of_guild #: interactions.api.models.message.Message #: interactions.api.models.message.Message.create_reaction #: interactions.api.models.message.Message.create_thread @@ -222,7 +218,8 @@ msgstr "" #: interactions.api.models.message.MessageReference #: interactions.api.models.message.PartialSticker #: interactions.api.models.message.ReactionObject -#: interactions.api.models.message.Sticker of +#: interactions.api.models.message.Sticker +#: interactions.api.models.message.StickerPack of msgid "Parameters" msgstr "" @@ -230,6 +227,7 @@ msgstr "" msgid "Gets the channel where the message was sent." msgstr "" +#: interactions.api.models.message.Attachment.download #: interactions.api.models.message.Embed.add_field #: interactions.api.models.message.Embed.clear_fields #: interactions.api.models.message.Embed.insert_field_at @@ -241,13 +239,10 @@ msgstr "" #: interactions.api.models.message.Embed.set_image #: interactions.api.models.message.Embed.set_thumbnail #: interactions.api.models.message.Embed.set_video -#: interactions.api.models.message.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.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_channel #: interactions.api.models.message.Message.get_from_url @@ -307,7 +302,7 @@ 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." +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.message.Message.edit:15 @@ -323,10 +318,9 @@ msgid "" "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.Attachment.download #: interactions.api.models.message.Message.create_thread +#: interactions.api.models.message.Message.disable_all_components #: interactions.api.models.message.Message.edit #: interactions.api.models.message.Message.get_from_url #: interactions.api.models.message.Message.get_users_from_reaction @@ -466,6 +460,14 @@ msgstr "" msgid "The URL of said message" msgstr "" +#: interactions.api.models.message.Message.disable_all_components:1 of +msgid "Sets all components to disabled on this message." +msgstr "" + +#: interactions.api.models.message.Message.disable_all_components:3 of +msgid "The modified message." +msgstr "" + #: interactions.api.models.message.MessageReference:1 of msgid "A class object representing the \"referenced\"/replied message." msgstr "" @@ -654,20 +656,26 @@ msgstr "" msgid "Inserts a field in the embed at the specified index" msgstr "" -#: interactions.api.models.message.Embed.insert_field_at:3 -#: interactions.api.models.message.Embed.remove_field:3 -#: interactions.api.models.message.Embed.set_field_at:3 of -msgid "The new field's index" +#: interactions.api.models.message.Embed.insert_field_at:3 of +msgid "The field's index to insert" msgstr "" #: interactions.api.models.message.Embed.set_field_at:1 of msgid "Overwrites the field in the embed at the specified index" msgstr "" +#: interactions.api.models.message.Embed.set_field_at:3 of +msgid "The field's index to overwrite" +msgstr "" + #: interactions.api.models.message.Embed.remove_field:1 of msgid "Remove field at the specified index" msgstr "" +#: interactions.api.models.message.Embed.remove_field:3 of +msgid "The field's index to remove" +msgstr "" + #: interactions.api.models.message.Embed.remove_author:1 of msgid "Removes the embed's author" msgstr "" @@ -906,95 +914,12 @@ msgstr "" msgid "Whether the attachment is ephemeral." msgstr "" -#: interactions.api.models.message.Emoji:1 of -msgid "A class objecting representing an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji:3 of -msgid "Emoji id" -msgstr "" - -#: interactions.api.models.message.Emoji:4 of -msgid "Emoji name." -msgstr "" - -#: interactions.api.models.message.Emoji:5 of -msgid "Roles allowed to use this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:6 of -msgid "User that created this emoji" -msgstr "" - -#: interactions.api.models.message.Emoji:7 of -msgid "Status denoting of this emoji must be wrapped in colons" -msgstr "" - -#: interactions.api.models.message.Emoji:8 of -msgid "Status denoting if this emoji is managed (by an integration)" -msgstr "" - -#: interactions.api.models.message.Emoji:9 of -msgid "Status denoting if this emoji is animated" -msgstr "" - -#: interactions.api.models.message.Emoji:10 of -msgid "" -"Status denoting if this emoji can be used. (Can be false via server " -"boosting)" -msgstr "" - -#: interactions.api.models.message.Emoji.get:1 of -msgid "Gets an emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.get:3 of -msgid "The id of the guild of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:5 of -msgid "The id of the emoji" -msgstr "" - -#: interactions.api.models.message.Emoji.get:7 -#: interactions.api.models.message.Emoji.get_all_of_guild:5 of -msgid "The HTTPClient of your bot. Equals to ``bot._http``" -msgstr "" - -#: interactions.api.models.message.Emoji.get:9 of -msgid "The Emoji as object" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:1 of -msgid "Gets all emoji of a guild." +#: interactions.api.models.message.Attachment.download:1 of +msgid "Downloads the attachment." msgstr "" -#: interactions.api.models.message.Emoji.get_all_of_guild:3 of -msgid "The id of the guild to get the emojis of" -msgstr "" - -#: interactions.api.models.message.Emoji.get_all_of_guild:7 of -msgid "The Emoji as list" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:1 of -msgid "Deletes the emoji." -msgstr "" - -#: interactions.api.models.message.Emoji.delete:3 of -msgid "The guild id to delete the emoji from" -msgstr "" - -#: interactions.api.models.message.Emoji.delete:5 of -msgid "The reason of the deletion" -msgstr "" - -#: interactions.api.models.message.Emoji.url:1 of -msgid "Returns the emoji's URL." -msgstr "" - -#: interactions.api.models.message.Emoji.url:3 of -msgid "URL of the emoji" +#: interactions.api.models.message.Attachment.download:3 of +msgid "The attachment's bytes as BytesIO object" msgstr "" #: interactions.api.models.message.EmbedFooter:1 of @@ -1093,3 +1018,116 @@ msgstr "" #: interactions.api.models.message.Sticker:14 of msgid "The standard sticker's sort order within its pack" msgstr "" + +#: interactions.api.models.message.StickerPack:1 of +msgid "A class objects representing a pack of stickers." +msgstr "" + +#: interactions.api.models.message.StickerPack:3 of +msgid "ID of the sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:4 of +msgid "The stickers in the pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:5 of +msgid "The name of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:6 of +msgid "ID of the pack's SKU." +msgstr "" + +#: interactions.api.models.message.StickerPack:7 of +msgid "ID of a sticker in the pack which is shown as the pack's icon." +msgstr "" + +#: interactions.api.models.message.StickerPack:8 of +msgid "The description of sticker pack." +msgstr "" + +#: interactions.api.models.message.StickerPack:9 of +msgid "ID of the sticker pack's banner image." +msgstr "" + +#~ msgid "The allowed mentions of roles attached in the message." +#~ msgstr "" + +#~ msgid "Components associated with this message, if any." +#~ msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" + +#~ msgid "The new field's index" +#~ msgstr "" + +#~ msgid "A class objecting representing an emoji." +#~ msgstr "" + +#~ msgid "Emoji id" +#~ msgstr "" + +#~ msgid "Emoji name." +#~ msgstr "" + +#~ msgid "Roles allowed to use this emoji" +#~ msgstr "" + +#~ msgid "User that created this emoji" +#~ msgstr "" + +#~ msgid "Status denoting of this emoji must be wrapped in colons" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is managed (by an integration)" +#~ msgstr "" + +#~ msgid "Status denoting if this emoji is animated" +#~ msgstr "" + +#~ msgid "" +#~ "Status denoting if this emoji can " +#~ "be used. (Can be false via server" +#~ " boosting)" +#~ msgstr "" + +#~ msgid "Gets an emoji." +#~ msgstr "" + +#~ msgid "The id of the guild of the emoji" +#~ msgstr "" + +#~ msgid "The id of the emoji" +#~ msgstr "" + +#~ msgid "The HTTPClient of your bot. Equals to ``bot._http``" +#~ msgstr "" + +#~ msgid "The Emoji as object" +#~ msgstr "" + +#~ msgid "Gets all emoji of a guild." +#~ msgstr "" + +#~ msgid "The id of the guild to get the emojis of" +#~ msgstr "" + +#~ msgid "The Emoji as list" +#~ msgstr "" + +#~ msgid "Deletes the emoji." +#~ msgstr "" + +#~ msgid "The guild id to delete the emoji from" +#~ msgstr "" + +#~ msgid "The reason of the deletion" +#~ msgstr "" + +#~ msgid "Returns the emoji's URL." +#~ msgstr "" + +#~ msgid "URL of the emoji" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.misc.po b/docs/locale/ru/LC_MESSAGES/api.models.misc.po index cfed122db..77ec620aa 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.misc.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.misc.rst:4 msgid "Miscellanous Models" @@ -27,6 +27,7 @@ msgstr "" msgid "An enumeration." msgstr "" +#: interactions.api.models.misc.AllowedMentionType #: interactions.api.models.misc.AutoModKeywordPresetTypes #: interactions.api.models.misc.AutoModTriggerType of msgid "Member Type" @@ -37,6 +38,7 @@ msgstr "" msgid ":py:class:`int`" msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 #: interactions.api.models.misc.AutoModKeywordPresetTypes:1 #: interactions.api.models.misc.AutoModTriggerType:1 of msgid "Valid values are as follows:" @@ -50,6 +52,7 @@ msgstr "" msgid "The maximum duration for duration_seconds is 2419200 seconds, aka 4 weeks." msgstr "" +#: interactions.api.models.misc.AllowedMentions #: interactions.api.models.misc.AutoModAction #: interactions.api.models.misc.AutoModMetaData #: interactions.api.models.misc.AutoModTriggerMetadata @@ -66,15 +69,6 @@ msgstr "" msgid "Timeout duration in seconds, if timed out." msgstr "" -#: interactions.api.models.misc.AutoModAction -#: interactions.api.models.misc.AutoModMetaData -#: interactions.api.models.misc.AutoModTriggerMetadata -#: interactions.api.models.misc.ClientStatus interactions.api.models.misc.File -#: interactions.api.models.misc.Image interactions.api.models.misc.Overwrite -#: interactions.api.models.misc.Snowflake of -msgid "Parameters" -msgstr "" - #: interactions.api.models.misc.AutoModAction:1 of msgid "" "A class object used for the ``AUTO_MODERATION_ACTION_EXECUTION`` event. " @@ -107,6 +101,53 @@ msgstr "" msgid "The internally pre-defined wordsets which will be searched for in content." msgstr "" +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "An enumerable object representing the allowed mention types" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.api.models.misc.AllowedMentionType:1 of +msgid "The :class:`~enum.Enum` and its members also have the following methods:" +msgstr "" + +#: enum.Enum._generate_next_value_:1 of +msgid "Generate the next value when not given." +msgstr "" + +#: enum.Enum._generate_next_value_:3 of +msgid "" +"name: the name of the member start: the initial start value or None " +"count: the number of existing members last_value: the last value assigned" +" or None" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:1 of +msgid "A class object representing the allowed mentions object" +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:3 of +msgid "" +"Optional[List[AllowedMentionType]]: An array of allowed mention types to " +"parse from the content." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:4 of +msgid "Optional[List[int]]: An array of user ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:5 of +msgid "Optional[List[int]]: An array of role ids to mention." +msgstr "" + +#: interactions.api.models.misc.AllowedMentions:6 of +msgid "" +"Optional[bool]: For replies, whether to mention the author of the message" +" being replied to." +msgstr "" + #: interactions.api.models.misc.Snowflake:1 of msgid "The Snowflake object." msgstr "" @@ -129,17 +170,6 @@ msgid "" "integer." msgstr "" -#: interactions.api.models.misc.Color.black -#: interactions.api.models.misc.Color.blurple -#: interactions.api.models.misc.Color.fuchsia -#: interactions.api.models.misc.Color.green -#: interactions.api.models.misc.Color.red -#: interactions.api.models.misc.Color.white -#: interactions.api.models.misc.Color.yellow -#: interactions.api.models.misc.Snowflake of -msgid "Return type" -msgstr "" - #: interactions.api.models.misc.Snowflake.increment:1 of msgid "" "This is the 'Increment' portion of the snowflake. This is incremented for" @@ -199,6 +229,16 @@ msgstr "" msgid "Returns a hexadecimal value of the blurple color." 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 of +msgid "Return type" +msgstr "" + #: interactions.api.models.misc.Color.green:1 of msgid "Returns a hexadecimal value of the green color." msgstr "" @@ -287,3 +327,6 @@ msgstr "" #: interactions.api.models.misc.Overwrite:6 of msgid "Permission bit set." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.presence.po b/docs/locale/ru/LC_MESSAGES/api.models.presence.po index 347c24dbc..cfbae19fa 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.presence.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.presence.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.presence.rst:4 msgid "Presence Models" @@ -43,15 +43,6 @@ msgstr "" msgid "An array denoting the party's current and max size" msgstr "" -#: interactions.api.models.presence.ClientPresence -#: interactions.api.models.presence.PresenceActivity -#: interactions.api.models.presence.PresenceAssets -#: interactions.api.models.presence.PresenceParty -#: interactions.api.models.presence.PresenceSecrets -#: interactions.api.models.presence.PresenceTimestamp of -msgid "Parameters" -msgstr "" - #: interactions.api.models.presence.PresenceAssets:1 of msgid "A class object representing the assets of a presence." msgstr "" @@ -231,3 +222,6 @@ msgstr "" #: interactions.api.models.presence.ClientPresence:6 of msgid "Whether the client is afk or not." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.role.po b/docs/locale/ru/LC_MESSAGES/api.models.role.po index c78eeec53..4828e3cfc 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.role.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.role.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.role.rst:4 msgid "Role Models" @@ -130,6 +130,12 @@ msgstr "" msgid "RGB color value as integer, defaults to the current value of the role" msgstr "" +#: interactions.api.models.role.Role.modify:9 of +msgid "" +"Bitwise value of the enabled/disabled permissions, defaults to the " +"current value of the role" +msgstr "" + #: interactions.api.models.role.Role.modify:11 of msgid "" "Whether the role should be displayed separately in the sidebar, defaults " diff --git a/docs/locale/ru/LC_MESSAGES/api.models.team.po b/docs/locale/ru/LC_MESSAGES/api.models.team.po index 2958a4252..36accb3a5 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.team.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.team.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.team.rst:4 msgid "Team Models" @@ -51,11 +51,6 @@ msgstr "" msgid "The User ID of the current team owner" msgstr "" -#: interactions.api.models.team.Application interactions.api.models.team.Team -#: interactions.api.models.team.TeamMember of -msgid "Parameters" -msgstr "" - #: interactions.api.models.team.TeamMember:1 of msgid "A class object representing the member of a team." msgstr "" @@ -183,3 +178,6 @@ msgstr "" #: interactions.api.models.team.Application.icon_url of msgid "Return type" msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.user.po b/docs/locale/ru/LC_MESSAGES/api.models.user.po index 5721c56da..00f10cc86 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.user.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.user.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.user.rst:4 msgid "User Models" @@ -94,17 +94,14 @@ msgstr "" msgid "The user's public flags" msgstr "" -#: interactions.api.models.user.User of -msgid "Parameters" -msgstr "" - #: interactions.api.models.user.User.mention:1 of msgid "Returns a string that allows you to mention the given user." msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Returns" msgstr "" @@ -114,7 +111,8 @@ msgstr "" #: interactions.api.models.user.User.avatar_url #: interactions.api.models.user.User.banner_url -#: interactions.api.models.user.User.mention of +#: interactions.api.models.user.User.mention +#: interactions.api.models.user.User.presence of msgid "Return type" msgstr "" @@ -133,3 +131,14 @@ msgstr "" #: interactions.api.models.user.User.banner_url:3 of msgid "URL of the user's banner (None will be returned if no banner is set)" msgstr "" + +#: interactions.api.models.user.User.presence:1 of +msgid "Returns the presence of the user." +msgstr "" + +#: interactions.api.models.user.User.presence:3 of +msgid "Presence of the user (None will be returned if not cached)" +msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/api.models.webhook.po b/docs/locale/ru/LC_MESSAGES/api.models.webhook.po index be10a2fd1..906a172a9 100644 --- a/docs/locale/ru/LC_MESSAGES/api.models.webhook.po +++ b/docs/locale/ru/LC_MESSAGES/api.models.webhook.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../api.models.webhook.rst:4 msgid "Webhook Models" @@ -209,7 +209,7 @@ msgid "embedded ``rich`` content" msgstr "" #: interactions.api.models.webhook.Webhook.execute:18 of -msgid "allowed mentions for the message" +msgid "The allowed mentions for the message." msgstr "" #: interactions.api.models.webhook.Webhook.execute:20 of @@ -257,3 +257,6 @@ msgstr "" #: interactions.api.models.webhook.WebhookType:1 of msgid "Valid values are as follows:" msgstr "" + +#~ msgid "allowed mentions for the message" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/client.po b/docs/locale/ru/LC_MESSAGES/client.po index 854019fc5..48424e61c 100644 --- a/docs/locale/ru/LC_MESSAGES/client.po +++ b/docs/locale/ru/LC_MESSAGES/client.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../client.rst:4 msgid "Bot Client" @@ -31,10 +31,6 @@ msgstr "" #: interactions.client.bot.Client #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence @@ -44,6 +40,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.user_command #: interactions.client.bot.Extension of msgid "Parameters" @@ -80,60 +77,73 @@ msgid "" "automatic or not." msgstr "" +#: interactions.client.bot.Client:15 of +msgid "" +"Set to ``True`` to enable debug logging or set to a log level to use a " +"specific level" +msgstr "" + #: interactions.client.bot.Client of msgid "Variables" msgstr "" -#: interactions.client.bot.Client:16 of +#: interactions.client.bot.Client:18 of msgid "The asynchronous event loop of the client." msgstr "" -#: interactions.client.bot.Client:17 of +#: interactions.client.bot.Client:19 of msgid "" "The user-facing HTTP connection to the Web API, as its own separate " "client." msgstr "" -#: interactions.client.bot.Client:18 of +#: interactions.client.bot.Client:20 of msgid "An object-orientation of a websocket server connection to the Gateway." msgstr "" -#: interactions.client.bot.Client:19 of +#: interactions.client.bot.Client:21 of msgid "The Gateway intents of the application. Defaults to ``Intents.DEFAULT``." msgstr "" -#: interactions.client.bot.Client:20 of +#: interactions.client.bot.Client:22 of msgid "The list of bucketed shards for the application's connection." msgstr "" -#: interactions.client.bot.Client:21 of +#: interactions.client.bot.Client:23 of msgid "The RPC-like presence shown on an application once connected." msgstr "" -#: interactions.client.bot.Client:22 of +#: interactions.client.bot.Client:24 of msgid "The token of the application used for authentication when connecting." msgstr "" -#: interactions.client.bot.Client:23 of +#: interactions.client.bot.Client:25 of msgid "The \"extensions\" or cog equivalence registered to the main client." msgstr "" -#: interactions.client.bot.Client:24 of +#: interactions.client.bot.Client:26 of msgid "The application representation of the client." msgstr "" -#: interactions.client.bot.Client +#: interactions.client.bot.Client.guilds:1 of +msgid "Returns a list of guilds the bot is in." +msgstr "" + +#: interactions.client.bot.Client.latency:1 of +msgid "Returns the connection latency in milliseconds." +msgstr "" + +#: interactions.client.bot.Client.start:1 of +msgid "Starts the client session." +msgstr "" + #: interactions.client.bot.Client.__check_command #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create -#: interactions.client.bot.Client.__register_events #: interactions.client.bot.Client.__resolve_commands #: interactions.client.bot.Client.__sync #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client._login interactions.client.bot.Client._ready +#: interactions.client.bot.Client._stop #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.change_presence #: interactions.client.bot.Client.command @@ -142,6 +152,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.remove +#: interactions.client.bot.Client.request_guild_members #: interactions.client.bot.Client.start #: interactions.client.bot.Client.user_command #: interactions.client.bot.Client.wait_until_ready @@ -149,22 +160,6 @@ msgstr "" msgid "Return type" msgstr "" -#: interactions.client.bot.Client.guilds:1 of -msgid "Returns a list of guilds the bot is in." -msgstr "" - -#: interactions.client.bot.Client.latency:1 of -msgid "Returns the connection latency in milliseconds." -msgstr "" - -#: interactions.client.bot.Client.start:1 of -msgid "Starts the client session." -msgstr "" - -#: interactions.client.bot.Client.__register_events:1 of -msgid "Registers all raw gateway events to the known events." -msgstr "" - #: interactions.client.bot.Client.__compare_sync:1 of msgid "Compares an application command during the synchronization process." msgstr "" @@ -178,10 +173,6 @@ msgid "The \"pool\" or list of commands to compare from." msgstr "" #: interactions.client.bot.Client.__compare_sync -#: interactions.client.bot.Client.__raw_channel_create -#: interactions.client.bot.Client.__raw_guild_create -#: interactions.client.bot.Client.__raw_message_create -#: interactions.client.bot.Client.__raw_socket_create #: interactions.client.bot.Client._find_command #: interactions.client.bot.Client.autocomplete #: interactions.client.bot.Client.command @@ -204,6 +195,10 @@ msgid "" "conditions have been met in a chronological order:" msgstr "" +#: interactions.client.bot.Client._stop:1 of +msgid "Stops the websocket connection gracefully." +msgstr "" + #: interactions.client.bot.Client._login:1 of msgid "Makes a login with the Discord API." msgstr "" @@ -448,7 +443,7 @@ msgid "" msgstr "" #: interactions.client.bot.Client._find_command:3 of -msgid "The name of the command to match" +msgid "The name or ID of the command to match" msgstr "" #: interactions.client.bot.Client._find_command:5 of @@ -574,59 +569,34 @@ msgstr "" msgid "The modified User object" msgstr "" -#: interactions.client.bot.Client.__raw_socket_create:1 of -msgid "" -"This is an internal function that takes any gateway socket event and then" -" returns the data purely based off of what it does in the client " -"instantiation class." -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:5 of -msgid "The data that is returned" -msgstr "" - -#: interactions.client.bot.Client.__raw_socket_create:7 of -msgid "A dictionary of raw data." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:1 of -msgid "" -"This is an internal function that caches the channel creates when " -"dispatched." -msgstr "" - -#: interactions.client.bot.Client.__raw_channel_create:3 of -msgid "The channel object data in question." +#: interactions.client.bot.Client.request_guild_members:1 of +msgid "Requests guild members via websocket." msgstr "" -#: interactions.client.bot.Client.__raw_channel_create:5 of -msgid "The channel as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:3 of +msgid "ID of the guild to get members for." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:1 of +#: interactions.client.bot.Client.request_guild_members:5 of msgid "" -"This is an internal function that caches the message creates when " -"dispatched." +"Maximum number of members to send matching the 'query' parameter. " +"Required when specifying 'query'." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:3 of -msgid "The message object data in question." +#: interactions.client.bot.Client.request_guild_members:7 of +msgid "String that username starts with." msgstr "" -#: interactions.client.bot.Client.__raw_message_create:5 of -msgid "The message as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:9 of +msgid "Used to specify if we want the presences of the matched members." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:1 of -msgid "This is an internal function that caches the guild creates on ready." +#: interactions.client.bot.Client.request_guild_members:11 of +msgid "Used to specify which users you wish to fetch." msgstr "" -#: interactions.client.bot.Client.__raw_guild_create:3 of -msgid "The guild object data in question." -msgstr "" - -#: interactions.client.bot.Client.__raw_guild_create:5 of -msgid "The guild as a dictionary of raw data." +#: interactions.client.bot.Client.request_guild_members:13 of +msgid "Nonce to identify the Guild Members Chunk response." msgstr "" #: interactions.client.bot.Extension:1 of @@ -639,3 +609,56 @@ msgstr "" #: interactions.client.bot.Extension:5 of msgid "The structure of an extension:" msgstr "" + +#~ msgid "Registers all raw gateway events to the known events." +#~ msgstr "" + +#~ msgid "The name of the command to match" +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "takes any gateway socket event and " +#~ "then returns the data purely based " +#~ "off of what it does in the " +#~ "client instantiation class." +#~ msgstr "" + +#~ msgid "The data that is returned" +#~ msgstr "" + +#~ msgid "A dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the channel creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The channel object data in question." +#~ msgstr "" + +#~ msgid "The channel as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "" +#~ "This is an internal function that " +#~ "caches the message creates when " +#~ "dispatched." +#~ msgstr "" + +#~ msgid "The message object data in question." +#~ msgstr "" + +#~ msgid "The message as a dictionary of raw data." +#~ msgstr "" + +#~ msgid "This is an internal function that caches the guild creates on ready." +#~ msgstr "" + +#~ msgid "The guild object data in question." +#~ msgstr "" + +#~ msgid "The guild as a dictionary of raw data." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/context.po b/docs/locale/ru/LC_MESSAGES/context.po index 3917f5b73..8352a5d3e 100644 --- a/docs/locale/ru/LC_MESSAGES/context.po +++ b/docs/locale/ru/LC_MESSAGES/context.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../context.rst:4 msgid "Event Context" @@ -55,7 +55,6 @@ msgstr "" msgid "The guild data model." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update #: interactions.client.context.CommandContext #: interactions.client.context.CommandContext.defer #: interactions.client.context.CommandContext.edit @@ -63,12 +62,15 @@ msgstr "" #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: interactions.client.context.ComponentContext.edit #: interactions.client.context.ComponentContext.send #: interactions.client.context._Context #: interactions.client.context._Context.edit +#: interactions.client.context._Context.has_permissions #: interactions.client.context._Context.popup -#: interactions.client.context._Context.send of +#: interactions.client.context._Context.send +#: interactions.utils.attrs_utils.DictSerializerMixin.update of msgid "Parameters" msgstr "" @@ -79,11 +81,13 @@ msgstr "" #: interactions.client.context.CommandContext.edit #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.send of msgid "Returns" msgstr "" @@ -98,11 +102,13 @@ msgstr "" #: interactions.client.context.CommandContext.populate #: interactions.client.context.CommandContext.send #: interactions.client.context.ComponentContext.defer +#: interactions.client.context.ComponentContext.disable_all_components #: 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.has_permissions #: interactions.client.context._Context.popup #: interactions.client.context._Context.send of msgid "Return type" @@ -153,7 +159,7 @@ msgstr "" #: interactions.client.context.CommandContext.send:12 #: interactions.client.context.ComponentContext.send:12 #: interactions.client.context._Context.send:12 of -msgid "The message interactions/mention limits that the message can refer to." +msgid "The allowed mentions for the message." msgstr "" #: interactions.client.context.CommandContext.send:14 @@ -171,6 +177,12 @@ msgstr "" #: interactions.client.context.CommandContext.send:18 #: interactions.client.context.ComponentContext.send:18 #: interactions.client.context._Context.send:18 of +msgid "Whether embeds are not shown in the message." +msgstr "" + +#: interactions.client.context.CommandContext.send:20 +#: interactions.client.context.ComponentContext.send:20 +#: interactions.client.context._Context.send:20 of msgid "The sent message as an object." msgstr "" @@ -197,13 +209,39 @@ msgstr "" msgid "The components you wish to show." msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:1 of +#: interactions.client.context._Context.has_permissions:1 of +msgid "" +"Returns whether the author of the interaction has the permissions in the " +"given context." +msgstr "" + +#: interactions.client.context._Context.has_permissions:3 of +msgid "The list of permissions" +msgstr "" + +#: interactions.client.context._Context.has_permissions:5 of +msgid "" +"The operator to use to calculate permissions. Possible values: `and`, " +"`or`. Defaults to `and`." +msgstr "" + +#: interactions.client.context._Context.has_permissions:7 of +msgid "Whether the author has the permissions" +msgstr "" + +#: ../../docstring interactions.client.context.CommandContext._extras:1 +#: interactions.client.context.ComponentContext._extras:1 +#: interactions.client.context._Context._extras:1 of +msgid "A dict containing values that were not serialized from Discord." +msgstr "" + +#: interactions.utils.attrs_utils.DictSerializerMixin.update:1 of msgid "" "Update an object with new attributes. All data will be converted, and any" " extra attributes will be put in _extras" msgstr "" -#: interactions.api.models.attrs_utils.DictSerializerMixin.update:4 of +#: interactions.utils.attrs_utils.DictSerializerMixin.update:4 of msgid "The dictionary to update from" msgstr "" @@ -286,6 +324,18 @@ msgid "" " was sent from." msgstr "" +#: interactions.client.context.CommandContext:30 of +msgid "The client instance that the command belongs to." +msgstr "" + +#: interactions.client.context.CommandContext:31 of +msgid "The command object that is being invoked." +msgstr "" + +#: interactions.client.context.CommandContext:32 of +msgid "The extension the command belongs to." +msgstr "" + #: interactions.client.context.CommandContext.defer:1 of msgid "" "This \"defers\" an interaction response, allowing up to a 15-minute delay" @@ -342,3 +392,31 @@ msgstr "" #: interactions.client.context.ComponentContext.defer:6 of msgid "Whether you want to edit the original message or send a followup message" msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:1 of +msgid "Disables all components of the message." +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:3 of +msgid "" +"Whether the components should be disabled in an interaction response, " +"default True" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:5 of +msgid "" +"Additional keyword-arguments to pass to the edit method. This only works " +"when this method is used as interaction response and takes the same " +"arguments as :meth:`interactions.client.context._Context:edit()`" +msgstr "" + +#: interactions.client.context.ComponentContext.disable_all_components:8 of +msgid "The modified Message" +msgstr "" + +#: interactions.client.context.ComponentContext.label:1 of +msgid "The label of the interacted button. :rtype: Optional[str]" +msgstr "" + +#~ msgid "The message interactions/mention limits that the message can refer to." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/events.po b/docs/locale/ru/LC_MESSAGES/events.po index b91a1dc02..7b4ecba7d 100644 --- a/docs/locale/ru/LC_MESSAGES/events.po +++ b/docs/locale/ru/LC_MESSAGES/events.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../events.rst:2 msgid "Event Documentation" @@ -98,99 +98,104 @@ msgid "``on_command``" msgstr "" #: ../../events.rst:57 -msgid "``on_component``" +msgid "``on_command_error``" msgstr "" #: ../../events.rst:58 -msgid "``on_autocomplete``" +msgid "``on_component``" msgstr "" #: ../../events.rst:59 +msgid "``on_autocomplete``" +msgstr "" + +#: ../../events.rst:60 msgid "``on_modal``" msgstr "" -#: ../../events.rst:61 +#: ../../events.rst:62 msgid "Lets now have a look at those events in detail:" msgstr "" -#: ../../events.rst:64 +#: ../../events.rst:65 msgid "Event: ``raw_socket_create``" msgstr "" -#: ../../events.rst:65 +#: ../../events.rst:66 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 +#: ../../events.rst:69 msgid "" -"The function handling the event should take in one argument, the type of " -"this argument is a ``dict``." +"A function handling an event should take two arguments, the first " +"argument is the name of the event, the second is the data of that event " +"with type ``dict``." msgstr "" -#: ../../events.rst:70 +#: ../../events.rst:72 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." +"The value of the second 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 +#: ../../events.rst:77 msgid "Event: ``on_start``" msgstr "" -#: ../../events.rst:76 +#: ../../events.rst:78 msgid "This event fires only when the bot is started." msgstr "" -#: ../../events.rst:78 ../../events.rst:161 +#: ../../events.rst:80 ../../events.rst:173 msgid "This function takes no arguments." msgstr "" -#: ../../events.rst:81 +#: ../../events.rst:83 msgid "Unlike ``on_ready``, this event will never be dispatched more than once." msgstr "" -#: ../../events.rst:84 +#: ../../events.rst:86 msgid "Event: ``on_interaction``" msgstr "" -#: ../../events.rst:85 +#: ../../events.rst:87 msgid "" "This event fires on any interaction (commands, components, autocomplete " "and modals)." msgstr "" -#: ../../events.rst:87 +#: ../../events.rst:89 msgid "" "The function needs one argument. It will have the type ``CommandContext``" " or ``ComponentContext``." msgstr "" -#: ../../events.rst:89 +#: ../../events.rst:91 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 +#: ../../events.rst:96 msgid "Event: ``on_command``" msgstr "" -#: ../../events.rst:95 +#: ../../events.rst:97 msgid "" "This event fires on any Application Command (slash command + context menu" " command) used." msgstr "" -#: ../../events.rst:97 ../../events.rst:117 ../../events.rst:127 +#: ../../events.rst:99 ../../events.rst:129 ../../events.rst:139 msgid "The function takes in one argument of the type ``CommandContext``." msgstr "" -#: ../../events.rst:99 +#: ../../events.rst:101 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 " @@ -198,138 +203,174 @@ msgid "" "it" msgstr "" -#: ../../events.rst:104 +#: ../../events.rst:106 +msgid "Event: ``on_command_error``" +msgstr "" + +#: ../../events.rst:107 +msgid "This event fires when the following conditions are met:" +msgstr "" + +#: ../../events.rst:109 +msgid "There is an error in the command (or subcommand within the command)" +msgstr "" + +#: ../../events.rst:110 +msgid "There is no error callback assigned to that command" +msgstr "" + +#: ../../events.rst:112 +msgid "" +"The function takes in two arguments, one of the type ``CommandContext``, " +"and the other contains the error." +msgstr "" + +#: ../../events.rst:116 msgid "Event: ``on_component``" msgstr "" -#: ../../events.rst:105 +#: ../../events.rst:117 msgid "" "This event fires on any Component used (for now, those are Buttons and " "Select Menus)." msgstr "" -#: ../../events.rst:107 +#: ../../events.rst:119 msgid "The function takes in one argument of the type ``ComponentContext``." msgstr "" -#: ../../events.rst:109 +#: ../../events.rst:121 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 +#: ../../events.rst:126 msgid "Event: ``on_autocomplete``" msgstr "" -#: ../../events.rst:115 +#: ../../events.rst:127 msgid "This event fires on any autocomplete triggered." msgstr "" -#: ../../events.rst:119 +#: ../../events.rst:131 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 +#: ../../events.rst:136 msgid "Event: ``on_modal``" msgstr "" -#: ../../events.rst:125 +#: ../../events.rst:137 msgid "This event fires on every modal that is submitted." msgstr "" -#: ../../events.rst:129 +#: ../../events.rst:141 msgid "" "You will have to get all values yourself and check what modal was used " "when using this event." msgstr "" -#: ../../events.rst:132 +#: ../../events.rst:144 msgid "" "Additionally, if you struggle with getting the values, you can check " ":ref:`how it is handled internally `." msgstr "" -#: ../../events.rst:136 +#: ../../events.rst:148 msgid "After this, let us look at events from the Discord API." msgstr "" -#: ../../events.rst:139 +#: ../../events.rst:151 msgid "Discord API Events" msgstr "" -#: ../../events.rst:141 +#: ../../events.rst:153 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 +#: ../../events.rst:157 msgid "" "There are a lot of events dispatched by the Discord API. All of those can" " be found `here`_." msgstr "" -#: ../../events.rst:147 +#: ../../events.rst:159 msgid "" "The events ``HELLO``, ``RESUMED``, ``RECONNECT``, ``INVALID SESSION`` and" " ``TYPING START`` are not dispatched by the library." msgstr "" -#: ../../events.rst:149 +#: ../../events.rst:161 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 +#: ../../events.rst:164 msgid "" "The event ``VOICE STATE UPDATE`` can be only received with the voice " ":ref:`Extension `." msgstr "" -#: ../../events.rst:155 +#: ../../events.rst:167 msgid "Let's now have a look at a few events:" msgstr "" -#: ../../events.rst:158 +#: ../../events.rst:170 msgid "Event: ``READY``" msgstr "" -#: ../../events.rst:159 +#: ../../events.rst:171 msgid "" "This event fires whenever ``READY`` is dispatched by Discord. This " "happens when connecting to the web socket server." msgstr "" -#: ../../events.rst:164 +#: ../../events.rst:176 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 +#: ../../events.rst:193 msgid "Events: ``GUILD MEMBER UPDATE`` and ``GUILD MEMBER ADD``" msgstr "" -#: ../../events.rst:182 +#: ../../events.rst:194 msgid "" "These events fire whenever a member joins a guild or a member of a guild " "gets modified." msgstr "" -#: ../../events.rst:184 +#: ../../events.rst:196 msgid "The function takes in one argument of the type ``GuildMember``." msgstr "" -#: ../../events.rst:186 +#: ../../events.rst:198 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 "" + +#~ msgid "" +#~ "The function handling the event should" +#~ " take in one argument, the type " +#~ "of this argument is a ``dict``." +#~ msgstr "" + +#~ 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 "" diff --git a/docs/locale/ru/LC_MESSAGES/faq.po b/docs/locale/ru/LC_MESSAGES/faq.po index 1bf421161..09e3ae8c9 100644 --- a/docs/locale/ru/LC_MESSAGES/faq.po +++ b/docs/locale/ru/LC_MESSAGES/faq.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../faq.rst:2 msgid "Frequently Asked Questions" @@ -283,12 +283,12 @@ msgstr "" #: ../../faq.rst:157 msgid "" -"A `voice client`_ - which is still WIP, but it is able to listen for the " +"`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" +msgid "`autosharder`_ for automatic sharding" msgstr "" #: ../../faq.rst:159 @@ -310,146 +310,148 @@ msgid "`enhanced`_ which enhances the DX in general" msgstr "" #: ../../faq.rst:163 -msgid "A `paginator`_ for paginating embeds on messages using components" +msgid "`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``)" +"`persistence`_ for storing data inside your custom IDs (as an alternative" +" to ``wait_for``)" msgstr "" #: ../../faq.rst:165 -msgid "And a `boilerplate`_" +msgid "`lavalink`_ for voice sending and listening ``VOICE_STATE_UPDATE`` event" +msgstr "" + +#: ../../faq.rst:166 +msgid "`fastapi`_ for building own API" msgstr "" #: ../../faq.rst:167 +msgid "And a `boilerplate`_" +msgstr "" + +#: ../../faq.rst:169 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 +#: ../../faq.rst:171 msgid "`checks and cooldowns`_" msgstr "" -#: ../../faq.rst:170 +#: ../../faq.rst:172 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 +#: ../../faq.rst:174 msgid "Usage examples can usually be found at the linked page" msgstr "" -#: ../../faq.rst:177 +#: ../../faq.rst:178 msgid "Can I make an Extension Library myself?" msgstr "" -#: ../../faq.rst:178 +#: ../../faq.rst:179 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 +#: ../../faq.rst:184 msgid "" "I'm getting \"``AttributeError: HTTPClient not found!``\" when I try to " "execute helper methods!" msgstr "" -#: ../../faq.rst:184 +#: ../../faq.rst:185 msgid "Probably you are doing something like this:" msgstr "" -#: ../../faq.rst:191 +#: ../../faq.rst:192 msgid "" "And the error occurs in the line where you try to send something. You can" " fix this easy by adding one argument:" msgstr "" -#: ../../faq.rst:198 +#: ../../faq.rst:199 msgid "" "You have to add this extra argument for every object you instantiate by " "yourself if you want to use it's methods" msgstr "" -#: ../../faq.rst:202 +#: ../../faq.rst:203 msgid "" "Context and Messages don't have the ``Channel`` and ``Guild`` attributes!" " Why?" msgstr "" -#: ../../faq.rst:203 +#: ../../faq.rst:204 msgid "" "At the moment the Discord API does *not* include them into their " "responses. You can get those object via the ``get_channel()`` and " "``get_guild()`` methods of the Context and Message model." msgstr "" -#: ../../faq.rst:208 +#: ../../faq.rst:209 msgid "\"``ctx.send got an unexpected keyword argument: files``\"! Why?" msgstr "" -#: ../../faq.rst:209 +#: ../../faq.rst:210 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 +#: ../../faq.rst:213 msgid "Using ``await channel.send`` instead" msgstr "" -#: ../../faq.rst:213 +#: ../../faq.rst:214 msgid "Using the `files`_ extension" msgstr "" -#: ../../faq.rst:217 +#: ../../faq.rst:218 msgid "\"``ctx.send got an unexpected keyword argument: embed``\"! Why?" msgstr "" -#: ../../faq.rst:218 +#: ../../faq.rst:219 msgid "" "This is quite simple: The argument ``embed`` got deprecated by Discord. " "The new naming is ``embeds``." msgstr "" -#: ../../faq.rst:222 +#: ../../faq.rst:223 msgid "How can I check what exception happened during a request?" msgstr "" -#: ../../faq.rst:223 +#: ../../faq.rst:224 msgid "We, unlike d.py, do not offer something like ``interactions.NotFound``." msgstr "" -#: ../../faq.rst:225 +#: ../../faq.rst:226 msgid "Instead you have to do it like this:" msgstr "" -#: ../../faq.rst:228 +#: ../../faq.rst:229 msgid "" "This feature will be implemented with version 4.3 and is currently only " "available on beta/unstable" msgstr "" -#: ../../faq.rst:242 +#: ../../faq.rst:243 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 +#: ../../faq.rst:247 msgid "My message content is always empty! How can I fix this?" msgstr "" -#: ../../faq.rst:247 +#: ../../faq.rst:248 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`` " @@ -459,11 +461,11 @@ msgid "" "``Intents.DEFAULT``, it can be any other intent(s) you need!" msgstr "" -#: ../../faq.rst:254 +#: ../../faq.rst:255 msgid "Is there something like ``Cogs``?" msgstr "" -#: ../../faq.rst:255 +#: ../../faq.rst:256 msgid "" "Yes! Although, we call them ``Extensions``. Yeah, like :ref:`Extension " "Libraries `. This is because an extension " @@ -471,39 +473,39 @@ msgid "" "how you create an extension for yourself:" msgstr "" -#: ../../faq.rst:283 +#: ../../faq.rst:284 msgid "It's nothing more than that." msgstr "" -#: ../../faq.rst:285 +#: ../../faq.rst:286 msgid "" "Since ``@bot.X`` decorators don't work in extensions, you have to use " "these:" msgstr "" -#: ../../faq.rst:287 +#: ../../faq.rst:288 msgid "For event listeners, use ``@interactions.extension_listener``" msgstr "" -#: ../../faq.rst:288 +#: ../../faq.rst:289 msgid "For component listeners, use ``@interactions.extension_component``" msgstr "" -#: ../../faq.rst:289 +#: ../../faq.rst:290 msgid "For modal listeners, use ``@interactions.extension_modal``" msgstr "" -#: ../../faq.rst:290 +#: ../../faq.rst:291 msgid "For autocomplete listeners, use ``@interactions.extension_autocomplete``" msgstr "" -#: ../../faq.rst:294 +#: ../../faq.rst:295 msgid "" "``channel.members`` does not exist, how do I get the people in a voice " "channel?" msgstr "" -#: ../../faq.rst:295 +#: ../../faq.rst:296 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 " @@ -512,12 +514,37 @@ msgid "" " updated when a member joins or leaves." msgstr "" -#: ../../faq.rst:301 +#: ../../faq.rst:302 msgid "My question is not answered on here!" msgstr "" -#: ../../faq.rst:302 +#: ../../faq.rst:303 msgid "" "Please join our `Discord Server`_ for any further support regarding our " "library and/or any integration code depending on it." msgstr "" + +#~ msgid "" +#~ "A `voice client`_ - which is still" +#~ " WIP, but it is able to listen" +#~ " for the ``VOICE_STATE_UPDATE`` event." +#~ msgstr "" + +#~ msgid "An `autosharder`_ for automatic sharding" +#~ msgstr "" + +#~ msgid "A `paginator`_ for paginating embeds on messages using components" +#~ msgstr "" + +#~ msgid "" +#~ "`persistence`_ - for storing data inside" +#~ " your custom IDs (as an alternative" +#~ " to ``wait_for``)" +#~ msgstr "" + +#~ msgid "" +#~ "`get`_ for getting objects from the " +#~ "discord API (will be implemented into" +#~ " the core library at a later " +#~ "time)" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/index.po b/docs/locale/ru/LC_MESSAGES/index.po index 91465f9df..d7a1d6841 100644 --- a/docs/locale/ru/LC_MESSAGES/index.po +++ b/docs/locale/ru/LC_MESSAGES/index.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../index.rst:47 msgid "Pages:" @@ -51,7 +51,7 @@ msgstr "" #: ../../index.rst:11 msgid "" "Look no more! The goal of this library is to make all three of these " -"questions go from possibilites to trivial matters." +"questions go from possibilities to trivial matters." msgstr "" #: ../../index.rst:14 @@ -181,7 +181,7 @@ msgid "**black** ``22.6.0``" msgstr "" #: ../../index.rst:66 -msgid "**flake8** ``4.0.1``" +msgid "**flake8** ``5.0.4``" msgstr "" #: ../../index.rst:67 @@ -190,7 +190,7 @@ msgstr "" #: ../../index.rst:69 msgid "" -"**Sphinx** ``4.4.0``: all of our documentation is powered off of " +"**Sphinx** ``5.1.1``: all of our documentation is powered off of " "autogenerated documentation of the Sphinx engine." msgstr "" @@ -247,3 +247,20 @@ msgstr "" #: ../../index.rst:88 msgid ":ref:`modindex`" msgstr "" + +#~ msgid "" +#~ "Look no more! The goal of this " +#~ "library is to make all three of" +#~ " these questions go from possibilites " +#~ "to trivial matters." +#~ msgstr "" + +#~ msgid "**flake8** ``4.0.1``" +#~ msgstr "" + +#~ msgid "" +#~ "**Sphinx** ``4.4.0``: all of our " +#~ "documentation is powered off of " +#~ "autogenerated documentation of the Sphinx " +#~ "engine." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/migration.po b/docs/locale/ru/LC_MESSAGES/migration.po index 9f0d8e6aa..3546c747d 100644 --- a/docs/locale/ru/LC_MESSAGES/migration.po +++ b/docs/locale/ru/LC_MESSAGES/migration.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../migration.rst:2 msgid "Migration" @@ -126,7 +126,9 @@ msgid "" msgstr "" #: ../../migration.rst:99 -msgid "You can get more information by reading the `get-documentation`_." +msgid "" +"You can get more information by reading the " +":meth:`interactions.client.get.get`-documentation" msgstr "" #: ../../migration.rst:102 @@ -148,3 +150,6 @@ msgid "" "your argument in your function differently than your option name! " "Example:" msgstr "" + +#~ msgid "You can get more information by reading the `get-documentation`_." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.command.po b/docs/locale/ru/LC_MESSAGES/models.command.po index 5c72da5b0..a7fca335f 100644 --- a/docs/locale/ru/LC_MESSAGES/models.command.po +++ b/docs/locale/ru/LC_MESSAGES/models.command.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.command.rst:4 msgid "Application Command Models" @@ -37,8 +37,10 @@ msgid "The structure for a choice:" msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission of msgid "Variables" @@ -56,13 +58,14 @@ msgstr "" #: 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 +#: interactions.client.models.command.Option:36 of msgid "" "The dictionary of localization for the ``name`` field. This enforces the " "same restrictions as the ``name`` field." msgstr "" #: interactions.client.models.command.ApplicationCommand +#: interactions.client.models.command.BaseResult #: interactions.client.models.command.Choice #: interactions.client.models.command.Command #: interactions.client.models.command.Command.__call @@ -72,6 +75,7 @@ msgstr "" #: interactions.client.models.command.Command.error #: interactions.client.models.command.Command.group #: interactions.client.models.command.Command.subcommand +#: interactions.client.models.command.GroupResult #: interactions.client.models.command.Option #: interactions.client.models.command.Permission #: interactions.client.models.command.option of @@ -100,8 +104,7 @@ msgstr "" msgid "The type of option." msgstr "" -#: interactions.client.models.command.Option:23 -#: interactions.client.models.command.option:14 of +#: interactions.client.models.command.Option:23 of msgid "The name of the option." msgstr "" @@ -142,19 +145,27 @@ msgid "The maximum value supported by the option." msgstr "" #: interactions.client.models.command.Option:33 of +msgid "The minimum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:34 of +msgid "The maximum length supported by the option." +msgstr "" + +#: interactions.client.models.command.Option:35 of msgid "A status denoting whether this option is an autocomplete option." msgstr "" #: interactions.client.models.command.Command:17 #: interactions.client.models.command.Command.group:30 #: interactions.client.models.command.Command.subcommand:35 -#: interactions.client.models.command.Option:35 of +#: interactions.client.models.command.Option:37 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 +#: interactions.client.models.command.Option:38 of msgid "How the option value is passed to the function, if different than ``name``" msgstr "" @@ -248,18 +259,26 @@ msgid "A decorator for adding options to a command." msgstr "" #: interactions.client.models.command.option:3 of -msgid "The structure of an option:" +msgid "" +"The ``type`` and ``name`` of the option are defaulted to the parameter's " +"typehint and name." +msgstr "" + +#: interactions.client.models.command.option:5 of +msgid "" +"When the ``name`` of the option differs from the parameter name, the " +"``converter`` field will default to the name of the parameter." msgstr "" -#: interactions.client.models.command.option:12 of -msgid "The type of the option." +#: interactions.client.models.command.option:8 of +msgid "The structure of an option:" msgstr "" -#: interactions.client.models.command.option:16 of -msgid "The description of the option. Defaults to ``\"No description set\"``." +#: interactions.client.models.command.option:17 of +msgid "The description of the option. Defaults to \"No description set\"." msgstr "" -#: interactions.client.models.command.option:18 of +#: interactions.client.models.command.option:19 of msgid "The keyword arguments of the option, same as :class:`Option`." msgstr "" @@ -283,6 +302,8 @@ msgstr "" msgid "A class that when returned from a command, the command chain is stopped." msgstr "" +#: interactions.client.models.command.BaseResult:3 +#: interactions.client.models.command.GroupResult:3 #: interactions.client.models.command.StopCommand:3 of msgid "Usage:" msgstr "" @@ -291,6 +312,32 @@ msgstr "" msgid "This allows for custom checks that allow stopping the command chain." msgstr "" +#: interactions.client.models.command.BaseResult:1 +#: interactions.client.models.command.GroupResult:1 of +msgid "A class object representing the result of the base command." +msgstr "" + +#: interactions.client.models.command.BaseResult:17 of +msgid "" +"If the subcommand coroutine does not have enough parameters, the " +"``BaseResult`` will not be passed." +msgstr "" + +#: interactions.client.models.command.BaseResult:19 +#: interactions.client.models.command.GroupResult:25 of +msgid "The result of the base command." +msgstr "" + +#: interactions.client.models.command.GroupResult:23 of +msgid "" +"If the subcommand does not have enough arguments, the ``GroupResult`` " +"will not be passed." +msgstr "" + +#: interactions.client.models.command.GroupResult:26 of +msgid "The parent ``BaseResult``." +msgstr "" + #: interactions.client.models.command.Command:1 of msgid "A class object representing a command." msgstr "" @@ -364,6 +411,14 @@ msgstr "" msgid "The extension that the command belongs to, if any." msgstr "" +#: interactions.client.models.command.Command:26 of +msgid "The client that the command belongs to." +msgstr "" + +#: interactions.client.models.command.Command:27 of +msgid "The listener, used for dispatching command errors." +msgstr "" + #: interactions.client.models.command.Command.converters:1 of msgid "" "Returns a dictionary with all converters added to the options of the " @@ -525,3 +580,9 @@ msgid "" ":class:`interactions.client.bot.Extension` is passed to the coroutine, if" " any." msgstr "" + +#~ msgid "The type of the option." +#~ msgstr "" + +#~ msgid "The description of the option. Defaults to ``\"No description set\"``." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.component.po b/docs/locale/ru/LC_MESSAGES/models.component.po index ae186054c..ce3834826 100644 --- a/docs/locale/ru/LC_MESSAGES/models.component.po +++ b/docs/locale/ru/LC_MESSAGES/models.component.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 11:03-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.component.rst:4 msgid "Component Models" @@ -257,36 +257,18 @@ msgid "The maximum length of the input." msgstr "" #: interactions.client.models.component.Modal:1 of -msgid "A class object representing a modal." +msgid "A class object representing a modal. The structure for a modal: ::" msgstr "" -#: interactions.client.models.component.Modal:8 of -msgid "The structure for a modal: ::" -msgstr "" - -#: interactions.client.models.component.Modal:6 of -msgid "interactions.Modal(" -msgstr "" - -#: interactions.client.models.component.Modal:5 of -msgid "" -"title=\"Application Form\", custom_id=\"mod_app_form\", " -"components=[interactions.TextInput(...)]," -msgstr "" - -#: interactions.client.models.component.Modal:8 of -msgid ")" -msgstr "" - -#: interactions.client.models.component.Modal:10 of +#: interactions.client.models.component.Modal:9 of msgid "The custom ID of the modal." msgstr "" -#: interactions.client.models.component.Modal:11 of +#: interactions.client.models.component.Modal:10 of msgid "The title of the modal." msgstr "" -#: interactions.client.models.component.Modal:12 of +#: interactions.client.models.component.Modal:11 of msgid "The components of the modal." msgstr "" @@ -302,22 +284,22 @@ msgid "" " also support only 1 text input component only." msgstr "" -#: interactions.client.models.component.ActionRow:13 of -msgid "The structure for an action row: ::" +#: interactions.client.models.component.ActionRow:8 of +msgid "The structure for an action row: ..code-block:: python" msgstr "" -#: interactions.client.models.component.ActionRow:9 of +#: interactions.client.models.component.ActionRow:10 of msgid "" "# \"...\" represents a component object. # Method 1: " "interactions.ActionRow(...) # Method 2: " "interactions.ActionRow(components=[...])" msgstr "" -#: interactions.client.models.component.ActionRow:15 of +#: interactions.client.models.component.ActionRow:16 of msgid "The type of component. Always defaults to ``1``." msgstr "" -#: interactions.client.models.component.ActionRow:16 of +#: interactions.client.models.component.ActionRow:17 of msgid "A list of components the ActionRow has, if any." msgstr "" @@ -340,3 +322,23 @@ msgstr "" #: interactions.client.models.component.ActionRow.new of msgid "Return type" msgstr "" + +#~ msgid "A class object representing a modal." +#~ msgstr "" + +#~ msgid "The structure for a modal: ::" +#~ msgstr "" + +#~ msgid "interactions.Modal(" +#~ msgstr "" + +#~ msgid "" +#~ "title=\"Application Form\", custom_id=\"mod_app_form\"," +#~ " components=[interactions.TextInput(...)]," +#~ msgstr "" + +#~ msgid ")" +#~ msgstr "" + +#~ msgid "The structure for an action row: ::" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/models.misc.po b/docs/locale/ru/LC_MESSAGES/models.misc.po index 9ea8f4346..31ef0b3e5 100644 --- a/docs/locale/ru/LC_MESSAGES/models.misc.po +++ b/docs/locale/ru/LC_MESSAGES/models.misc.po @@ -9,14 +9,14 @@ msgid "" msgstr "" "Project-Id-Version: interactions.py 4.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-07-17 16:00-0400\n" +"POT-Creation-Date: 2022-09-26 12:28-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" +"Generated-By: Babel 2.10.3\n" #: ../../models.misc.rst:4 msgid "Miscellaneous Models" @@ -56,12 +56,6 @@ msgstr "" msgid "The resolved attachments data." msgstr "" -#: interactions.client.models.misc.Interaction -#: interactions.client.models.misc.InteractionData -#: interactions.client.models.misc.InteractionResolvedData of -msgid "Parameters" -msgstr "" - #: interactions.client.models.misc.InteractionData:1 of msgid "A class object representing the data of an interaction." msgstr "" @@ -102,6 +96,10 @@ msgstr "" msgid "The targeted ID of the interaction." msgstr "" +#: interactions.client.models.misc.InteractionData:12 of +msgid "Array of Action Rows in modal." +msgstr "" + #: interactions.client.models.misc.Interaction:1 of msgid "A class object representing an interaction." msgstr "" @@ -149,3 +147,6 @@ msgstr "" #: interactions.client.models.misc.Interaction:13 of msgid "The message of the interaction." msgstr "" + +#~ msgid "Parameters" +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/quickstart.po b/docs/locale/ru/LC_MESSAGES/quickstart.po index 89ed78f26..76b3670dc 100644 --- a/docs/locale/ru/LC_MESSAGES/quickstart.po +++ b/docs/locale/ru/LC_MESSAGES/quickstart.po @@ -9,14 +9,14 @@ 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" +"POT-Creation-Date: 2022-09-26 11:08-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" +"Generated-By: Babel 2.10.3\n" #: ../../quickstart.rst:2 msgid "Quickstart" @@ -28,10 +28,11 @@ msgstr "" #: ../../quickstart.rst:7 msgid "" -"**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A" -" library in Python has to be installed through the `pip` file. Run this " -"in your terminal/command line in order to install our library:" +"**discord-interactions** is a :ref:`Python library " +"` for the Discord Application Programming " +"Interface. (API) A library in Python has to be installed through the " +"`pip` file. Run this in your terminal/command line in order to install " +"our library:" msgstr "" #: ../../quickstart.rst:11 @@ -308,109 +309,116 @@ msgid "" 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``." +msgid "All arguments in the decorator are keyword arguments only." msgstr "" #: ../../quickstart.rst:209 -msgid "All other arguments in the decorator are keyword arguments only." +msgid "" +"The ``type`` and ``name`` fields default to the typehint and the name of " +"the parameter." msgstr "" #: ../../quickstart.rst:210 -msgid "The ``name`` field is required." +msgid "" +"The ``description`` field is optional and defaults to ``\"No description " +"set``." msgstr "" #: ../../quickstart.rst:211 msgid "" -"The ``description`` field is optional and defaults to ``\"No description " -"set``." +"The ``required`` field defaults to whether the default for the parameter " +"is empty." msgstr "" #: ../../quickstart.rst:212 msgid "" +"For typehinting or inputting the ``type`` field, you can use integers, " +"the default Python types, the ``OptionType`` enum, or supported objects " +"such as ``interactions.Channel``." +msgstr "" + +#: ../../quickstart.rst:213 +msgid "" "Any parameters from ``Option`` can be passed into the ``@option()`` " "decorator." msgstr "" -#: ../../quickstart.rst:215 +#: ../../quickstart.rst:216 msgid "The limit for options per command is 25." msgstr "" -#: ../../quickstart.rst:218 +#: ../../quickstart.rst:219 msgid "Nested commands: subcommands" msgstr "" -#: ../../quickstart.rst:220 +#: ../../quickstart.rst:221 msgid "" "Subcommands are options that are nested to create subcategories of " "commands." msgstr "" -#: ../../quickstart.rst:222 +#: ../../quickstart.rst:223 msgid "Here is the structure of a subcommand:" msgstr "" -#: ../../quickstart.rst:265 +#: ../../quickstart.rst:266 msgid "You can also create subcommands using the command system:" msgstr "" -#: ../../quickstart.rst:291 +#: ../../quickstart.rst:292 msgid "You can add a SUB_COMMAND_GROUP in between the base and command." msgstr "" -#: ../../quickstart.rst:294 +#: ../../quickstart.rst:295 msgid "Additional information about subcommands" msgstr "" -#: ../../quickstart.rst:296 +#: ../../quickstart.rst:297 msgid "" "Base commands are returned the :ref:`Command ` object. From this, you can utilize the following " "decorators:" msgstr "" -#: ../../quickstart.rst:299 +#: ../../quickstart.rst:300 msgid "" ":ref:`@subcommand() `: creates" " a subcommand." msgstr "" -#: ../../quickstart.rst:300 +#: ../../quickstart.rst:301 msgid "" ":ref:`@group() `: creates a " "group." msgstr "" -#: ../../quickstart.rst:301 +#: ../../quickstart.rst:302 msgid "" ":ref:`@error `: registers an " "error callback." msgstr "" -#: ../../quickstart.rst:303 +#: ../../quickstart.rst:304 msgid "Check the documentation for the parameters of each of these decorators." msgstr "" -#: ../../quickstart.rst:305 +#: ../../quickstart.rst:306 msgid "The following is an example of a base command:" msgstr "" -#: ../../quickstart.rst:313 +#: ../../quickstart.rst:314 msgid "The examples below will be using the base command above." msgstr "" -#: ../../quickstart.rst:315 +#: ../../quickstart.rst:316 msgid "The following is an example of a subcommand of the base command:" msgstr "" -#: ../../quickstart.rst:323 +#: ../../quickstart.rst:324 msgid "This code results in the following subcommand: `/base_command subcommand`." msgstr "" -#: ../../quickstart.rst:326 +#: ../../quickstart.rst:327 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 " @@ -418,50 +426,50 @@ msgid "" "``ctx`` parameter." msgstr "" -#: ../../quickstart.rst:329 +#: ../../quickstart.rst:330 msgid "The following is an example of a group with subcommands:" msgstr "" -#: ../../quickstart.rst:341 +#: ../../quickstart.rst:342 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 +#: ../../quickstart.rst:345 msgid "Create any subcommands without groups *before* creating any groups." msgstr "" -#: ../../quickstart.rst:346 +#: ../../quickstart.rst:347 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 +#: ../../quickstart.rst:361 msgid "This works on both groups and subcommands." msgstr "" -#: ../../quickstart.rst:362 +#: ../../quickstart.rst:363 msgid "The following is an example of an error callback:" msgstr "" -#: ../../quickstart.rst:378 +#: ../../quickstart.rst:379 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 +#: ../../quickstart.rst:383 msgid "You can have one error callback per command." msgstr "" -#: ../../quickstart.rst:385 +#: ../../quickstart.rst:386 msgid "Special type of commands: Context menus" msgstr "" -#: ../../quickstart.rst:387 +#: ../../quickstart.rst:388 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, " @@ -472,39 +480,39 @@ msgid "" " right-click actions with menial effort." msgstr "" -#: ../../quickstart.rst:393 +#: ../../quickstart.rst:394 msgid "" "In order to create a menu-based command, all you need to do is simply add" " this one line into your ``@command`` decorator:" msgstr "" -#: ../../quickstart.rst:406 +#: ../../quickstart.rst:407 msgid "Here is an alternate way of creating a context menu:" msgstr "" -#: ../../quickstart.rst:415 +#: ../../quickstart.rst:416 msgid "" "The structure of a menu command differs significantly from that of a " "regular one:" msgstr "" -#: ../../quickstart.rst:417 +#: ../../quickstart.rst:418 msgid "You cannot have any options or choices." msgstr "" -#: ../../quickstart.rst:418 +#: ../../quickstart.rst:419 msgid "You cannot have a description." msgstr "" -#: ../../quickstart.rst:419 +#: ../../quickstart.rst:420 msgid "The ``name`` filter follows a different regex pattern." msgstr "" -#: ../../quickstart.rst:422 +#: ../../quickstart.rst:423 msgid "Creating and sending Components" msgstr "" -#: ../../quickstart.rst:424 +#: ../../quickstart.rst:425 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 " @@ -513,14 +521,14 @@ msgid "" "components." msgstr "" -#: ../../quickstart.rst:429 +#: ../../quickstart.rst:430 msgid "" "Components are ways of being able to select pre-defined data, or define " "your own. They're very simple but quite powerful when put into practice " "This code block below shows a simplified implementation of a component:" msgstr "" -#: ../../quickstart.rst:455 +#: ../../quickstart.rst:456 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 " @@ -530,11 +538,11 @@ msgid "" "modularity." msgstr "" -#: ../../quickstart.rst:462 +#: ../../quickstart.rst:463 msgid "What kinds of components are there?" msgstr "" -#: ../../quickstart.rst:464 +#: ../../quickstart.rst:465 msgid "" "As a bot developer, this may be fairly important for you to want to know." " Different components provide difference user experiences, interactions " @@ -543,18 +551,18 @@ msgid "" "able to `find these component types`_ here." msgstr "" -#: ../../quickstart.rst:471 +#: ../../quickstart.rst:472 msgid "How do I send components in a row?" msgstr "" -#: ../../quickstart.rst:473 +#: ../../quickstart.rst:474 msgid "" "You are also able to organize these components into rows, which are " "defined as ``ActionRow``'s. It is worth noting that you can have only a " "maximum of 5 per message that you send. This code block below shows how:" msgstr "" -#: ../../quickstart.rst:505 +#: ../../quickstart.rst:506 msgid "" "By default, the ``components`` keyword-argument field in the context " "sending method will always support ``ActionRow``-less sending: you only " @@ -563,57 +571,57 @@ msgid "" "class objects instead." msgstr "" -#: ../../quickstart.rst:511 +#: ../../quickstart.rst:512 msgid "" "You cannot use ``TextInput`` with the above shown method. Look :ref:`here" " ` how to create and send them." msgstr "" -#: ../../quickstart.rst:516 +#: ../../quickstart.rst:517 msgid "Creating a TextInput" msgstr "" -#: ../../quickstart.rst:517 +#: ../../quickstart.rst:518 msgid "You want to get a Text from a user? You can use ``TextInput`` for that." msgstr "" -#: ../../quickstart.rst:529 +#: ../../quickstart.rst:530 msgid "" "But how to send it? You can't use ``ctx.send`` for it. Take a look at " ":ref:`Modals ` for that." msgstr "" -#: ../../quickstart.rst:533 +#: ../../quickstart.rst:534 msgid "Modals" msgstr "" -#: ../../quickstart.rst:534 +#: ../../quickstart.rst:535 msgid "" "Modals are a new way to interact with a user. Currently only a " "``TextInput`` component is supported. You can have up to five " "``TextInput`` in a Modal." msgstr "" -#: ../../quickstart.rst:547 +#: ../../quickstart.rst:548 msgid "with the ``TextInput`` example from above we get:" msgstr "" -#: ../../quickstart.rst:552 +#: ../../quickstart.rst:553 msgid "Responding to a Modal interaction" msgstr "" -#: ../../quickstart.rst:560 +#: ../../quickstart.rst:561 msgid "" "You can respond to a modal the same way as you would respond to a normal " "``chat-input`` command, except your function has an extra argument for " "the text what was put into the modal." msgstr "" -#: ../../quickstart.rst:563 +#: ../../quickstart.rst:564 msgid "Adding v2 Permissions" msgstr "" -#: ../../quickstart.rst:565 +#: ../../quickstart.rst:566 msgid "" "v2 permissions consist of the ``default_member_permissions`` and " "``dm_permission`` keyword arguments. Similar to adding privileged " @@ -621,55 +629,87 @@ msgid "" "etc.) as follows:" msgstr "" -#: ../../quickstart.rst:604 +#: ../../quickstart.rst:605 msgid "" "Adding guild-only commands is easier as the only thing it takes is a " "boolean. Here's an example of a guild-only command:" msgstr "" -#: ../../quickstart.rst:623 +#: ../../quickstart.rst:624 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 +#: ../../quickstart.rst:628 msgid "Utilities" msgstr "" -#: ../../quickstart.rst:629 +#: ../../quickstart.rst:630 msgid "You can use the following utilities to help you with your commands:" msgstr "" -#: ../../quickstart.rst:631 +#: ../../quickstart.rst:632 msgid "``ActionRow.new()``: Creates a new ``ActionRow`` object." msgstr "" -#: ../../quickstart.rst:632 +#: ../../quickstart.rst:633 msgid "``spread_to_rows()``: Spreads a list of components into a list of rows." msgstr "" -#: ../../quickstart.rst:633 +#: ../../quickstart.rst:634 msgid "" "``@autodefer()``: Automatically defers a command if it did not respond " "within the specified time." msgstr "" -#: ../../quickstart.rst:635 +#: ../../quickstart.rst:636 msgid "" -"Look at their documentation :ref:`here ` for " -"more information." +"Look at their documentation :ref:`here ` for more " +"information." msgstr "" -#: ../../quickstart.rst:637 +#: ../../quickstart.rst:638 msgid "Usage of ``ActionRow.new()``:" msgstr "" -#: ../../quickstart.rst:653 +#: ../../quickstart.rst:654 msgid "Usage of ``spread_to_rows()``:" msgstr "" -#: ../../quickstart.rst:675 +#: ../../quickstart.rst:676 msgid "Usage of ``@autodefer()``:" msgstr "" + +#~ msgid "" +#~ "**discord-interactions** is a :ref:`Python " +#~ "library ` for the" +#~ " Discord Application Programming Interface. " +#~ "(API) A library in Python has to" +#~ " be installed through the `pip` file." +#~ " Run this in your terminal/command " +#~ "line in order to install our " +#~ "library:" +#~ msgstr "" + +#~ 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 "" + +#~ msgid "All other arguments in the decorator are keyword arguments only." +#~ msgstr "" + +#~ msgid "The ``name`` field is required." +#~ msgstr "" + +#~ msgid "" +#~ "Look at their documentation :ref:`here " +#~ "` for more information." +#~ msgstr "" diff --git a/docs/locale/ru/LC_MESSAGES/utils.po b/docs/locale/ru/LC_MESSAGES/utils.po new file mode 100644 index 000000000..2968b6970 --- /dev/null +++ b/docs/locale/ru/LC_MESSAGES/utils.po @@ -0,0 +1,361 @@ +# 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-09-26 11:03-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.10.3\n" + +#: ../../utils.rst:4 +msgid "The ``get`` utility method" +msgstr "" + +#: interactions.utils.get.get:1 of +msgid "Helper method to get an object." +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "This method can do the following:" +msgstr "" + +#: interactions.utils.get.get:6 of +msgid "Get a list of specific objects" +msgstr "" + +#: interactions.utils.get.get:5 interactions.utils.get.get:9 of +msgid "purely from cache" +msgstr "" + +#: interactions.utils.get.get:6 interactions.utils.get.get:10 of +msgid "purely from HTTP" +msgstr "" + +#: interactions.utils.get.get:7 of +msgid "" +"from cache and additionally from HTTP for every ID that was not found in " +"cache" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "Get a single specific object" +msgstr "" + +#: interactions.utils.get.get:11 of +msgid "from HTTP if not found in cache else from cache" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "The method has to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:14 of +msgid "You don't force anything" +msgstr "" + +#: interactions.utils.get.get:15 of +msgid "You force HTTP" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "The method doesn't have to be awaited when:" +msgstr "" + +#: interactions.utils.get.get:17 of +msgid "You force cache" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "Forcing:" +msgstr "" + +#: interactions.utils.get.get:41 of +msgid "Forcing can be done via the ``force`` keyword argument." +msgstr "" + +#: interactions.utils.get.get:31 of +msgid "``force=\"cache\"`` or ``force=interactions.Force.CACHE``:" +msgstr "" + +#: interactions.utils.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.utils.get.get:41 of +msgid "``force=\"http\"`` or ``force=interactions.Force.HTTP``:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:43 of +msgid "Getting an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:48 of +msgid "Example 1/2: Getting a Channel:" +msgstr "" + +#: interactions.utils.get.get:65 of +msgid "Example 2/2: Getting a Member:" +msgstr "" + +#: interactions.utils.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.utils.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.utils.get.get:115 of +msgid "Getting a list of an object:" +msgstr "" + +#: interactions.utils.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.utils.get.get:99 of +msgid "Example 1/1: Getting a list of members:" +msgstr "" + +#: interactions.utils.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.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Parameters" +msgstr "" + +#: interactions.utils.get.get interactions.utils.utils.autodefer +#: interactions.utils.utils.disable_components +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable +#: interactions.utils.utils.spread_to_rows of +msgid "Return type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "An enumerable object representing the force types for the get method." +msgstr "" + +#: interactions.utils.get.Force of +msgid "Variables" +msgstr "" + +#: interactions.utils.get.Force:3 of +msgid "Enforce the usage of cache and block the usage of http" +msgstr "" + +#: interactions.utils.get.Force:4 of +msgid "Enforce the usage of http and block the usage of cache" +msgstr "" + +#: interactions.utils.get.Force of +msgid "Member Type" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid ":py:class:`str`" +msgstr "" + +#: interactions.utils.get.Force:1 of +msgid "Valid values are as follows:" +msgstr "" + +#: interactions.utils.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 "" + +#: ../../utils.rst:10 +msgid "Utilities" +msgstr "" + +#: interactions.utils.utils.autodefer:1 of +msgid "" +"A decorator that automatically defers a command if it did not respond " +"within ``delay`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:3 of +msgid "The structure of the decorator is:" +msgstr "" + +#: interactions.utils.utils.autodefer:13 of +msgid "" +"The amount of time in seconds to wait before defering the command. " +"Defaults to ``2`` seconds." +msgstr "" + +#: interactions.utils.utils.autodefer:15 of +msgid "Whether the command is deferred ephemerally. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer:17 of +msgid "Whether the command is deferred on origin. Defaults to ``False``." +msgstr "" + +#: interactions.utils.utils.autodefer +#: interactions.utils.utils.get_channel_history +#: interactions.utils.utils.search_iterable of +msgid "Returns" +msgstr "" + +#: interactions.utils.utils.autodefer:19 of +msgid "The inner function, for decorating." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:1 of +msgid "A helper function that spreads components into :class:`ActionRow` s." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:3 of +msgid "Example:" +msgstr "" + +#: interactions.utils.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.utils.utils.spread_to_rows:26 of +msgid "The components to spread." +msgstr "" + +#: interactions.utils.utils.spread_to_rows:28 of +msgid "The maximum number of components in a single row. Defaults to ``5``." +msgstr "" + +#: interactions.utils.utils.search_iterable:1 of +msgid "" +"Searches through an iterable for items that: - Are True for the check, if" +" one is given - Have attributes that match the keyword arguments (e.x. " +"passing `id=your_id` will only return objects with that id)" +msgstr "" + +#: interactions.utils.utils.search_iterable:5 of +msgid "The iterable to search through" +msgstr "" + +#: interactions.utils.utils.search_iterable:7 of +msgid "The check that items will be checked against" +msgstr "" + +#: interactions.utils.utils.search_iterable:9 of +msgid "Any attributes the items should have" +msgstr "" + +#: interactions.utils.utils.search_iterable:11 of +msgid "All items that match the check and keywords" +msgstr "" + +#: interactions.utils.utils.disable_components:1 of +msgid "Disables the given components." +msgstr "" + +#: interactions.utils.utils.disable_components:3 of +msgid "The components to disable" +msgstr "" + +#: interactions.utils.utils.get_channel_history:1 of +msgid "Gets the history of a channel." +msgstr "" + +#: interactions.utils.utils.get_channel_history:3 of +msgid "The HTTPClient of the bot or your bot instance" +msgstr "" + +#: interactions.utils.utils.get_channel_history:5 of +msgid "The channel to get the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:7 of +msgid "The message to begin getting the history from" +msgstr "" + +#: interactions.utils.utils.get_channel_history:9 of +msgid "Whether to only get newer message. Default False" +msgstr "" + +#: interactions.utils.utils.get_channel_history:11 of +msgid "A check to ignore specific messages" +msgstr "" + +#: interactions.utils.utils.get_channel_history:13 of +msgid "A set maximum of messages to get before stopping the iteration" +msgstr "" + +#: interactions.utils.utils.get_channel_history:16 of +msgid "An asynchronous iterator over the history of the channel" +msgstr "" diff --git a/docs/models.rst b/docs/models.rst index 73d017149..949fdd220 100644 --- a/docs/models.rst +++ b/docs/models.rst @@ -9,4 +9,3 @@ Interaction Models models.command.rst models.component.rst models.misc.rst - models.utils.rst diff --git a/docs/models.utils.rst b/docs/models.utils.rst deleted file mode 100644 index 1601d1b7e..000000000 --- a/docs/models.utils.rst +++ /dev/null @@ -1,7 +0,0 @@ -.. currentmodule:: interactions - -Utilities -========================== - -.. automodule:: interactions.client.models.utils - :members: diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 5756fa74b..79cc69380 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -4,7 +4,7 @@ Quickstart Installing ********** -**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) +**discord-interactions** is a :ref:`Python library ` for the Discord Application Programming Interface. (API) A library in Python has to be installed through the `pip` file. Run this in your terminal/command line in order to install our library: @@ -633,7 +633,7 @@ You can use the following utilities to help you with your commands: * ``spread_to_rows()``: Spreads a list of components into a list of rows. * ``@autodefer()``: Automatically defers a command if it did not respond within the specified time. -Look at their documentation :ref:`here ` for more information. +Look at their documentation :ref:`here ` for more information. Usage of ``ActionRow.new()``: diff --git a/docs/utils.rst b/docs/utils.rst new file mode 100644 index 000000000..c450ac2e7 --- /dev/null +++ b/docs/utils.rst @@ -0,0 +1,13 @@ +.. currentmodule:: interactions + +The ``get`` utility method +================ + +.. automodule:: interactions.utils.get + :members: + +Utilities +========================== + +.. automodule:: interactions.utils.utils + :members: diff --git a/interactions/api/error.py b/interactions/api/error.py index 1f22d66ab..ea1be79ff 100644 --- a/interactions/api/error.py +++ b/interactions/api/error.py @@ -91,6 +91,7 @@ def lookup(code: int) -> str: 11: "Error creating your command.", 12: "Invalid set of arguments specified.", 13: "No HTTPClient set!", + 14: "Fatal conflict between object and attempted action.", # HTTP errors 400: "Bad Request. The request was improperly formatted, or the server couldn't understand it.", 401: "Not authorized. Double check your token to see if it's valid.", @@ -241,8 +242,7 @@ def lookup(code: int) -> str: 50028: "Invalid role", 50033: "Invalid Recipient(s)", 50034: "A message provided was too old to bulk delete", - 50035: "Invalid form body (returned for both application/json and multipart/form-data bodies)," - " or invalid Content-Type provided", + 50035: "Invalid form body or invalid Content-Type provided", 50036: "An invite was accepted to a guild the application's bot is not in", 50041: "Invalid API version provided", 50045: "File uploaded exceeds the maximum size", @@ -309,12 +309,29 @@ def __init__(self, code: int = 0, message: str = None, severity: int = 0, **kwar self.log(self.message) if _fmt_error: + + _flag: bool = ( + self.message.lower() in self.lookup(self.code).lower() + ) # creativity is hard + + _fmt = "\n".join( + [ + f"Error at {e[2]}: {e[0]} - {e[1] if e[1].endswith('.') else f'{e[1]}.'}" + for e in _fmt_error + ] + ) + super().__init__( - f"{self.message} (code: {self.code}, severity {self.severity})\n" - + "\n".join([f"Error at {e[2]}: {e[0]} - {e[1]}" for e in _fmt_error]) + "\n" + f" Error {self.code} | {self.message if _flag else self.lookup(self.code)}\n" + f" {_fmt if _flag else self.message}\n" + f" {f'Severity {self.severity}.' if _flag else _fmt}\n" + f" {'' if _flag else f'Severity {self.severity}.'}" ) else: super().__init__( - f"An error occurred:\n" - f"{self.message}, with code '{self.code}' and severity '{self.severity}'" + "\n" + f" Error {self.code} | {self.lookup(self.code)}:\n" + f" {self.message}{'' if self.message.endswith('.') else '.'}\n" + f" Severity {self.severity}." ) diff --git a/interactions/api/gateway/client.py b/interactions/api/gateway/client.py index f8d73e49f..e9fd15579 100644 --- a/interactions/api/gateway/client.py +++ b/interactions/api/gateway/client.py @@ -45,6 +45,7 @@ if TYPE_CHECKING: from ...client.context import _Context from ..cache import Storage + from ..models.gw import GuildMembers log = get_logger("gateway") @@ -338,7 +339,7 @@ def _dispatch_event(self, event: str, data: dict) -> None: :param data: The data for the event. :type data: dict """ - self._dispatch.dispatch("raw_socket_create", data) + self._dispatch.dispatch("raw_socket_create", event, data) path: str = "interactions" path += ".models" if event == "INTERACTION_CREATE" else ".api.models" if event == "INTERACTION_CREATE": @@ -535,6 +536,17 @@ def _dispatch_event(self, event: str, data: dict) -> None: self._dispatch.dispatch(f"on_{name}", old_obj or obj) + elif "guild_members_chunk" in name: + self.__modify_guild_cache(name, data, model, obj, ids=ids) + + _member_cache: "Storage" = self._http.cache[Member] + obj: GuildMembers + for member in obj.members: + member._guild_id = obj.guild_id + _member_cache.add(member, (obj.guild_id, member.id)) + + self._dispatch.dispatch(f"on_{name}", obj) + else: self._dispatch.dispatch(f"on_{name}", obj) @@ -542,7 +554,7 @@ def _dispatch_event(self, event: str, data: dict) -> None: log.warning(f"An error occurred dispatching {name}: {error}") def __get_object_id( - self, data: dict, obj: Any, model: Any + self, data: dict, obj: Any, model: type ) -> Optional[Union[Snowflake, Tuple[Snowflake, Snowflake]]]: """ Gets an ID from object. @@ -552,7 +564,7 @@ def __get_object_id( :param obj: The object of the event. :type obj: Any :param model: The model of the event. - :type model: Any + :type model: type :return: Object ID :rtype: Optional[Union[Snowflake, Tuple[Snowflake, Snowflake]]] """ @@ -581,14 +593,14 @@ def __get_object_id( return id - def __get_object_ids(self, obj: Any, model: Any) -> Optional[List[Snowflake]]: + def __get_object_ids(self, obj: Any, model: type) -> Optional[List[Snowflake]]: """ Gets a list of ids of object. :param obj: The object of the event. :type obj: Any :param model: The model of the event. - :type model: Any + :type model: type :return: Object IDs :rtype: Optional[Union[Snowflake, Tuple[Snowflake, Snowflake]]] """ @@ -648,7 +660,7 @@ def __modify_guild_cache( if iterable is not None and isinstance(iterable, list): if "_create" in name or "_add" in name: iterable.append(obj) - if id: + elif id: _id = id[1] if isinstance(id, tuple) else id for index, __obj in enumerate(iterable): if __obj.id == _id: @@ -658,11 +670,19 @@ def __modify_guild_cache( elif "_update" in name and hasattr(obj, "id"): iterable[index] = obj break - elif ids is not None and "_update" in name: - objs = getattr(obj, attr, None) - if objs is not None: + elif ids is not None and (objs := getattr(obj, attr, None)) is not None: + if "_update" in name: iterable.clear() iterable.extend(objs) + elif "_chunk" in name: + for _obj in objs: + for index, __obj in enumerate(iterable): + if __obj.id == _obj.id: + iterable[index] = _obj + break + else: + iterable.append(_obj) + setattr(guild, attr, iterable) self._http.cache[Guild].add(guild) @@ -961,16 +981,25 @@ async def _send_packet(self, data: Dict[str, Any]) -> None: packet: str = _data.decode("utf-8") if isinstance(_data, bytes) else _data log.debug(packet) - async with self.reconnect_lock: # needs to lock while it reconnects. + if data["op"] in {OpCodeType.IDENTIFY.value, OpCodeType.RESUME.value}: + # This can't use the reconnect lock *because* its already referenced in + # self._reconnect(), hence an infinite hang. - if data["op"] != OpCodeType.HEARTBEAT.value: - # This is because the ratelimiter limits already accounts for this. - await self._ratelimiter.block() - - if self._client is not None: # this mitigates against another edge case. + if self._client is not None: self._last_send = perf_counter() await self._client.send_str(packet) + else: + async with self.reconnect_lock: # needs to lock while it reconnects. + + if data["op"] != OpCodeType.HEARTBEAT.value: + # This is because the ratelimiter limits already accounts for this. + await self._ratelimiter.block() + + if self._client is not None: # this mitigates against another edge case. + self._last_send = perf_counter() + + await self._client.send_str(packet) async def __identify( self, shard: Optional[List[Tuple[int]]] = None, presence: Optional[ClientPresence] = None @@ -1051,6 +1080,42 @@ async def _update_presence(self, presence: ClientPresence) -> None: log.debug(f"UPDATE_PRESENCE: {presence._json}") self.__presence = presence + async def request_guild_members( + self, + guild_id: int, + limit: int, + query: Optional[str] = None, + presences: Optional[bool] = None, + user_ids: Optional[Union[int, List[int]]] = None, + nonce: Optional[str] = None, + ) -> None: + """Sends an ``REQUEST_MEMBERS`` packet to the gateway. + + :param guild_id: ID of the guild to get members for. + :type guild_id: int + :param limit: Maximum number of members to send matching the 'query' parameter. Required when specifying 'query'. + :type limit: int + :param query: String that username starts with. + :type query: Optional[str] + :param presences: Used to specify if we want the presences of the matched members. + :type presences: Optional[bool] + :param user_ids: Used to specify which users you wish to fetch. + :type user_ids: Optional[Union[int, List[int]]] + :param nonce: Nonce to identify the Guild Members Chunk response. + :type nonce: Optional[str] + """ + _data: dict = {"guild_id": guild_id, "query": query or "", "limit": limit} + if presences is not None: + _data["presences"] = presences + if user_ids is not None: + _data["user_ids"] = user_ids + if nonce is not None: + _data["nonce"] = nonce + payload: dict = {"op": OpCodeType.REQUEST_MEMBERS.value, "d": _data} + + await self._send_packet(payload) + log.debug(f"REQUEST_MEMBERS: {payload}") + async def close(self) -> None: """ Closes the current connection. diff --git a/interactions/api/http/channel.py b/interactions/api/http/channel.py index 52112c273..dd0a40899 100644 --- a/interactions/api/http/channel.py +++ b/interactions/api/http/channel.py @@ -368,7 +368,7 @@ async def edit_tag( Route("PUT", f"/channels/{channel_id}/tags/{tag_id}"), json=_dct ) - async def delete_tag(self, channel_id: int, tag_id: int) -> dict: + async def delete_tag(self, channel_id: int, tag_id: int) -> None: # wha? """ Delete a forum tag. diff --git a/interactions/api/http/thread.py b/interactions/api/http/thread.py index ecf193c87..a56dcf1d2 100644 --- a/interactions/api/http/thread.py +++ b/interactions/api/http/thread.py @@ -199,7 +199,7 @@ async def create_thread_in_forum( channel_id: int, name: str, auto_archive_duration: int, - message_payload: dict, + message: dict, applied_tags: List[str] = None, files: Optional[List[File]] = MISSING, rate_limit_per_user: Optional[int] = None, @@ -221,14 +221,14 @@ async def create_thread_in_forum( """ query = {"use_nested_fields": 1} - payload = {"name": name, "auto_archive_duration": auto_archive_duration} + payload = {"name": name, "auto_archive_duration": auto_archive_duration, "message": message} if rate_limit_per_user: payload["rate_limit_per_user"] = rate_limit_per_user if applied_tags: payload["applied_tags"] = applied_tags data = None - if files is not MISSING and len(files) > 0: + if files is not MISSING and files and len(files) > 0: # edge case `None` data = MultipartWriter("form-data") part = data.append_json(payload) @@ -243,7 +243,7 @@ async def create_thread_in_forum( "form-data", name=f"files[{str(id)}]", filename=file._filename ) else: - payload.update(message_payload) + payload.update(message) return await self._req.request( Route("POST", f"/channels/{channel_id}/threads"), diff --git a/interactions/api/models/audit_log.py b/interactions/api/models/audit_log.py index 5c07cf98c..a94827d05 100644 --- a/interactions/api/models/audit_log.py +++ b/interactions/api/models/audit_log.py @@ -79,6 +79,8 @@ class AuditLogEvents(IntEnum): :ivar int AUTO_MODERATION_RULE_UPDATE: 141 - Auto Moderation rule was updated :ivar int AUTO_MODERATION_RULE_DELETE: 142 - Auto Moderation rule was deleted :ivar int AUTO_MODERATION_BLOCK_MESSAGE: 143 - Message was blocked by AutoMod (according to a rule) + :ivar int AUTO_MODERATION_FLAG_TO_CHANNEL: 144 - Message was flagged by AutoMod (according to a rule) + :ivar int AUTO_MODERATION_USER_COMMUNICATION_DISABLED: 145 - Member was timed out by AutoMod (according to a rule) """ # guild related @@ -162,6 +164,8 @@ class AuditLogEvents(IntEnum): AUTO_MODERATION_RULE_UPDATE = 141 AUTO_MODERATION_RULE_DELETE = 142 AUTO_MODERATION_BLOCK_MESSAGE = 143 + AUTO_MODERATION_FLAG_TO_CHANNEL = 144 + AUTO_MODERATION_USER_COMMUNICATION_DISABLED = 145 @define() @@ -186,6 +190,8 @@ class OptionalAuditEntryInfo(DictSerializerMixin): :ivar Snowflake application_id: ID of the app whose permissions were targeted. ``AuditLogEvents``-type: 121 :ivar Snowflake channel_id: Channel in which the entities were targeted. ``AuditLogEvents``-types: 26, 74, 75, 72, 83, 84, 85 + :ivar str auto_moderation_rule_name: Name of the Auto Moderation rule that was triggered. ``AuditLogEvents``-types: 143, 144, 145 + :ivar str auto_moderation_rule_trigger_type: Trigger type of the Auto Moderation rule that was triggered. ``AuditLogEvents``-types: 143, 144, 145 :ivar str count: Number of entities that were targeted. ``AuditLogEvents``-types: 72, 73, 27, 26 :ivar str delete_member_days: Number of days after which inactive members were kicked. ``AuditLogEvents``-types: 21 :ivar Snowflake id: ID of the overwritten entity. ``AuditLogEvents``-types: 13, 14, 15 @@ -197,6 +203,8 @@ class OptionalAuditEntryInfo(DictSerializerMixin): application_id: Snowflake = field(converter=Snowflake) channel_id: Snowflake = field(converter=Snowflake) + auto_moderation_rule_name: str = field() + auto_moderation_rule_trigger_type: str = field() count: str = field() delete_member_days: str = field() id: Snowflake = field(converter=Snowflake) diff --git a/interactions/api/models/channel.py b/interactions/api/models/channel.py index fdb01e1ac..4c5144efa 100644 --- a/interactions/api/models/channel.py +++ b/interactions/api/models/channel.py @@ -285,7 +285,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): @define() -class Tags(DictSerializerMixin): +class Tags(ClientSerializerMixin): # helpers, hehe :D """ An object denoting a tag object within a forum channel. @@ -307,6 +307,75 @@ class Tags(DictSerializerMixin): # Maybe on post_attrs_init replace emoji object with one from cache for name population? + async def delete( + self, channel_id: Union[int, str, Snowflake, "Channel"] # discord, why :hollow: + ) -> None: + """ + Deletes this tag + + :param channel_id: The ID of the channel where the tag belongs to + :type channel_id: Union[int, str, Snowflake, Channel] + """ + if isinstance(channel_id, Channel) and channel_id.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Can only manage tags on a forum channel") + + if not self._client: + raise LibraryException(code=13) + + _channel_id = int(channel_id.id) if isinstance(channel_id, Channel) else int(channel_id) + + return await self._client.delete_tag(_channel_id, int(self.id)) + + async def edit( + self, + channel_id: Union[int, str, Snowflake, "Channel"], # discord, why :hollow: + name: str, + emoji_name: Optional[str] = MISSING, + emoji_id: Optional[int] = MISSING, + ) -> "Tags": + """ + Edits this tag + + .. note:: + Can either have an emoji_id or an emoji_name, but not both. + emoji_id is meant for custom emojis, emoji_name is meant for unicode emojis. + + :param channel_id: The ID of the channel where the tag belongs to + :type channel_id: Union[int, str, Snowflake, Channel] + :param name: The new name of the tag + :type name: str + :param emoji_id: The ID of the emoji to use for the tag + :type emoji_id: Optional[int] + :param emoji_name: The name of the emoji to use for the tag + :type emoji_name: Optional[int] + :return: The modified tag + :rtype: Tags + """ + + if isinstance(channel_id, Channel) and channel_id.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Can only manage tags on a forum channel") + + if not self._client: + raise LibraryException(code=13) + + _channel_id = int(channel_id.id) if isinstance(channel_id, Channel) else int(channel_id) + + payload = {"name": name} + + if emoji_id is not MISSING and emoji_id and emoji_name and emoji_name is not MISSING: + raise LibraryException( + code=12, message="emoji_id and emoji_name are mutually exclusive" + ) + + if emoji_id is not MISSING: + payload["emoji_id"] = emoji_id + if emoji_name is not MISSING: + payload["emoji_name"] = emoji_name + + data = await self._client.edit_tag(_channel_id, int(self.id), **payload) + + return Tags(**data) + @define() class Channel(ClientSerializerMixin, IDMixin): @@ -395,7 +464,9 @@ class Channel(ClientSerializerMixin, IDMixin): flags: Optional[int] = field(default=None, repr=False) total_message_sent: Optional[int] = field(default=None, repr=False) default_thread_slowmode_delay: Optional[int] = field(default=None, repr=False) - tags: Optional[List[Tags]] = field(converter=convert_list(Tags), default=None, repr=False) + available_tags: Optional[List[Tags]] = field( + converter=convert_list(Tags), default=None, add_client=True + ) # eh? default_reaction_emoji: Optional[Emoji] = field(converter=Emoji, default=None) def __attrs_post_init__(self): # sourcery skip: last-if-guard @@ -497,6 +568,10 @@ async def send( :return: The sent message as an object. :rtype: Message """ + + if self.type == ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Cannot message a forum channel!") + if not self._client: raise LibraryException(code=13) from ...client.models.component import _build_components @@ -1482,6 +1557,266 @@ async def join(self) -> None: await self._client.join_thread(int(self.id)) + async def create_tag( + self, + name: str, + emoji_id: Optional[int] = MISSING, + emoji_name: Optional[str] = MISSING, + ) -> Tags: + """ + Create a new tag. + + .. note:: + Can either have an emoji_id or an emoji_name, but not both. + emoji_id is meant for custom emojis, emoji_name is meant for unicode emojis. + + :param name: The name of the tag + :type name: str + :param emoji_id: The ID of the emoji to use for the tag + :type emoji_id: Optional[int] + :param emoji_name: The name of the emoji to use for the tag + :type emoji_name: Optional[str] + :return: The create tag object + :rtype: Tags + """ + + if not self._client: + raise LibraryException(code=13) + + if self.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Tags can only be created in forum channels!") + + if emoji_id is not MISSING and emoji_id and emoji_name and emoji_name is not MISSING: + raise LibraryException( + code=12, message="emoji_id and emoji_name are mutually exclusive" + ) + + payload = {"name": name} + + if emoji_id is not MISSING: + payload["emoji_id"] = emoji_id + if emoji_name is not MISSING: + payload["emoji_name"] = emoji_name + + data = await self._client.create_tag(int(self.id), **payload) + + return Tags(**data) + + async def edit_tag( + self, + tag_id: Union[int, str, Snowflake, Tags], # discord, why :hollow: + name: str, + emoji_name: Optional[str] = MISSING, + emoji_id: Optional[int] = MISSING, + ) -> "Tags": + """ + Edits a tag + + .. note:: + Can either have an emoji_id or an emoji_name, but not both. + emoji_id is meant for custom emojis, emoji_name is meant for unicode emojis. + + :param tag_id: The ID of the tag to edit + :type tag_id: Union[int, str, Snowflake, Tag] + :param name: The new name of the tag + :type name: str + :param emoji_id: The ID of the emoji to use for the tag + :type emoji_id: Optional[int] + :param emoji_name: The name of the emoji to use for the tag + :type emoji_name: Optional[int] + :return: The modified tag + :rtype: Tags + """ + _tag_id = int(tag_id.id) if isinstance(tag_id, Tags) else int(tag_id) + + if emoji_id is not MISSING and emoji_id and emoji_name and emoji_name is not MISSING: + raise LibraryException( + code=12, message="emoji_id and emoji_name are mutually exclusive" + ) + + if self.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Tags can only be created in forum channels!") + + payload = {"name": name} + + if emoji_id is not MISSING: + payload["emoji_id"] = emoji_id + if emoji_name is not MISSING: + payload["emoji_name"] = emoji_name + + data = await self._client.edit_tag(int(self.id), _tag_id, **payload) + + return Tags(**data) + + async def delete_tag( + self, tag_id: Union[int, str, Snowflake, Tags] # discord, why :hollow: + ) -> None: + """ + Deletes a tag + + :param tag_id: The ID of the Tag + :type tag_id: Union[int, str, Snowflake, Tags] + """ + if self.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Tags can only be created in forum channels!") + + _tag_id = int(tag_id.id) if isinstance(tag_id, Tags) else int(tag_id) + + return await self._client.delete_tag(int(self.id), _tag_id) + + async def create_forum_post( + self, + name: str, + content: Union[ + dict, "Message", str, "Attachment", List["Attachment"] + ], # overkill but why not + auto_archive_duration: Optional[int] = MISSING, + applied_tags: Union[List[str], List[int], List[Tags], int, str, Tags] = MISSING, + files: Optional[List[File]] = MISSING, + rate_limit_per_user: Optional[int] = MISSING, + reason: Optional[str] = None, + ) -> "Channel": + """ + Creates a new post inside a forum channel + + :param name: The name of the thread + :type name: str + :param auto_archive_duration: duration in minutes to automatically archive the thread after recent activity, + can be set to: 60, 1440, 4320, 10080 + :type auto_archive_duration: Optional[int] + :param content: The content to send as first message. + :type content: Union[dict, "Message", str, "Attachment", List["Attachment"]] + :param applied_tags: Tags to give to the created thread + :type applied_tags: Union[List[str], List[int], List[Tags], int, str, Tags] + :param files: An optional list of files to send attached to the message. + :type files: Optional[List[File]] + :param rate_limit_per_user: Seconds a user has to wait before sending another message (0 to 21600), if given. + :type rate_limit_per_user: Optional[int] + :param reason: An optional reason for the audit log + :type reason: Optional[str] + :returns: A channel of ChannelType 11 (THREAD) + :rtype: Channel + """ + + if self.type != ChannelType.GUILD_FORUM: + raise LibraryException(code=14, message="Cannot create a post outside a forum channel") + + if not self._client: + raise LibraryException(code=13) + + from .message import Attachment + + _top_payload: dict = { + "name": name, + "reason": reason, + "rate_limit_per_user": rate_limit_per_user + if rate_limit_per_user is not MISSING + else None, + "auto_archive_duration": auto_archive_duration + if auto_archive_duration is not MISSING + else None, + } + + from .message import Message + + __files = [] if files is MISSING else files + + if isinstance(content, dict): # just assume they know what they're doing + _content = content + + elif isinstance(content, Message): + if content.attachments and any(attach.id is None for attach in content.attachments): + del content._json["attachments"] + + for attach in content.attachments: + _data = await attach.download() + + __files.append(File(attach.filename, _data)) + + if not __files or __files is MISSING: + _files = [] + elif isinstance(__files, list): + _files = [file._json_payload(id) for id, file in enumerate(__files)] + else: + _files = [__files._json_payload(0)] + __files = [__files] + + content._json["attachments"] = _files + + _content = content._json + + elif isinstance(content, Attachment): + if content.id: + _content: dict = {"attachments": [content._json]} + else: + data = await content.download() + + __files.append(File(content.name, data)) + + if not __files or __files is MISSING: + _files = [] + elif isinstance(__files, list): + _files = [file._json_payload(id) for id, file in enumerate(__files)] + else: + _files = [__files._json_payload(0)] + __files = [__files] + + _content: dict = {"attachments": [_files]} + + elif isinstance(content, list): + _content = {"attachments": []} + if any(not isinstance(item, Attachment) for item in content): + raise LibraryException(code=12) + + attach: Attachment + for attach in content: + if attach.id: + _content["attachments"].append(attach._json) + + else: + + _data = await attach.download() + + __files.append(File(attach.filename, _data)) + + if not __files or __files is MISSING: + _files = [] + elif isinstance(__files, list): + _files = [file._json_payload(id) for id, file in enumerate(__files)] + else: + _files = [__files._json_payload(0)] + __files = [__files] + + _content["attachments"].extend(_files) + + else: + _content: dict = {"content": content} + + _top_payload["files"] = __files + _top_payload["message"] = _content + + if applied_tags is not MISSING: + _tags = [] + if isinstance(applied_tags, list): + for tag in applied_tags: + if isinstance(tag, Tags): + _tags.append(str(tag.id)) + else: + _tags.append(str(tag)) + + elif isinstance(applied_tags, Tags): + _tags.append(str(applied_tags.id)) + else: + _tags.append(str(applied_tags)) + else: + applied_tags = [] + + _top_payload["applied_tags"] = applied_tags + + data = await self._client.create_thread_in_forum(int(self.id), **_top_payload) + + return Channel(**data) + async def get_permissions_for(self, member: "Member") -> Permissions: """ Returns the permissions of the member in this specific channel. @@ -1507,20 +1842,18 @@ async def get_permissions_for(self, member: "Member") -> Permissions: # @everyone role overwrites from interactions.utils.utils import search_iterable - overwrite_everyone = search_iterable( + if overwrite_everyone := search_iterable( self.permission_overwrites, lambda overwrite: int(overwrite.id) == int(self.guild_id) - ) - if overwrite_everyone: + ): permissions &= ~int(overwrite_everyone[0].deny) permissions |= int(overwrite_everyone[0].allow) # Apply role specific overwrites allow, deny = 0, 0 for role_id in member.roles: - overwrite_role = search_iterable( + if overwrite_role := search_iterable( self.permission_overwrites, lambda overwrite: int(overwrite.id) == int(role_id) - ) - if overwrite_role: + ): allow |= int(overwrite_role[0].allow) deny |= int(overwrite_role[0].deny) @@ -1530,10 +1863,9 @@ async def get_permissions_for(self, member: "Member") -> Permissions: permissions |= allow # Apply member specific overwrites - overwrite_member = search_iterable( + if overwrite_member := search_iterable( # sourcery self.permission_overwrites, lambda overwrite: int(overwrite.id) == int(member.id) - ) - if overwrite_member: + ): permissions &= ~int(overwrite_member[0].deny) permissions |= int(overwrite_member[0].allow) diff --git a/interactions/api/models/guild.py b/interactions/api/models/guild.py index e676fcc1f..5bd09847e 100644 --- a/interactions/api/models/guild.py +++ b/interactions/api/models/guild.py @@ -2722,14 +2722,14 @@ async def get_latest_audit_log_action( AuditLogEvents, int, Member, - Tuple[Union[User, Member, Snowflake, int], Union[AuditLogs, int]], + Tuple[Union[User, Member, Snowflake, int], Union[AuditLogEvents, int]], ], ) -> AuditLogs: """ Gets the latest audit log action of either a user or an action type :param of: The user, user id or action type to look for - :type of: Union[User, Snowflake, AuditLogEvents, int, Tuple[Union[User, Snowflake, int], Union[AuditLogs, int]]] + :type of: Union[User, Snowflake, AuditLogEvents, int, Tuple[Union[User, Snowflake, int], Union[AuditLogEvents, int]]] :return: The latest AuditLog action that applies to the ``of`` parameter :rtype: AuditLogs """ diff --git a/interactions/api/models/gw.py b/interactions/api/models/gw.py index ee62ff293..52eb94f89 100644 --- a/interactions/api/models/gw.py +++ b/interactions/api/models/gw.py @@ -262,7 +262,7 @@ class GuildMembers(DictSerializerMixin): A class object representing the gateway event ``GUILD_MEMBERS_CHUNK``. :ivar Snowflake guild_id: The guild ID of the event. - :ivar List[GuildMember] members: The members of the event. + :ivar List[Member] members: The members of the event. :ivar int chunk_index: The current chunk index of the event. :ivar int chunk_count: The total chunk count of the event. :ivar list not_found: A list of not found members in the event if an invalid request was made. @@ -271,7 +271,7 @@ class GuildMembers(DictSerializerMixin): """ guild_id: Snowflake = field(converter=Snowflake) - members: List[GuildMember] = field(converter=convert_list(GuildMember)) + members: List[Member] = field(converter=convert_list(Member), add_client=True) chunk_index: int = field() chunk_count: int = field() not_found: Optional[list] = field(default=None) diff --git a/interactions/api/models/member.py b/interactions/api/models/member.py index 4ab8aacc9..febd5e813 100644 --- a/interactions/api/models/member.py +++ b/interactions/api/models/member.py @@ -68,6 +68,13 @@ class Member(ClientSerializerMixin, IDMixin): def __str__(self) -> str: return self.name or "" + def __getattr__(self, name): + # Forward any attributes the user has to make it easier for devs + try: + return getattr(self.user, name) + except AttributeError as e: + raise AttributeError(f"Neither `User` nor `Member` have attribute {name}") from e + @property def guild_id(self) -> Optional[Union[Snowflake, LibraryException]]: """ diff --git a/interactions/api/models/misc.py b/interactions/api/models/misc.py index 26e3c3ce3..34e15e208 100644 --- a/interactions/api/models/misc.py +++ b/interactions/api/models/misc.py @@ -18,6 +18,7 @@ from ...utils.attrs_utils import DictSerializerMixin, convert_list, define, field from ...utils.missing import MISSING from ..error import LibraryException +from .flags import Permissions __all__ = ( "AutoModKeywordPresetTypes", @@ -46,14 +47,14 @@ class Overwrite(DictSerializerMixin): :ivar str id: Role or User ID :ivar int type: Type that corresponds ot the ID; 0 for role and 1 for member. - :ivar str allow: Permission bit set. - :ivar str deny: Permission bit set. + :ivar Union[Permissions, int, str] allow: Permission bit set. + :ivar Union[Permissions, int, str] deny: Permission bit set. """ id: int = field() type: int = field() - allow: str = field() - deny: str = field() + allow: Union[Permissions, int, str] = field() + deny: Union[Permissions, int, str] = field() @define() diff --git a/interactions/api/models/user.py b/interactions/api/models/user.py index 004d59cd7..97a5b87cf 100644 --- a/interactions/api/models/user.py +++ b/interactions/api/models/user.py @@ -1,11 +1,15 @@ -from typing import TYPE_CHECKING, Optional, Union +from typing import TYPE_CHECKING, List, Optional, Union from ...utils.attrs_utils import ClientSerializerMixin, define, field +from ...utils.missing import MISSING +from ..error import LibraryException from .flags import UserFlags -from .misc import IDMixin, Snowflake +from .misc import AllowedMentions, File, IDMixin, Snowflake if TYPE_CHECKING: + from ...client.models.component import ActionRow, Button, SelectMenu from .gw import Presence + from .message import Attachment, Embed, Message __all__ = ("User",) @@ -111,3 +115,93 @@ def presence(self) -> Optional["Presence"]: from .gw import Presence return self._client.cache[Presence].get(self.id) + + async def send( + self, + content: Optional[str] = MISSING, + *, + components: Optional[ + Union[ + "ActionRow", + "Button", + "SelectMenu", + List["ActionRow"], + List["Button"], + List["SelectMenu"], + ] + ] = MISSING, + tts: Optional[bool] = MISSING, + attachments: Optional[List["Attachment"]] = MISSING, + files: Optional[Union[File, List[File]]] = MISSING, + embeds: Optional[Union["Embed", List["Embed"]]] = MISSING, + allowed_mentions: Optional[Union[AllowedMentions, dict]] = MISSING, + ) -> "Message": + """ + Sends a DM to the user. + + :param content?: The contents of the message as a string or string-converted value. + :type content?: Optional[str] + :param components?: A component, or list of components for the message. + :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]] + :param tts?: Whether the message utilizes the text-to-speech Discord programme or not. + :type tts?: Optional[bool] + :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first + :type attachments?: Optional[List[Attachment]] + :param files?: A file or list of files to be attached to the message. + :type files?: Optional[Union[File, List[File]]] + :param embeds?: An embed, or list of embeds for the message. + :type embeds?: Optional[Union[Embed, List[Embed]]] + :param allowed_mentions?: The allowed mentions for the message. + :type allowed_mentions?: Optional[Union[AllowedMentions, dict]] + :return: The sent message as an object. + :rtype: Message + """ + if not self._client: + raise LibraryException(code=13) + from ...client.models.component import _build_components + from .message import Message + + _content: str = "" if content is MISSING else content + _tts: bool = False if tts is MISSING else tts + _attachments = [] if attachments is MISSING else [a._json for a in attachments] + _embeds: list = ( + [] + if not embeds or embeds is MISSING + else ([embed._json for embed in embeds] if isinstance(embeds, list) else [embeds._json]) + ) + _allowed_mentions: dict = ( + {} + if allowed_mentions is MISSING + else allowed_mentions._json + if isinstance(allowed_mentions, AllowedMentions) + else allowed_mentions + ) + if not components or components is MISSING: + _components = [] + else: + _components = _build_components(components=components) + + if not files or files is MISSING: + _files = [] + elif isinstance(files, list): + _files = [file._json_payload(id) for id, file in enumerate(files)] + else: + _files = [files._json_payload(0)] + files = [files] + + _files.extend(_attachments) + + payload = dict( + content=_content, + tts=_tts, + attachments=_files, + embeds=_embeds, + components=_components, + allowed_mentions=_allowed_mentions, + ) + channel = await self._client.create_dm(recipient_id=int(self.id)) + res = await self._client.create_message( + channel_id=int(channel["id"]), payload=payload, files=files + ) + + return Message(**res, _client=self._client) diff --git a/interactions/base.py b/interactions/base.py index 9dd345ba2..6f96725a7 100644 --- a/interactions/base.py +++ b/interactions/base.py @@ -6,7 +6,7 @@ "__authors__", ) -__version__ = "4.3.2-rc.1" +__version__ = "4.3.2" __authors__ = { "current": [ diff --git a/interactions/client/bot.py b/interactions/client/bot.py index 38791c24b..fa74e4bd8 100644 --- a/interactions/client/bot.py +++ b/interactions/client/bot.py @@ -1,4 +1,5 @@ import contextlib +import logging import re import sys from asyncio import AbstractEventLoop, CancelledError, get_event_loop, iscoroutinefunction @@ -6,7 +7,6 @@ from importlib import import_module from importlib.util import resolve_name from inspect import getmembers -from logging import Logger from types import ModuleType from typing import Any, Callable, Coroutine, Dict, List, Optional, Tuple, Union @@ -27,7 +27,7 @@ from .models.command import ApplicationCommand, Choice, Command, Option from .models.component import Button, Modal, SelectMenu -log: Logger = get_logger("client") +log: logging.Logger = get_logger("client") __all__ = ( "Client", @@ -58,6 +58,8 @@ class Client: :type default_scope?: Optional[Union[int, Guild, List[int], List[Guild]]] :param disable_sync?: Controls whether synchronization in the user-facing API should be automatic or not. :type disable_sync?: Optional[bool] + :param logging?: Set to ``True`` to enable debug logging or set to a log level to use a specific level + :type logging?: Optional[Union[bool, logging.DEBUG, logging.INFO, logging.NOTSET, logging.WARNING, logging.ERROR, logging.CRITICAL]] :ivar AbstractEventLoop _loop: The asynchronous event loop of the client. :ivar HTTPClient _http: The user-facing HTTP connection to the Web API, as its own separate client. @@ -102,6 +104,21 @@ def __init__( ] self._default_scope = convert_list(int)(self._default_scope) + if _logging := kwargs.get("logging"): + + # thx i0 for posting this on the retux Discord + + if _logging is True: + _logging = logging.DEBUG + + _format = ( + "%(asctime)s [%(levelname)s] - .%(funcName)s(): %(message)s" + if _logging == logging.DEBUG + else "%(asctime)s [%(levelname)s] - %(message)s" + ) + + logging.basicConfig(format=_format, level=_logging) + if kwargs.get("disable_sync"): self._automate_sync = False log.warning( @@ -503,18 +520,17 @@ def __resolve_commands(self) -> None: ) data: Union[dict, List[dict]] = cmd.full_data - dispatcher = cmd.dispatcher + coro = cmd.dispatcher self.__check_command( command=ApplicationCommand(**(data[0] if isinstance(data, list) else data)), - coro=dispatcher, + coro=coro, ) if cmd.autocompletions: self.__id_autocomplete.update(cmd.autocompletions) - # weird interaction with methods, where they're a read-only version of their function - coro = dispatcher.__func__ if hasattr(dispatcher, "__func__") else dispatcher + coro = coro.__func__ if hasattr(coro, "__func__") else coro coro._command_data = data coro._name = cmd.name @@ -536,7 +552,7 @@ def __resolve_commands(self) -> None: else: self._scopes.add(cmd.scope if isinstance(cmd.scope, int) else cmd.scope.id) - self.event(dispatcher, name=f"command_{cmd.name}") + self.event(coro, name=f"command_{cmd.name}") cmd.resolved = True async def __sync(self) -> None: # sourcery no-metrics @@ -1039,6 +1055,7 @@ def decorator(coro: Callable[..., Coroutine]) -> Command: description_localizations=description_localizations, default_scope=default_scope, ) + cmd.client = self self._commands.append(cmd) return cmd @@ -1482,6 +1499,40 @@ async def modify( return User(**data) + async def request_guild_members( + self, + guild_id: Union[Guild, Snowflake, int, str], + limit: Optional[int] = MISSING, + query: Optional[str] = MISSING, + presences: Optional[bool] = MISSING, + user_ids: Optional[Union[Snowflake, List[Snowflake]]] = MISSING, + nonce: Optional[str] = MISSING, + ) -> None: + """ + Requests guild members via websocket. + + :param guild_id: ID of the guild to get members for. + :type guild_id: Union[Guild, Snowflake, int, str] + :param limit: Maximum number of members to send matching the 'query' parameter. Required when specifying 'query'. + :type limit: Optional[int] + :param query: String that username starts with. + :type query: Optional[str] + :param presences: Used to specify if we want the presences of the matched members. + :type presences: Optional[bool] + :param user_ids: Used to specify which users you wish to fetch. + :type user_ids: Optional[Union[Snowflake, List[Snowflake]]] + :param nonce: Nonce to identify the Guild Members Chunk response. + :type nonce: Optional[str] + """ + await self._websocket.request_guild_members( + guild_id=int(guild_id.id) if isinstance(guild_id, Guild) else int(guild_id), + limit=limit if limit is not MISSING else 0, + query=query if query is not MISSING else None, + presences=presences if presences is not MISSING else None, + user_ids=user_ids if user_ids is not MISSING else None, + nonce=nonce if nonce is not MISSING else None, + ) + async def _logout(self) -> None: await self._websocket.close() await self._http._req.close() @@ -1591,10 +1642,12 @@ def __new__(cls, client: Client, *args, **kwargs) -> "Extension": continue cmd.extension = self + cmd.client = self.client self.client._commands.append(cmd) commands = self._commands.get(cmd.name, []) coro = cmd.dispatcher + coro = coro.__func__ if hasattr(coro, "__func__") else coro commands.append(coro) self._commands[f"command_{cmd.name}"] = commands diff --git a/interactions/client/context.py b/interactions/client/context.py index 0d0f913ef..eb4a52246 100644 --- a/interactions/client/context.py +++ b/interactions/client/context.py @@ -1,8 +1,7 @@ from logging import Logger -from typing import List, Optional, Union +from typing import TYPE_CHECKING, List, Optional, Union from ..api.error import LibraryException -from ..api.http.client import HTTPClient from ..api.models.channel import Channel from ..api.models.flags import Permissions from ..api.models.guild import Guild @@ -13,11 +12,15 @@ from ..base import get_logger from ..utils.attrs_utils import ClientSerializerMixin, convert_int, define, field from ..utils.missing import MISSING -from .enums import InteractionCallbackType, InteractionType +from .enums import ComponentType, InteractionCallbackType, InteractionType from .models.command import Choice from .models.component import ActionRow, Button, Modal, SelectMenu, _build_components from .models.misc import InteractionData +if TYPE_CHECKING: + from .bot import Client, Extension + from .models.command import Command + log: Logger = get_logger("context") __all__ = ( @@ -43,7 +46,6 @@ class _Context(ClientSerializerMixin): :ivar Optional[Guild] guild: The guild data model. """ - client: HTTPClient = field(default=None) message: Optional[Message] = field(converter=Message, default=None, add_client=True) author: Member = field(converter=Member, default=None, add_client=True) member: Member = field(converter=Member, add_client=True) @@ -66,9 +68,6 @@ class _Context(ClientSerializerMixin): app_permissions: Permissions = field(converter=convert_int(Permissions), default=None) def __attrs_post_init__(self) -> None: - # backwards compatibility - self.client = self._client - if self.member: if self.guild_id: self.member._extras["guild_id"] = self.guild_id @@ -120,6 +119,7 @@ async def send( Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]] ] = MISSING, ephemeral: Optional[bool] = False, + suppress_embeds: bool = False, ) -> dict: """ This allows the invocation state described in the "context" @@ -139,6 +139,8 @@ async def send( :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[Union[ActionRow, Button, SelectMenu]]]] :param ephemeral?: Whether the response is hidden or not. :type ephemeral?: Optional[bool] + :param suppress_embeds: Whether embeds are not shown in the message. + :type suppress_embeds: bool :return: The sent message as an object. :rtype: Message """ @@ -189,7 +191,9 @@ async def send( else: _components = [] - _ephemeral: int = (1 << 6) if ephemeral else 0 + _flags: int = (1 << 6) if ephemeral else 0 + if suppress_embeds: + _flags += 1 << 2 _attachments = [] if attachments is MISSING else [a._json for a in attachments] @@ -200,7 +204,7 @@ async def send( allowed_mentions=_allowed_mentions, components=_components, attachments=_attachments, - flags=_ephemeral, + flags=_flags, ) async def edit( @@ -367,10 +371,17 @@ class CommandContext(_Context): :ivar str locale?: The selected language of the user invoking the interaction. :ivar str guild_locale?: The guild's preferred language, if invoked in a guild. :ivar str app_permissions?: Bitwise set of permissions the bot has within the channel the interaction was sent from. + :ivar Client client: The client instance that the command belongs to. + :ivar Command command: The command object that is being invoked. + :ivar Extension extension: The extension the command belongs to. """ target: Optional[Union[Message, Member, User]] = field(default=None) + client: "Client" = field(default=None, init=False) + command: "Command" = field(default=None, init=False) + extension: "Extension" = field(default=None, init=False) + def __attrs_post_init__(self) -> None: super().__attrs_post_init__() @@ -388,6 +399,8 @@ def __attrs_post_init__(self) -> None: elif self.data.type == 3: self.target = self.data.resolved.messages[target] + self.target._client = self._client + async def edit(self, content: Optional[str] = MISSING, **kwargs) -> Message: payload = await super().edit(content, **kwargs) @@ -733,7 +746,17 @@ def custom_id(self) -> Optional[str]: @property def label(self) -> Optional[str]: + """ + The label of the interacted button. + :rtype: Optional[str] + """ + if not self.data.component_type == ComponentType.BUTTON: + return + if self.message is None: + return + if self.message.components is None: + return for action_row in self.message.components: - for component in action_row["components"]: - if component["custom_id"] == self.custom_id and component["type"] == 2: - return component.get("label") + for component in action_row.components: + if component.custom_id == self.custom_id: + return component.label diff --git a/interactions/client/models/command.py b/interactions/client/models/command.py index 0b36aaff5..c92d3cabf 100644 --- a/interactions/client/models/command.py +++ b/interactions/client/models/command.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: from ...api.dispatch import Listener - from ..bot import Extension + from ..bot import Client, Extension from ..context import CommandContext __all__ = ( @@ -413,6 +413,7 @@ class Command(DictSerializerMixin): :ivar Optional[str] recent_group: The name of the group most recently utilized. :ivar bool resolved: Whether the command is synced. Defaults to ``False``. :ivar Optional[Extension] extension: The extension that the command belongs to, if any. + :ivar Client client: The client that the command belongs to. :ivar Optional[Listener] listener: The listener, used for dispatching command errors. """ @@ -437,6 +438,7 @@ class Command(DictSerializerMixin): error_callback: Optional[Callable[..., Awaitable]] = field(default=None, init=False) resolved: bool = field(default=False, init=False) extension: Optional["Extension"] = field(default=None, init=False) + client: "Client" = field(default=None, init=False) listener: Optional["Listener"] = field(default=None, init=False) def __attrs_post_init__(self) -> None: @@ -702,57 +704,58 @@ def decorator(coro: Callable[..., Awaitable]) -> "Command": return decorator - async def dispatcher( - self, - ctx: "CommandContext", - *args, - sub_command_group: Optional[str] = None, - sub_command: Optional[str] = None, - **kwargs, - ) -> Optional[BaseResult]: - r""" - Call the command along with any subcommands - - :param ctx: The context for the interaction - :type ctx: CommandContext - :param args: The args to be passed to the command - :type args: tuple - :param sub_command_group: The subcommand group being invoked, if any - :type sub_command_group: Optional[str] - :param sub_command: The subcommand being invoked, if any - :type sub_command: Optional[str] - :param kwargs: The kwargs to pass to the command - :type kwargs: Dict - :return: The result of the base command if no StopCommand is returned anywhere, else None - :rtype: Optional[BaseResult] + @property + def dispatcher(self) -> Callable[..., Awaitable]: """ - base_coro = self.coro - base_res = BaseResult( - result=await self.__call(base_coro, ctx, *args, _name=self.name, **kwargs) - ) - if base_res() is StopCommand or isinstance(base_res(), StopCommand): - return - if sub_command_group: - group_coro = self.coroutines[sub_command_group] - name = f"{sub_command_group} {sub_command}" - subcommand_coro = self.coroutines[name] - group_res = GroupResult( - result=await self.__call( - group_coro, ctx, *args, _res=base_res, _name=sub_command_group, **kwargs - ), - parent=base_res, + Returns a coroutine that calls the command along with the subcommands, if any. + + .. note:: + The coroutine returned is never the same object. + + :return: A coroutine that calls the command along with the subcommands, if any. + :rtype: Callable[..., Awaitable] + """ + if not self.has_subcommands: + return self.__wrap_coro(self.coro) + + @wraps(self.coro) + async def dispatch( + ctx: "CommandContext", + *args, + sub_command_group: Optional[str] = None, + sub_command: Optional[str] = None, + **kwargs, + ) -> Optional[Any]: + """Dispatches all of the subcommands of the command.""" + base_coro = self.coro + base_res = BaseResult( + result=await self.__call(base_coro, ctx, *args, _name=self.name, **kwargs) ) - if group_res() is StopCommand or isinstance(group_res(), StopCommand): + if base_res() is StopCommand or isinstance(base_res(), StopCommand): return - return await self.__call( - subcommand_coro, ctx, *args, _res=group_res, _name=name, **kwargs - ) - elif sub_command: - subcommand_coro = self.coroutines[sub_command] - return await self.__call( - subcommand_coro, ctx, *args, _res=base_res, _name=sub_command, **kwargs - ) - return base_res + if sub_command_group: + group_coro = self.coroutines[sub_command_group] + name = f"{sub_command_group} {sub_command}" + subcommand_coro = self.coroutines[name] + group_res = GroupResult( + result=await self.__call( + group_coro, ctx, *args, _res=base_res, _name=sub_command_group, **kwargs + ), + parent=base_res, + ) + if group_res() is StopCommand or isinstance(group_res(), StopCommand): + return + return await self.__call( + subcommand_coro, ctx, *args, _res=group_res, _name=name, **kwargs + ) + elif sub_command: + subcommand_coro = self.coroutines[sub_command] + return await self.__call( + subcommand_coro, ctx, *args, _res=base_res, _name=sub_command, **kwargs + ) + return base_res + + return dispatch def autocomplete( self, name: Optional[str] = MISSING @@ -926,6 +929,10 @@ def __wrap_coro( @wraps(coro) async def wrapper(ctx: "CommandContext", *args, **kwargs): + ctx.client = self.client + ctx.command = self + ctx.extension = self.extension + try: if self.extension: return await coro(self.extension, ctx, *args, **kwargs) diff --git a/interactions/utils/utils.py b/interactions/utils/utils.py index 756b67d08..912782015 100644 --- a/interactions/utils/utils.py +++ b/interactions/utils/utils.py @@ -78,13 +78,12 @@ async def deferring_func( except RuntimeError as e: raise RuntimeError("No running event loop detected!") from e - if isinstance(args[0], (ComponentContext, CommandContext)): + if args and isinstance(args[0], (ComponentContext, CommandContext)): self = ctx args = list(args) ctx = args.pop(0) task: Task = loop.create_task(coro(self, ctx, *args, **kwargs)) - else: task: Task = loop.create_task(coro(ctx, *args, **kwargs))