Skip to content

Commit

Permalink
docs: Fix cache return type, include Spanish language translate suppo…
Browse files Browse the repository at this point in the history
…rt. (#941)

* docs: Fix cache return type, include Spanish language translate support.

* ci: correct from checks.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
FayeDel and pre-commit-ci[bot] authored Jul 17, 2022
1 parent a8e5034 commit 97a713d
Show file tree
Hide file tree
Showing 107 changed files with 16,239 additions and 980 deletions.
21 changes: 15 additions & 6 deletions docs/locale/de/LC_MESSAGES/api.cache.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: interactions.py 4.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -34,9 +34,9 @@ msgstr ""
msgid "The list of items stored."
msgstr ""

#: interactions.api.cache.Cache.__init__
#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add
#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge of
#: interactions.api.cache.Cache interactions.api.cache.Storage
#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get
#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of
msgid "Return type"
msgstr ""

Expand Down Expand Up @@ -79,7 +79,7 @@ msgstr ""
msgid "The default value to return if the item is not found."
msgstr ""

#: interactions.api.cache.Storage.get of
#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of
msgid "Returns"
msgstr ""

Expand All @@ -100,7 +100,7 @@ msgid "Views all items from storage."
msgstr ""

#: interactions.api.cache.Storage.view:3 of
msgid ":return The items stored. :rtype: List[dict]"
msgid "The items stored."
msgstr ""

#: interactions.api.cache.Cache:1 of
Expand All @@ -109,6 +109,12 @@ msgid ""
"requests made for the represented instances of the class."
msgstr ""

#: interactions.api.cache.Cache:5 of
msgid ""
"A dictionary denoting the Type and the objects that correspond to the "
"Type."
msgstr ""

#~ msgid "A class representing the defined item in a stored dataset."
#~ msgstr ""

Expand Down Expand Up @@ -153,3 +159,6 @@ msgstr ""

#~ msgid "The cached interactions upon interaction."
#~ msgstr ""

#~ msgid ":return The items stored. :rtype: List[dict]"
#~ msgstr ""
55 changes: 27 additions & 28 deletions docs/locale/de/LC_MESSAGES/api.gateway.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: interactions.py 4.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -93,63 +93,51 @@ msgid "The closing task for ending connections."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:16 of
msgid "The ID of the ongoing session."
msgid "Whether the client has started."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:17 of
msgid "The sequence identifier of the ongoing session."
msgid "The ID of the ongoing session."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:18 of
msgid "The sequence identifier of the ongoing session."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:19 of
msgid ""
"The latest time of the last send_packet function call since connection "
"creation, in seconds."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:19 of
#: interactions.api.gateway.client.WebSocketClient:20 of
msgid ""
"The latest time of the last ``HEARTBEAT_ACK`` event since connection "
"creation, in seconds."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient:20 of
#: interactions.api.gateway.client.WebSocketClient:21 of
msgid "The latency of the connection, in seconds."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient
#: interactions.api.gateway.client.WebSocketClient.__contextualize
#: interactions.api.gateway.client.WebSocketClient.__identify
#: interactions.api.gateway.client.WebSocketClient.__init__
#: interactions.api.gateway.client.WebSocketClient.__option_type_context
#: interactions.api.gateway.client.WebSocketClient.__sub_command_context
#: interactions.api.gateway.client.WebSocketClient._dispatch_event
#: interactions.api.gateway.client.WebSocketClient._establish_connection
#: interactions.api.gateway.client.WebSocketClient._handle_connection
#: interactions.api.gateway.client.WebSocketClient._send_packet
#: interactions.api.gateway.client.WebSocketClient._update_presence
#: interactions.api.gateway.heartbeat._Heartbeat.__init__ of
#: interactions.api.gateway.heartbeat._Heartbeat of
msgid "Parameters"
msgstr ""

#: interactions.api.gateway.client.WebSocketClient.__init__:1 of
msgid "The token of the application for connecting to the Gateway."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient.__init__:3 of
msgid "The Gateway intents of the application for event dispatch."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient.__init__:5 of
msgid "The ID of the session if trying to reconnect. Defaults to ``None``."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient.__init__:7 of
msgid "The identifier sequence if trying to reconnect. Defaults to ``None``."
msgstr ""

#: interactions.api.gateway.client.WebSocketClient
#: interactions.api.gateway.client.WebSocketClient.__contextualize
#: interactions.api.gateway.client.WebSocketClient.__heartbeat
#: interactions.api.gateway.client.WebSocketClient.__identify
#: interactions.api.gateway.client.WebSocketClient.__init__
#: interactions.api.gateway.client.WebSocketClient.__option_type_context
#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream
#: interactions.api.gateway.client.WebSocketClient.__restart
Expand All @@ -162,7 +150,7 @@ msgstr ""
#: 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.__init__ of
#: interactions.api.gateway.heartbeat._Heartbeat of
msgid "Return type"
msgstr ""

Expand Down Expand Up @@ -327,6 +315,17 @@ msgstr ""
msgid "An internal class representing the heartbeat in a WebSocket connection."
msgstr ""

#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of
msgid "The event loop to base the asynchronous manager."
msgstr ""
#~ msgid "The token of the application for connecting to the Gateway."
#~ msgstr ""

#~ msgid "The Gateway intents of the application for event dispatch."
#~ msgstr ""

#~ msgid "The ID of the session if trying to reconnect. Defaults to ``None``."
#~ msgstr ""

#~ msgid "The identifier sequence if trying to reconnect. Defaults to ``None``."
#~ msgstr ""

#~ msgid "The event loop to base the asynchronous manager."
#~ msgstr ""
83 changes: 38 additions & 45 deletions docs/locale/de/LC_MESSAGES/api.http.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: interactions.py 4.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -68,7 +68,7 @@ msgstr ""
#: interactions.api.http.channel.ChannelRequest.modify_stage_instance
#: interactions.api.http.channel.ChannelRequest.move_channel
#: interactions.api.http.channel.ChannelRequest.trigger_typing
#: interactions.api.http.client.HTTPClient.__init__
#: interactions.api.http.client.HTTPClient
#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji
#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji
#: interactions.api.http.emoji.EmojiRequest.get_all_emoji
Expand Down Expand Up @@ -129,7 +129,7 @@ msgstr ""
#: interactions.api.http.interaction.InteractionRequest.get_application_commands
#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response
#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command
#: interactions.api.http.limiter.Limiter.__init__
#: interactions.api.http.limiter.Limiter
#: interactions.api.http.member.MemberRequest.add_member_role
#: interactions.api.http.member.MemberRequest.get_list_of_members
#: interactions.api.http.member.MemberRequest.get_member
Expand All @@ -151,9 +151,9 @@ msgstr ""
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji
#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction
#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction
#: interactions.api.http.request._Request.__init__
#: interactions.api.http.request._Request
#: interactions.api.http.request._Request.request
#: interactions.api.http.route.Route.__init__
#: interactions.api.http.route.Route
#: interactions.api.http.route.Route.get_bucket
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event
Expand Down Expand Up @@ -198,19 +198,7 @@ msgstr ""
msgid "Parameters"
msgstr ""

#: interactions.api.http.route.Route.__init__:1 of
msgid "The HTTP request method."
msgstr ""

#: interactions.api.http.route.Route.__init__:3 of
msgid "The path of the HTTP/URL."
msgstr ""

#: interactions.api.http.route.Route.__init__:5 of
msgid "Optional keyword-only arguments to pass as information in the route."
msgstr ""

#: interactions.api.http.channel.ChannelRequest.__init__
#: interactions.api.http.channel.ChannelRequest
#: interactions.api.http.channel.ChannelRequest.create_channel
#: interactions.api.http.channel.ChannelRequest.create_channel_invite
#: interactions.api.http.channel.ChannelRequest.create_stage_instance
Expand All @@ -233,13 +221,13 @@ msgstr ""
#: interactions.api.http.client.HTTPClient.get_gateway
#: interactions.api.http.client.HTTPClient.login
#: interactions.api.http.client.HTTPClient.logout
#: interactions.api.http.emoji.EmojiRequest.__init__
#: interactions.api.http.emoji.EmojiRequest
#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji
#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji
#: interactions.api.http.emoji.EmojiRequest.get_all_emoji
#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji
#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji
#: interactions.api.http.guild.GuildRequest.__init__
#: interactions.api.http.guild.GuildRequest
#: interactions.api.http.guild.GuildRequest.add_guild_member
#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule
#: interactions.api.http.guild.GuildRequest.create_guild_ban
Expand Down Expand Up @@ -283,7 +271,7 @@ msgstr ""
#: interactions.api.http.guild.GuildRequest.remove_guild_ban
#: interactions.api.http.guild.GuildRequest.remove_guild_member
#: interactions.api.http.guild.GuildRequest.sync_guild_template
#: interactions.api.http.interaction.InteractionRequest.__init__
#: interactions.api.http.interaction.InteractionRequest
#: interactions.api.http.interaction.InteractionRequest._post_followup
#: interactions.api.http.interaction.InteractionRequest.create_application_command
#: interactions.api.http.interaction.InteractionRequest.create_interaction_response
Expand All @@ -297,15 +285,15 @@ msgstr ""
#: interactions.api.http.interaction.InteractionRequest.get_application_commands
#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response
#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command
#: interactions.api.http.limiter.Limiter.__init__
#: interactions.api.http.member.MemberRequest.__init__
#: interactions.api.http.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.__init__
#: 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
Expand All @@ -315,37 +303,36 @@ msgstr ""
#: interactions.api.http.message.MessageRequest.publish_message
#: interactions.api.http.message.MessageRequest.send_message
#: interactions.api.http.message.MessageRequest.unpin_message
#: interactions.api.http.reaction.ReactionRequest.__init__
#: interactions.api.http.reaction.ReactionRequest
#: interactions.api.http.reaction.ReactionRequest.create_reaction
#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji
#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction
#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction
#: interactions.api.http.request._Request.__init__
#: interactions.api.http.request._Request
#: interactions.api.http.request._Request._check_lock
#: interactions.api.http.request._Request._check_session
#: interactions.api.http.request._Request.close
#: interactions.api.http.request._Request.request
#: interactions.api.http.route.Route.__init__
#: interactions.api.http.route.Route.endpoint
#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint
#: interactions.api.http.route.Route.get_bucket
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__
#: 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.__init__
#: interactions.api.http.sticker.StickerRequest
#: interactions.api.http.sticker.StickerRequest.create_guild_sticker
#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker
#: interactions.api.http.sticker.StickerRequest.get_guild_sticker
#: interactions.api.http.sticker.StickerRequest.get_sticker
#: interactions.api.http.sticker.StickerRequest.list_guild_stickers
#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs
#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker
#: interactions.api.http.thread.ThreadRequest.__init__
#: interactions.api.http.thread.ThreadRequest
#: interactions.api.http.thread.ThreadRequest.add_member_to_thread
#: interactions.api.http.thread.ThreadRequest.create_thread
#: interactions.api.http.thread.ThreadRequest.get_member_from_thread
Expand All @@ -357,13 +344,13 @@ msgstr ""
#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads
#: interactions.api.http.thread.ThreadRequest.list_thread_members
#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread
#: interactions.api.http.user.UserRequest.__init__
#: interactions.api.http.user.UserRequest
#: interactions.api.http.user.UserRequest.create_dm
#: interactions.api.http.user.UserRequest.get_self
#: interactions.api.http.user.UserRequest.get_user
#: interactions.api.http.user.UserRequest.modify_self
#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild
#: interactions.api.http.webhook.WebhookRequest.__init__
#: interactions.api.http.webhook.WebhookRequest
#: interactions.api.http.webhook.WebhookRequest.create_webhook
#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message
#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message
Expand Down Expand Up @@ -513,14 +500,6 @@ msgstr ""
msgid "The remaining time before the request can be ran."
msgstr ""

#: interactions.api.http.limiter.Limiter.__init__:1 of
msgid "The asynchronous lock to control limits for."
msgstr ""

#: interactions.api.http.limiter.Limiter.__init__:3 of
msgid "The remaining time to run the limited lock on. Defaults to ``0``."
msgstr ""

#: interactions.api.http.request._Request:1 of
msgid "A class representing how HTTP requests are sent/read."
msgstr ""
Expand Down Expand Up @@ -553,10 +532,6 @@ msgstr ""
msgid "The global rate limiter."
msgstr ""

#: interactions.api.http.request._Request.__init__:1 of
msgid "The application token used for authorizing."
msgstr ""

#: interactions.api.http.request._Request._check_session:1 of
msgid "Ensures that we have a valid connection session."
msgstr ""
Expand Down Expand Up @@ -2768,3 +2743,21 @@ msgstr ""
#: of
msgid "Deletes the original message object sent."
msgstr ""

#~ msgid "The HTTP request method."
#~ msgstr ""

#~ msgid "The path of the HTTP/URL."
#~ msgstr ""

#~ msgid "Optional keyword-only arguments to pass as information in the route."
#~ msgstr ""

#~ msgid "The asynchronous lock to control limits for."
#~ msgstr ""

#~ msgid "The remaining time to run the limited lock on. Defaults to ``0``."
#~ msgstr ""

#~ msgid "The application token used for authorizing."
#~ msgstr ""
Loading

0 comments on commit 97a713d

Please sign in to comment.