Skip to content

Commit 97a713d

Browse files
docs: Fix cache return type, include Spanish language translate support. (#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>
1 parent a8e5034 commit 97a713d

File tree

107 files changed

+16239
-980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+16239
-980
lines changed

docs/locale/de/LC_MESSAGES/api.cache.po

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: interactions.py 4.2\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
12+
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -34,9 +34,9 @@ msgstr ""
3434
msgid "The list of items stored."
3535
msgstr ""
3636

37-
#: interactions.api.cache.Cache.__init__
38-
#: interactions.api.cache.Storage.__init__ interactions.api.cache.Storage.add
39-
#: interactions.api.cache.Storage.get interactions.api.cache.Storage.merge of
37+
#: interactions.api.cache.Cache interactions.api.cache.Storage
38+
#: interactions.api.cache.Storage.add interactions.api.cache.Storage.get
39+
#: interactions.api.cache.Storage.merge interactions.api.cache.Storage.view of
4040
msgid "Return type"
4141
msgstr ""
4242

@@ -79,7 +79,7 @@ msgstr ""
7979
msgid "The default value to return if the item is not found."
8080
msgstr ""
8181

82-
#: interactions.api.cache.Storage.get of
82+
#: interactions.api.cache.Storage.get interactions.api.cache.Storage.view of
8383
msgid "Returns"
8484
msgstr ""
8585

@@ -100,7 +100,7 @@ msgid "Views all items from storage."
100100
msgstr ""
101101

102102
#: interactions.api.cache.Storage.view:3 of
103-
msgid ":return The items stored. :rtype: List[dict]"
103+
msgid "The items stored."
104104
msgstr ""
105105

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

112+
#: interactions.api.cache.Cache:5 of
113+
msgid ""
114+
"A dictionary denoting the Type and the objects that correspond to the "
115+
"Type."
116+
msgstr ""
117+
112118
#~ msgid "A class representing the defined item in a stored dataset."
113119
#~ msgstr ""
114120

@@ -153,3 +159,6 @@ msgstr ""
153159

154160
#~ msgid "The cached interactions upon interaction."
155161
#~ msgstr ""
162+
163+
#~ msgid ":return The items stored. :rtype: List[dict]"
164+
#~ msgstr ""

docs/locale/de/LC_MESSAGES/api.gateway.po

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: interactions.py 4.2\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
12+
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -93,63 +93,51 @@ msgid "The closing task for ending connections."
9393
msgstr ""
9494

9595
#: interactions.api.gateway.client.WebSocketClient:16 of
96-
msgid "The ID of the ongoing session."
96+
msgid "Whether the client has started."
9797
msgstr ""
9898

9999
#: interactions.api.gateway.client.WebSocketClient:17 of
100-
msgid "The sequence identifier of the ongoing session."
100+
msgid "The ID of the ongoing session."
101101
msgstr ""
102102

103103
#: interactions.api.gateway.client.WebSocketClient:18 of
104+
msgid "The sequence identifier of the ongoing session."
105+
msgstr ""
106+
107+
#: interactions.api.gateway.client.WebSocketClient:19 of
104108
msgid ""
105109
"The latest time of the last send_packet function call since connection "
106110
"creation, in seconds."
107111
msgstr ""
108112

109-
#: interactions.api.gateway.client.WebSocketClient:19 of
113+
#: interactions.api.gateway.client.WebSocketClient:20 of
110114
msgid ""
111115
"The latest time of the last ``HEARTBEAT_ACK`` event since connection "
112116
"creation, in seconds."
113117
msgstr ""
114118

115-
#: interactions.api.gateway.client.WebSocketClient:20 of
119+
#: interactions.api.gateway.client.WebSocketClient:21 of
116120
msgid "The latency of the connection, in seconds."
117121
msgstr ""
118122

123+
#: interactions.api.gateway.client.WebSocketClient
119124
#: interactions.api.gateway.client.WebSocketClient.__contextualize
120125
#: interactions.api.gateway.client.WebSocketClient.__identify
121-
#: interactions.api.gateway.client.WebSocketClient.__init__
122126
#: interactions.api.gateway.client.WebSocketClient.__option_type_context
123127
#: interactions.api.gateway.client.WebSocketClient.__sub_command_context
124128
#: interactions.api.gateway.client.WebSocketClient._dispatch_event
125129
#: interactions.api.gateway.client.WebSocketClient._establish_connection
126130
#: interactions.api.gateway.client.WebSocketClient._handle_connection
127131
#: interactions.api.gateway.client.WebSocketClient._send_packet
128132
#: interactions.api.gateway.client.WebSocketClient._update_presence
129-
#: interactions.api.gateway.heartbeat._Heartbeat.__init__ of
133+
#: interactions.api.gateway.heartbeat._Heartbeat of
130134
msgid "Parameters"
131135
msgstr ""
132136

133-
#: interactions.api.gateway.client.WebSocketClient.__init__:1 of
134-
msgid "The token of the application for connecting to the Gateway."
135-
msgstr ""
136-
137-
#: interactions.api.gateway.client.WebSocketClient.__init__:3 of
138-
msgid "The Gateway intents of the application for event dispatch."
139-
msgstr ""
140-
141-
#: interactions.api.gateway.client.WebSocketClient.__init__:5 of
142-
msgid "The ID of the session if trying to reconnect. Defaults to ``None``."
143-
msgstr ""
144-
145-
#: interactions.api.gateway.client.WebSocketClient.__init__:7 of
146-
msgid "The identifier sequence if trying to reconnect. Defaults to ``None``."
147-
msgstr ""
148-
137+
#: interactions.api.gateway.client.WebSocketClient
149138
#: interactions.api.gateway.client.WebSocketClient.__contextualize
150139
#: interactions.api.gateway.client.WebSocketClient.__heartbeat
151140
#: interactions.api.gateway.client.WebSocketClient.__identify
152-
#: interactions.api.gateway.client.WebSocketClient.__init__
153141
#: interactions.api.gateway.client.WebSocketClient.__option_type_context
154142
#: interactions.api.gateway.client.WebSocketClient.__receive_packet_stream
155143
#: interactions.api.gateway.client.WebSocketClient.__restart
@@ -162,7 +150,7 @@ msgstr ""
162150
#: interactions.api.gateway.client.WebSocketClient._send_packet
163151
#: interactions.api.gateway.client.WebSocketClient._update_presence
164152
#: interactions.api.gateway.client.WebSocketClient.wait_until_ready
165-
#: interactions.api.gateway.heartbeat._Heartbeat.__init__ of
153+
#: interactions.api.gateway.heartbeat._Heartbeat of
166154
msgid "Return type"
167155
msgstr ""
168156

@@ -327,6 +315,17 @@ msgstr ""
327315
msgid "An internal class representing the heartbeat in a WebSocket connection."
328316
msgstr ""
329317

330-
#: interactions.api.gateway.heartbeat._Heartbeat.__init__:1 of
331-
msgid "The event loop to base the asynchronous manager."
332-
msgstr ""
318+
#~ msgid "The token of the application for connecting to the Gateway."
319+
#~ msgstr ""
320+
321+
#~ msgid "The Gateway intents of the application for event dispatch."
322+
#~ msgstr ""
323+
324+
#~ msgid "The ID of the session if trying to reconnect. Defaults to ``None``."
325+
#~ msgstr ""
326+
327+
#~ msgid "The identifier sequence if trying to reconnect. Defaults to ``None``."
328+
#~ msgstr ""
329+
330+
#~ msgid "The event loop to base the asynchronous manager."
331+
#~ msgstr ""

docs/locale/de/LC_MESSAGES/api.http.po

Lines changed: 38 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: interactions.py 4.2\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-07-16 17:02-0400\n"
12+
"POT-Creation-Date: 2022-07-17 16:00-0400\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1515
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -68,7 +68,7 @@ msgstr ""
6868
#: interactions.api.http.channel.ChannelRequest.modify_stage_instance
6969
#: interactions.api.http.channel.ChannelRequest.move_channel
7070
#: interactions.api.http.channel.ChannelRequest.trigger_typing
71-
#: interactions.api.http.client.HTTPClient.__init__
71+
#: interactions.api.http.client.HTTPClient
7272
#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji
7373
#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji
7474
#: interactions.api.http.emoji.EmojiRequest.get_all_emoji
@@ -129,7 +129,7 @@ msgstr ""
129129
#: interactions.api.http.interaction.InteractionRequest.get_application_commands
130130
#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response
131131
#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command
132-
#: interactions.api.http.limiter.Limiter.__init__
132+
#: interactions.api.http.limiter.Limiter
133133
#: interactions.api.http.member.MemberRequest.add_member_role
134134
#: interactions.api.http.member.MemberRequest.get_list_of_members
135135
#: interactions.api.http.member.MemberRequest.get_member
@@ -151,9 +151,9 @@ msgstr ""
151151
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji
152152
#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction
153153
#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction
154-
#: interactions.api.http.request._Request.__init__
154+
#: interactions.api.http.request._Request
155155
#: interactions.api.http.request._Request.request
156-
#: interactions.api.http.route.Route.__init__
156+
#: interactions.api.http.route.Route
157157
#: interactions.api.http.route.Route.get_bucket
158158
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event
159159
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event
@@ -198,19 +198,7 @@ msgstr ""
198198
msgid "Parameters"
199199
msgstr ""
200200

201-
#: interactions.api.http.route.Route.__init__:1 of
202-
msgid "The HTTP request method."
203-
msgstr ""
204-
205-
#: interactions.api.http.route.Route.__init__:3 of
206-
msgid "The path of the HTTP/URL."
207-
msgstr ""
208-
209-
#: interactions.api.http.route.Route.__init__:5 of
210-
msgid "Optional keyword-only arguments to pass as information in the route."
211-
msgstr ""
212-
213-
#: interactions.api.http.channel.ChannelRequest.__init__
201+
#: interactions.api.http.channel.ChannelRequest
214202
#: interactions.api.http.channel.ChannelRequest.create_channel
215203
#: interactions.api.http.channel.ChannelRequest.create_channel_invite
216204
#: interactions.api.http.channel.ChannelRequest.create_stage_instance
@@ -233,13 +221,13 @@ msgstr ""
233221
#: interactions.api.http.client.HTTPClient.get_gateway
234222
#: interactions.api.http.client.HTTPClient.login
235223
#: interactions.api.http.client.HTTPClient.logout
236-
#: interactions.api.http.emoji.EmojiRequest.__init__
224+
#: interactions.api.http.emoji.EmojiRequest
237225
#: interactions.api.http.emoji.EmojiRequest.create_guild_emoji
238226
#: interactions.api.http.emoji.EmojiRequest.delete_guild_emoji
239227
#: interactions.api.http.emoji.EmojiRequest.get_all_emoji
240228
#: interactions.api.http.emoji.EmojiRequest.get_guild_emoji
241229
#: interactions.api.http.emoji.EmojiRequest.modify_guild_emoji
242-
#: interactions.api.http.guild.GuildRequest.__init__
230+
#: interactions.api.http.guild.GuildRequest
243231
#: interactions.api.http.guild.GuildRequest.add_guild_member
244232
#: interactions.api.http.guild.GuildRequest.create_auto_moderation_rule
245233
#: interactions.api.http.guild.GuildRequest.create_guild_ban
@@ -283,7 +271,7 @@ msgstr ""
283271
#: interactions.api.http.guild.GuildRequest.remove_guild_ban
284272
#: interactions.api.http.guild.GuildRequest.remove_guild_member
285273
#: interactions.api.http.guild.GuildRequest.sync_guild_template
286-
#: interactions.api.http.interaction.InteractionRequest.__init__
274+
#: interactions.api.http.interaction.InteractionRequest
287275
#: interactions.api.http.interaction.InteractionRequest._post_followup
288276
#: interactions.api.http.interaction.InteractionRequest.create_application_command
289277
#: interactions.api.http.interaction.InteractionRequest.create_interaction_response
@@ -297,15 +285,15 @@ msgstr ""
297285
#: interactions.api.http.interaction.InteractionRequest.get_application_commands
298286
#: interactions.api.http.interaction.InteractionRequest.get_original_interaction_response
299287
#: interactions.api.http.interaction.InteractionRequest.overwrite_application_command
300-
#: interactions.api.http.limiter.Limiter.__init__
301-
#: interactions.api.http.member.MemberRequest.__init__
288+
#: interactions.api.http.limiter.Limiter
289+
#: interactions.api.http.member.MemberRequest
302290
#: interactions.api.http.member.MemberRequest.add_member_role
303291
#: interactions.api.http.member.MemberRequest.get_list_of_members
304292
#: interactions.api.http.member.MemberRequest.get_member
305293
#: interactions.api.http.member.MemberRequest.modify_member
306294
#: interactions.api.http.member.MemberRequest.remove_member_role
307295
#: interactions.api.http.member.MemberRequest.search_guild_members
308-
#: interactions.api.http.message.MessageRequest.__init__
296+
#: interactions.api.http.message.MessageRequest
309297
#: interactions.api.http.message.MessageRequest.create_message
310298
#: interactions.api.http.message.MessageRequest.delete_message
311299
#: interactions.api.http.message.MessageRequest.delete_messages
@@ -315,37 +303,36 @@ msgstr ""
315303
#: interactions.api.http.message.MessageRequest.publish_message
316304
#: interactions.api.http.message.MessageRequest.send_message
317305
#: interactions.api.http.message.MessageRequest.unpin_message
318-
#: interactions.api.http.reaction.ReactionRequest.__init__
306+
#: interactions.api.http.reaction.ReactionRequest
319307
#: interactions.api.http.reaction.ReactionRequest.create_reaction
320308
#: interactions.api.http.reaction.ReactionRequest.get_reactions_of_emoji
321309
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions
322310
#: interactions.api.http.reaction.ReactionRequest.remove_all_reactions_of_emoji
323311
#: interactions.api.http.reaction.ReactionRequest.remove_self_reaction
324312
#: interactions.api.http.reaction.ReactionRequest.remove_user_reaction
325-
#: interactions.api.http.request._Request.__init__
313+
#: interactions.api.http.request._Request
326314
#: interactions.api.http.request._Request._check_lock
327315
#: interactions.api.http.request._Request._check_session
328316
#: interactions.api.http.request._Request.close
329317
#: interactions.api.http.request._Request.request
330-
#: interactions.api.http.route.Route.__init__
331-
#: interactions.api.http.route.Route.endpoint
318+
#: interactions.api.http.route.Route interactions.api.http.route.Route.endpoint
332319
#: interactions.api.http.route.Route.get_bucket
333-
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.__init__
320+
#: interactions.api.http.scheduledEvent.ScheduledEventRequest
334321
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.create_scheduled_event
335322
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.delete_scheduled_event
336323
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event
337324
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_event_users
338325
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.get_scheduled_events
339326
#: interactions.api.http.scheduledEvent.ScheduledEventRequest.modify_scheduled_event
340-
#: interactions.api.http.sticker.StickerRequest.__init__
327+
#: interactions.api.http.sticker.StickerRequest
341328
#: interactions.api.http.sticker.StickerRequest.create_guild_sticker
342329
#: interactions.api.http.sticker.StickerRequest.delete_guild_sticker
343330
#: interactions.api.http.sticker.StickerRequest.get_guild_sticker
344331
#: interactions.api.http.sticker.StickerRequest.get_sticker
345332
#: interactions.api.http.sticker.StickerRequest.list_guild_stickers
346333
#: interactions.api.http.sticker.StickerRequest.list_nitro_sticker_packs
347334
#: interactions.api.http.sticker.StickerRequest.modify_guild_sticker
348-
#: interactions.api.http.thread.ThreadRequest.__init__
335+
#: interactions.api.http.thread.ThreadRequest
349336
#: interactions.api.http.thread.ThreadRequest.add_member_to_thread
350337
#: interactions.api.http.thread.ThreadRequest.create_thread
351338
#: interactions.api.http.thread.ThreadRequest.get_member_from_thread
@@ -357,13 +344,13 @@ msgstr ""
357344
#: interactions.api.http.thread.ThreadRequest.list_public_archived_threads
358345
#: interactions.api.http.thread.ThreadRequest.list_thread_members
359346
#: interactions.api.http.thread.ThreadRequest.remove_member_from_thread
360-
#: interactions.api.http.user.UserRequest.__init__
347+
#: interactions.api.http.user.UserRequest
361348
#: interactions.api.http.user.UserRequest.create_dm
362349
#: interactions.api.http.user.UserRequest.get_self
363350
#: interactions.api.http.user.UserRequest.get_user
364351
#: interactions.api.http.user.UserRequest.modify_self
365352
#: interactions.api.http.user.UserRequest.modify_self_nick_in_guild
366-
#: interactions.api.http.webhook.WebhookRequest.__init__
353+
#: interactions.api.http.webhook.WebhookRequest
367354
#: interactions.api.http.webhook.WebhookRequest.create_webhook
368355
#: interactions.api.http.webhook.WebhookRequest.delete_original_webhook_message
369356
#: interactions.api.http.webhook.WebhookRequest.delete_webhook_message
@@ -513,14 +500,6 @@ msgstr ""
513500
msgid "The remaining time before the request can be ran."
514501
msgstr ""
515502

516-
#: interactions.api.http.limiter.Limiter.__init__:1 of
517-
msgid "The asynchronous lock to control limits for."
518-
msgstr ""
519-
520-
#: interactions.api.http.limiter.Limiter.__init__:3 of
521-
msgid "The remaining time to run the limited lock on. Defaults to ``0``."
522-
msgstr ""
523-
524503
#: interactions.api.http.request._Request:1 of
525504
msgid "A class representing how HTTP requests are sent/read."
526505
msgstr ""
@@ -553,10 +532,6 @@ msgstr ""
553532
msgid "The global rate limiter."
554533
msgstr ""
555534

556-
#: interactions.api.http.request._Request.__init__:1 of
557-
msgid "The application token used for authorizing."
558-
msgstr ""
559-
560535
#: interactions.api.http.request._Request._check_session:1 of
561536
msgid "Ensures that we have a valid connection session."
562537
msgstr ""
@@ -2768,3 +2743,21 @@ msgstr ""
27682743
#: of
27692744
msgid "Deletes the original message object sent."
27702745
msgstr ""
2746+
2747+
#~ msgid "The HTTP request method."
2748+
#~ msgstr ""
2749+
2750+
#~ msgid "The path of the HTTP/URL."
2751+
#~ msgstr ""
2752+
2753+
#~ msgid "Optional keyword-only arguments to pass as information in the route."
2754+
#~ msgstr ""
2755+
2756+
#~ msgid "The asynchronous lock to control limits for."
2757+
#~ msgstr ""
2758+
2759+
#~ msgid "The remaining time to run the limited lock on. Defaults to ``0``."
2760+
#~ msgstr ""
2761+
2762+
#~ msgid "The application token used for authorizing."
2763+
#~ msgstr ""

0 commit comments

Comments
 (0)