4
"Project-Id-Version: discordpy\n"
5
"Report-Msgid-Bugs-To: \n"
6
"POT-Creation-Date: 2020-10-23 22:41-0400\n"
7
"PO-Revision-Date: 2020-10-24 02:41+0000\n"
10
"Language-Team: Japanese\n"
11
"Plural-Forms: nplurals=1; plural=0\n"
13
"Content-Type: text/plain; charset=utf-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
"Generated-By: Babel 2.5.3\n"
17
#: ../../ext/commands/api.rst:4
21
#: ../../ext/commands/api.rst:6
23
"The following section outlines the API of disnake's command extension "
25
msgstr "この項目ではdiscord.pyのAPIが持つコマンド拡張モジュールについて解説します。"
27
#: ../../ext/commands/api.rst:11
31
#: disnake.ext.commands.Bot:1 of
32
msgid "Represents a disnake bot."
33
msgstr "Discord Botを表します。"
35
#: disnake.ext.commands.Bot:3 of
37
"This class is a subclass of :class:`disnake.Client` and as a result "
38
"anything that you can do with a :class:`disnake.Client` you can do with "
41
"このクラスは :class:`disnake.Client` のサブクラスのため、 :class:`disnake.Client` "
42
"でできることと同じことをこのBotで行うことができます。"
44
#: disnake.ext.commands.Bot:7 of
46
"This class also subclasses :class:`.GroupMixin` to provide the "
47
"functionality to manage commands."
48
msgstr "また、 :class:`.GroupMixin` も継承しており、コマンド管理の機能も使用可能です。"
50
#: disnake.ext.commands.Bot:12 of
52
"The command prefix is what the message content must contain initially to "
53
"have a command invoked. This prefix could either be a string to indicate "
54
"what the prefix should be, or a callable that takes in the bot as its "
55
"first parameter and :class:`disnake.Message` as its second parameter and "
56
"returns the prefix. This is to facilitate \"dynamic\" command prefixes. "
57
"This callable can be either a regular function or a coroutine."
59
"コマンドの接頭詞とは、コマンドの判定のためにメッセージの先頭に付けなければならないものです。接頭詞には、そのまま接頭詞として使用する文字列、または"
60
" :class:`disnake.Message` "
61
"を二つ目の引数として受け取り、接頭詞を返す呼び出し可能な関数を渡すことができます。これは「動的な」接頭詞の実装を容易にするためです。"
63
#: disnake.ext.commands.Bot:20 of
65
"An empty string as the prefix always matches, enabling prefix-less "
66
"command invocation. While this may be useful in DMs it should be avoided "
67
"in servers, as it's likely to cause performance issues and unintended "
69
msgstr "接頭詞に空文字列を渡せば、接頭詞なしでコマンドの呼び出しができます。これはDM上では有用ですが、サーバーでは意図せずコマンドを呼び出してしまうことに繋がるため、避けるべきです。"
71
#: disnake.ext.commands.Bot:25 of
73
"The command prefix could also be an iterable of strings indicating that "
74
"multiple checks for the prefix should be used and the first one to match "
75
"will be the invocation prefix. You can get this prefix via "
76
":attr:`.Context.prefix`. To avoid confusion empty iterables are not "
79
"接頭詞は複数設定することもできます。複数の接頭詞がイテラブルで渡された場合、メッセージと最初に一致するものが接頭詞として使用されます。この接頭詞は"
80
" :attr:`.Context.prefix` で取得することができます。また、空のイテラブルオブジェクトは使用できません。"
82
#: disnake.ext.commands.Bot:33 of
84
"When passing multiple prefixes be careful to not pass a prefix that "
85
"matches a longer prefix occurring later in the sequence. For example, if"
86
" the command prefix is ``('!', '!?')`` the ``'!?'`` prefix will never be"
87
" matched to any message as the previous one matches messages starting "
88
"with ``!?``. This is especially important when passing an empty string, "
89
"it should always be last as no prefix after it will be matched."
91
"複数の接頭辞を渡すとき、後の接頭辞にマッチする接頭辞を、それよりも前に渡さないよう注意してください。たとえば、接頭辞が``('!', "
92
"'!?')``のとき、``!?``の接頭辞は、その前のものが``!?``で始まるメッセージにマッチするため、どのメッセージにも反応しません。これは空文字列を渡すときは特に重要で、その後の接頭辞は無視されるため、空文字列は最後に置かないといけません。"
94
#: disnake.ext.commands.Bot:43 of
96
"Whether the commands should be case insensitive. Defaults to ``False``. "
97
"This attribute does not carry over to groups. You must set it to every "
98
"group if you require group commands to be case insensitive as well."
101
#: disnake.ext.commands.BadBoolArgument disnake.ext.commands.BadUnionArgument
102
#: disnake.ext.commands.Bot disnake.ext.commands.Bot.activity
103
#: disnake.ext.commands.Bot.allowed_mentions
104
#: disnake.ext.commands.Bot.cached_messages disnake.ext.commands.Bot.cogs
105
#: disnake.ext.commands.Bot.commands disnake.ext.commands.Bot.emojis
106
#: disnake.ext.commands.Bot.extensions disnake.ext.commands.Bot.guilds
107
#: disnake.ext.commands.Bot.intents disnake.ext.commands.Bot.latency
108
#: disnake.ext.commands.Bot.private_channels disnake.ext.commands.Bot.user
109
#: disnake.ext.commands.Bot.users disnake.ext.commands.Bot.voice_clients
110
#: disnake.ext.commands.BotMissingAnyRole
111
#: disnake.ext.commands.BotMissingPermissions
112
#: disnake.ext.commands.BotMissingRole disnake.ext.commands.ChannelNotFound
113
#: disnake.ext.commands.ChannelNotReadable disnake.ext.commands.CheckAnyFailure
114
#: disnake.ext.commands.Cog.description disnake.ext.commands.Cog.qualified_name
115
#: disnake.ext.commands.CogMeta disnake.ext.commands.Command
116
#: disnake.ext.commands.Command.cog_name
117
#: disnake.ext.commands.Command.full_parent_name
118
#: disnake.ext.commands.Command.parents
119
#: disnake.ext.commands.Command.qualified_name
120
#: disnake.ext.commands.Command.root_parent
121
#: disnake.ext.commands.Command.short_doc
122
#: disnake.ext.commands.Command.signature
123
#: disnake.ext.commands.CommandInvokeError
124
#: disnake.ext.commands.CommandOnCooldown
125
#: disnake.ext.commands.CommandRegistrationError disnake.ext.commands.Context
126
#: disnake.ext.commands.Context.cog disnake.ext.commands.Context.guild
127
#: disnake.ext.commands.Context.valid disnake.ext.commands.Context.voice_client
128
#: disnake.ext.commands.ConversionError disnake.ext.commands.DefaultHelpCommand
129
#: disnake.ext.commands.EmojiNotFound
130
#: disnake.ext.commands.ExpectedClosingQuoteError
131
#: disnake.ext.commands.ExtensionError disnake.ext.commands.ExtensionFailed
132
#: disnake.ext.commands.ExtensionNotFound disnake.ext.commands.Group
133
#: disnake.ext.commands.Group.cog_name disnake.ext.commands.Group.commands
134
#: disnake.ext.commands.Group.full_parent_name
135
#: disnake.ext.commands.Group.parents disnake.ext.commands.Group.qualified_name
136
#: disnake.ext.commands.Group.root_parent disnake.ext.commands.Group.short_doc
137
#: disnake.ext.commands.Group.signature disnake.ext.commands.GroupMixin
138
#: disnake.ext.commands.GroupMixin.commands disnake.ext.commands.HelpCommand
139
#: disnake.ext.commands.HelpCommand.clean_prefix
140
#: disnake.ext.commands.InvalidEndOfQuotedStringError
141
#: disnake.ext.commands.MaxConcurrencyReached
142
#: disnake.ext.commands.MemberNotFound disnake.ext.commands.MessageNotFound
143
#: disnake.ext.commands.MinimalHelpCommand disnake.ext.commands.MissingAnyRole
144
#: disnake.ext.commands.MissingPermissions
145
#: disnake.ext.commands.MissingRequiredArgument
146
#: disnake.ext.commands.MissingRole disnake.ext.commands.Paginator
147
#: disnake.ext.commands.Paginator.pages
148
#: disnake.ext.commands.PartialEmojiConversionFailure
149
#: disnake.ext.commands.RoleNotFound disnake.ext.commands.UnexpectedQuoteError
150
#: disnake.ext.commands.UserNotFound disnake.ext.commands.clean_content of
154
#: disnake.ext.commands.Bot:47 disnake.ext.commands.Bot:61
155
#: disnake.ext.commands.Bot.is_owner:17 disnake.ext.commands.Command:49
156
#: disnake.ext.commands.Command:86 disnake.ext.commands.Command:97
157
#: disnake.ext.commands.Command:112 disnake.ext.commands.Command:121
158
#: disnake.ext.commands.Command:129 disnake.ext.commands.Command.can_run:16
159
#: disnake.ext.commands.Command.is_on_cooldown:7
160
#: disnake.ext.commands.CommandRegistrationError:18
161
#: disnake.ext.commands.Context:77 disnake.ext.commands.Context.valid:3
162
#: disnake.ext.commands.DefaultHelpCommand:18 disnake.ext.commands.Group:18
163
#: disnake.ext.commands.Group:25 disnake.ext.commands.Group.can_run:16
164
#: disnake.ext.commands.Group.is_on_cooldown:7
165
#: disnake.ext.commands.GroupMixin:15 disnake.ext.commands.HelpCommand:24
166
#: disnake.ext.commands.HelpCommand:31
167
#: disnake.ext.commands.MinimalHelpCommand:9
168
#: disnake.ext.commands.clean_content:10 disnake.ext.commands.clean_content:16
169
#: disnake.ext.commands.clean_content:22 of
173
#: disnake.ext.commands.Bot:51 of
175
msgid "The content prefixed into the default help message."
176
msgstr ":class:`str` -- この属性に入力されたテキストは、デフォルトのヘルプメッセージの先頭に表示されます。"
178
#: disnake.ext.commands.BadBoolArgument:11 disnake.ext.commands.Bot:53
179
#: disnake.ext.commands.ChannelNotFound:11
180
#: disnake.ext.commands.Cog.description:3
181
#: disnake.ext.commands.Cog.qualified_name:3 disnake.ext.commands.CogMeta:37
182
#: disnake.ext.commands.Command:10 disnake.ext.commands.Command:22
183
#: disnake.ext.commands.Command:34 disnake.ext.commands.Command:79
184
#: disnake.ext.commands.Command.full_parent_name:6
185
#: disnake.ext.commands.Command.qualified_name:7
186
#: disnake.ext.commands.Command.short_doc:7
187
#: disnake.ext.commands.Command.signature:3
188
#: disnake.ext.commands.CommandRegistrationError:12
189
#: disnake.ext.commands.Context:41 disnake.ext.commands.Context:54
190
#: disnake.ext.commands.DefaultHelpCommand:49
191
#: disnake.ext.commands.DefaultHelpCommand:56
192
#: disnake.ext.commands.EmojiNotFound:11
193
#: disnake.ext.commands.ExpectedClosingQuoteError:9
194
#: disnake.ext.commands.ExtensionError:9 disnake.ext.commands.ExtensionFailed:9
195
#: disnake.ext.commands.ExtensionNotFound:12
196
#: disnake.ext.commands.Group.full_parent_name:6
197
#: disnake.ext.commands.Group.qualified_name:7
198
#: disnake.ext.commands.Group.short_doc:7
199
#: disnake.ext.commands.Group.signature:3
200
#: disnake.ext.commands.HelpCommand.clean_prefix:3
201
#: disnake.ext.commands.HelpCommand.command_not_found:13
202
#: disnake.ext.commands.HelpCommand.get_command_signature:7
203
#: disnake.ext.commands.HelpCommand.invoked_with:10
204
#: disnake.ext.commands.HelpCommand.remove_mentions:6
205
#: disnake.ext.commands.HelpCommand.subcommand_not_found:20
206
#: disnake.ext.commands.InvalidEndOfQuotedStringError:10
207
#: disnake.ext.commands.MemberNotFound:12
208
#: disnake.ext.commands.MessageNotFound:11
209
#: disnake.ext.commands.MinimalHelpCommand:16
210
#: disnake.ext.commands.MinimalHelpCommand:23
211
#: disnake.ext.commands.MinimalHelpCommand:48
212
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature:7
213
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note:6
214
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note:9
215
#: disnake.ext.commands.Paginator:13 disnake.ext.commands.Paginator:19
216
#: disnake.ext.commands.PartialEmojiConversionFailure:12
217
#: disnake.ext.commands.RoleNotFound:11
218
#: disnake.ext.commands.UnexpectedQuoteError:9
219
#: disnake.ext.commands.UserNotFound:12 of
223
#: disnake.ext.commands.Bot:57 of
226
"If ``True``, the bot will only listen to commands invoked by itself "
227
"rather than ignoring itself. If ``False`` (the default) then the bot will"
228
" ignore itself. This cannot be changed once initialised."
230
":class:`bool` -- ``True`` の場合、Botは自分自身を無視せず、自分自身を呼び出したコマンドのみをトリガーとします。 "
231
"``False`` (デフォルト)なら自分自身を無視します。初期化後には変更できません。"
233
#: disnake.ext.commands.Bot:65 of
236
"The help command implementation to use. This can be dynamically set at "
237
"runtime. To remove the help command pass ``None``. For more information "
238
"on implementing a help command, see :ref:`ext_commands_help_command`."
240
"Optional[:class:`.HelpCommand`] -- "
241
"ヘルプコマンドの実装。これは、実行時に動的に設定できます。ヘルプコマンドを削除するには、``None`` "
242
"を入力してください。ヘルプコマンドの実装の詳細については、 :ref:'ext_commands_help_command' を参照してください。"
244
#: disnake.ext.commands.Bot:69 of
245
msgid "Optional[:class:`.HelpCommand`]"
248
#: disnake.ext.commands.Bot:73 of
251
"The user ID that owns the bot. If this is not set and is then queried via"
252
" :meth:`.is_owner` then it is fetched automatically using "
253
":meth:`~.Bot.application_info`."
255
"Optional[:class:`int`] -- Botを管理するユーザーのID。 設定されていない場合、 :meth:`.is_owner` "
256
"を介して参照されたとき、 :meth:`~.Bot.application_info` を用いて自動的に取得されます。"
258
#: disnake.ext.commands.Bot:77 disnake.ext.commands.DefaultHelpCommand:36
259
#: disnake.ext.commands.MinimalHelpCommand:41 of
260
msgid "Optional[:class:`int`]"
263
#: disnake.ext.commands.Bot:81 of
265
"The user IDs that owns the bot. This is similar to :attr:`owner_id`. If "
266
"this is not set and the application is team based, then it is fetched "
267
"automatically using :meth:`~.Bot.application_info`. For performance "
268
"reasons it is recommended to use a :class:`set` for the collection. You "
269
"cannot set both ``owner_id`` and ``owner_ids``."
272
#: disnake.ext.commands.Bot:89 of
273
msgid "Optional[Collection[:class:`int`]]"
276
#: disnake.ext.commands.Bot.activity:1 of
277
msgid "The activity being used upon logging in."
280
#: disnake.ext.commands.Bot.activity:4 of
281
msgid "Optional[:class:`.BaseActivity`]"
284
#: disnake.ext.commands.Bot.add_check:1 of
285
msgid "Adds a global check to the bot."
286
msgstr "ボットにグローバルチェックを追加します。"
288
#: disnake.ext.commands.Bot.add_check:3 of
290
"This is the non-decorator interface to :meth:`.check` and "
291
":meth:`.check_once`."
292
msgstr "これは:meth:`.check`と:meth:`.check_once`のデコレータでない実装です。"
294
#: ../../ext/commands/api.rst disnake.ext.commands.Bot.add_check
295
#: disnake.ext.commands.Bot.add_cog disnake.ext.commands.Bot.add_command
296
#: disnake.ext.commands.Bot.add_listener disnake.ext.commands.Bot.after_invoke
297
#: disnake.ext.commands.Bot.before_identify_hook
298
#: disnake.ext.commands.Bot.before_invoke
299
#: disnake.ext.commands.Bot.change_presence disnake.ext.commands.Bot.connect
300
#: disnake.ext.commands.Bot.create_guild disnake.ext.commands.Bot.delete_invite
301
#: disnake.ext.commands.Bot.fetch_guild disnake.ext.commands.Bot.fetch_guilds
302
#: disnake.ext.commands.Bot.fetch_invite
303
#: disnake.ext.commands.Bot.fetch_template disnake.ext.commands.Bot.fetch_user
304
#: disnake.ext.commands.Bot.fetch_user_profile
305
#: disnake.ext.commands.Bot.fetch_widget disnake.ext.commands.Bot.get_channel
306
#: disnake.ext.commands.Bot.get_cog disnake.ext.commands.Bot.get_command
307
#: disnake.ext.commands.Bot.get_context disnake.ext.commands.Bot.get_emoji
308
#: disnake.ext.commands.Bot.get_guild disnake.ext.commands.Bot.get_prefix
309
#: disnake.ext.commands.Bot.get_user disnake.ext.commands.Bot.invoke
310
#: disnake.ext.commands.Bot.is_owner disnake.ext.commands.Bot.load_extension
311
#: disnake.ext.commands.Bot.login disnake.ext.commands.Bot.process_commands
312
#: disnake.ext.commands.Bot.reload_extension
313
#: disnake.ext.commands.Bot.remove_check disnake.ext.commands.Bot.remove_cog
314
#: disnake.ext.commands.Bot.remove_command
315
#: disnake.ext.commands.Bot.remove_listener
316
#: disnake.ext.commands.Bot.request_offline_members
317
#: disnake.ext.commands.Bot.unload_extension disnake.ext.commands.Bot.wait_for
318
#: disnake.ext.commands.CategoryChannelConverter.convert
319
#: disnake.ext.commands.Cog.cog_after_invoke
320
#: disnake.ext.commands.Cog.cog_before_invoke
321
#: disnake.ext.commands.Cog.cog_command_error disnake.ext.commands.Cog.listener
322
#: disnake.ext.commands.ColourConverter.convert
323
#: disnake.ext.commands.Command.add_check
324
#: disnake.ext.commands.Command.after_invoke
325
#: disnake.ext.commands.Command.before_invoke
326
#: disnake.ext.commands.Command.can_run disnake.ext.commands.Command.error
327
#: disnake.ext.commands.Command.get_cooldown_retry_after
328
#: disnake.ext.commands.Command.is_on_cooldown
329
#: disnake.ext.commands.Command.remove_check
330
#: disnake.ext.commands.Command.reset_cooldown
331
#: disnake.ext.commands.Context.fetch_message
332
#: disnake.ext.commands.Context.history disnake.ext.commands.Context.invoke
333
#: disnake.ext.commands.Context.reinvoke disnake.ext.commands.Context.send
334
#: disnake.ext.commands.Context.send_help
335
#: disnake.ext.commands.Converter.convert
336
#: disnake.ext.commands.DefaultHelpCommand.add_command_formatting
337
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands
338
#: disnake.ext.commands.EmojiConverter.convert
339
#: disnake.ext.commands.GameConverter.convert
340
#: disnake.ext.commands.Group.add_check disnake.ext.commands.Group.add_command
341
#: disnake.ext.commands.Group.after_invoke
342
#: disnake.ext.commands.Group.before_invoke disnake.ext.commands.Group.can_run
343
#: disnake.ext.commands.Group.error disnake.ext.commands.Group.get_command
344
#: disnake.ext.commands.Group.get_cooldown_retry_after
345
#: disnake.ext.commands.Group.is_on_cooldown
346
#: disnake.ext.commands.Group.remove_check
347
#: disnake.ext.commands.Group.remove_command
348
#: disnake.ext.commands.Group.reset_cooldown
349
#: disnake.ext.commands.GroupMixin.add_command
350
#: disnake.ext.commands.GroupMixin.get_command
351
#: disnake.ext.commands.GroupMixin.remove_command
352
#: disnake.ext.commands.HelpCommand.add_check
353
#: disnake.ext.commands.HelpCommand.command_not_found
354
#: disnake.ext.commands.HelpCommand.filter_commands
355
#: disnake.ext.commands.HelpCommand.get_command_signature
356
#: disnake.ext.commands.HelpCommand.get_max_size
357
#: disnake.ext.commands.HelpCommand.on_help_command_error
358
#: disnake.ext.commands.HelpCommand.prepare_help_command
359
#: disnake.ext.commands.HelpCommand.remove_check
360
#: disnake.ext.commands.HelpCommand.send_bot_help
361
#: disnake.ext.commands.HelpCommand.send_cog_help
362
#: disnake.ext.commands.HelpCommand.send_command_help
363
#: disnake.ext.commands.HelpCommand.send_error_message
364
#: disnake.ext.commands.HelpCommand.send_group_help
365
#: disnake.ext.commands.HelpCommand.subcommand_not_found
366
#: disnake.ext.commands.InviteConverter.convert
367
#: disnake.ext.commands.MemberConverter.convert
368
#: disnake.ext.commands.MessageConverter.convert
369
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting
370
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting
371
#: disnake.ext.commands.MinimalHelpCommand.add_command_formatting
372
#: disnake.ext.commands.MinimalHelpCommand.add_subcommand_formatting
373
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature
374
#: disnake.ext.commands.NSFWChannelRequired
375
#: disnake.ext.commands.Paginator.add_line
376
#: disnake.ext.commands.PartialEmojiConverter.convert
377
#: disnake.ext.commands.RoleConverter.convert
378
#: disnake.ext.commands.TextChannelConverter.convert
379
#: disnake.ext.commands.UserConverter.convert
380
#: disnake.ext.commands.VoiceChannelConverter.convert
381
#: disnake.ext.commands.check disnake.ext.commands.check_any
382
#: disnake.ext.commands.clean_content.convert disnake.ext.commands.command
383
#: disnake.ext.commands.cooldown disnake.ext.commands.has_any_role
384
#: disnake.ext.commands.has_permissions disnake.ext.commands.has_role
385
#: disnake.ext.commands.max_concurrency of
389
#: disnake.ext.commands.Bot.add_check:6 of
390
msgid "The function that was used as a global check."
391
msgstr "グローバルチェックとして使用される関数。"
393
#: disnake.ext.commands.Bot.add_check:7 of
396
"If the function should only be called once per :meth:`.Command.invoke` "
398
msgstr "その関数が :meth:`Command.invoke` の呼び出し時に、一度だけ呼び出されるべきかどうか。"
400
#: disnake.ext.commands.Bot.add_cog:1 of
401
msgid "Adds a \"cog\" to the bot."
402
msgstr "botに「コグ」を追加します。"
404
#: disnake.ext.commands.Bot.add_cog:3 of
405
msgid "A cog is a class that has its own event listeners and commands."
406
msgstr "コグは、イベントリスナーとコマンドを持つクラスです。"
408
#: disnake.ext.commands.Bot.add_cog:5 of
409
msgid "The cog to register to the bot."
412
#: disnake.ext.commands.Bot.add_cog disnake.ext.commands.Bot.add_command
413
#: disnake.ext.commands.Bot.after_invoke
414
#: disnake.ext.commands.Bot.application_info
415
#: disnake.ext.commands.Bot.before_invoke
416
#: disnake.ext.commands.Bot.change_presence disnake.ext.commands.Bot.connect
417
#: disnake.ext.commands.Bot.create_guild disnake.ext.commands.Bot.delete_invite
418
#: disnake.ext.commands.Bot.event disnake.ext.commands.Bot.fetch_channel
419
#: disnake.ext.commands.Bot.fetch_guild disnake.ext.commands.Bot.fetch_guilds
420
#: disnake.ext.commands.Bot.fetch_invite
421
#: disnake.ext.commands.Bot.fetch_template disnake.ext.commands.Bot.fetch_user
422
#: disnake.ext.commands.Bot.fetch_user_profile
423
#: disnake.ext.commands.Bot.fetch_webhook disnake.ext.commands.Bot.fetch_widget
424
#: disnake.ext.commands.Bot.listen disnake.ext.commands.Bot.load_extension
425
#: disnake.ext.commands.Bot.login disnake.ext.commands.Bot.reload_extension
426
#: disnake.ext.commands.Bot.request_offline_members
427
#: disnake.ext.commands.Bot.start disnake.ext.commands.Bot.unload_extension
428
#: disnake.ext.commands.Bot.wait_for
429
#: disnake.ext.commands.CategoryChannelConverter.convert
430
#: disnake.ext.commands.Cog.listener
431
#: disnake.ext.commands.ColourConverter.convert
432
#: disnake.ext.commands.Command.after_invoke
433
#: disnake.ext.commands.Command.before_invoke
434
#: disnake.ext.commands.Command.can_run disnake.ext.commands.Command.error
435
#: disnake.ext.commands.Context.fetch_message
436
#: disnake.ext.commands.Context.history disnake.ext.commands.Context.invoke
437
#: disnake.ext.commands.Context.pins disnake.ext.commands.Context.reinvoke
438
#: disnake.ext.commands.Context.send disnake.ext.commands.Converter.convert
439
#: disnake.ext.commands.EmojiConverter.convert
440
#: disnake.ext.commands.GameConverter.convert
441
#: disnake.ext.commands.Group.add_command
442
#: disnake.ext.commands.Group.after_invoke
443
#: disnake.ext.commands.Group.before_invoke disnake.ext.commands.Group.can_run
444
#: disnake.ext.commands.Group.error disnake.ext.commands.GroupMixin.add_command
445
#: disnake.ext.commands.InviteConverter.convert
446
#: disnake.ext.commands.MemberConverter.convert
447
#: disnake.ext.commands.MessageConverter.convert
448
#: disnake.ext.commands.Paginator.add_line
449
#: disnake.ext.commands.PartialEmojiConverter.convert
450
#: disnake.ext.commands.RoleConverter.convert
451
#: disnake.ext.commands.TextChannelConverter.convert
452
#: disnake.ext.commands.UserConverter.convert
453
#: disnake.ext.commands.VoiceChannelConverter.convert
454
#: disnake.ext.commands.check_any disnake.ext.commands.clean_content.convert
455
#: disnake.ext.commands.command of
460
#: disnake.ext.commands.Bot.add_cog:8 of
462
msgid "The cog does not inherit from :class:`.Cog`."
463
msgstr ":exc:`TypeError -- コグが :class:`.Cog` を継承していない。"
465
#: disnake.ext.commands.Bot.add_cog:9 of
467
msgid "An error happened during loading."
468
msgstr ":exc:`CommandError` -- 読み込み中にエラーが発生した。"
470
#: disnake.ext.commands.Bot.add_command:1
471
#: disnake.ext.commands.Group.add_command:1
472
#: disnake.ext.commands.GroupMixin.add_command:1 of
474
msgid "Adds a :class:`.Command` into the internal list of commands."
475
msgstr ":class:`.Command`やそのサブクラスを内部のコマンドリストに追加します。"
477
#: disnake.ext.commands.Bot.add_command:3
478
#: disnake.ext.commands.Group.add_command:3
479
#: disnake.ext.commands.GroupMixin.add_command:3 of
481
"This is usually not called, instead the :meth:`~.GroupMixin.command` or "
482
":meth:`~.GroupMixin.group` shortcut decorators are used instead."
484
"これは通常、呼び出されません。代わりに :meth:`~.GroupMixin.command` か "
485
":meth:`~.GroupMixin.group` のショートカットデコレータが使われます。"
487
#: disnake.ext.commands.Bot.add_command:6
488
#: disnake.ext.commands.Group.add_command:6
489
#: disnake.ext.commands.GroupMixin.add_command:6 of
491
"Raise :exc:`.CommandRegistrationError` instead of generic "
492
":exc:`.ClientException`"
495
#: disnake.ext.commands.Bot.add_command:9
496
#: disnake.ext.commands.Group.add_command:9
497
#: disnake.ext.commands.GroupMixin.add_command:9 of
498
msgid "The command to add."
501
#: disnake.ext.commands.Bot.add_command:12
502
#: disnake.ext.commands.Group.add_command:12
503
#: disnake.ext.commands.GroupMixin.add_command:12 of
504
msgid "If the command or its alias is already registered by different command."
507
#: disnake.ext.commands.Bot.add_command:13
508
#: disnake.ext.commands.Group.add_command:13
509
#: disnake.ext.commands.GroupMixin.add_command:13 of
511
msgid "If the command passed is not a subclass of :class:`.Command`."
512
msgstr ":exc:`TypeError` -- 渡されたコマンドが:class:`.Command`のサブコマンドではないという例外"
514
#: disnake.ext.commands.Bot.add_listener:1 of
515
msgid "The non decorator alternative to :meth:`.listen`."
516
msgstr ":meth:`.listen` の代替の非デコレータ"
518
#: disnake.ext.commands.Bot.add_listener:3 of
519
msgid "The function to call."
522
#: disnake.ext.commands.Bot.add_listener:5 of
523
msgid "The name of the event to listen for. Defaults to ``func.__name__``."
524
msgstr "待機するイベントの名前。デフォルトでは ``func.__name__`` です。"
526
#: disnake.ext.commands.Bot.add_listener:9
527
#: disnake.ext.commands.Bot.change_presence:6 disnake.ext.commands.Bot.check:16
528
#: disnake.ext.commands.Bot.check_once:26 disnake.ext.commands.Bot.event:8
529
#: disnake.ext.commands.Bot.listen:8 disnake.ext.commands.before_invoke:9
530
#: disnake.ext.commands.has_any_role:20 disnake.ext.commands.has_permissions:16
531
#: disnake.ext.commands.when_mentioned_or:6 of
535
#: disnake.ext.commands.Bot.after_invoke:1
536
#: disnake.ext.commands.Command.after_invoke:1
537
#: disnake.ext.commands.Group.after_invoke:1
538
#: disnake.ext.commands.after_invoke:1 of
539
msgid "A decorator that registers a coroutine as a post-invoke hook."
542
#: disnake.ext.commands.Bot.after_invoke:3
543
#: disnake.ext.commands.Command.after_invoke:3
544
#: disnake.ext.commands.Group.after_invoke:3 of
546
"A post-invoke hook is called directly after the command is called. This "
547
"makes it a useful function to clean-up database connections or any type "
548
"of clean up required."
551
#: disnake.ext.commands.Bot.after_invoke:7
552
#: disnake.ext.commands.Command.after_invoke:7
553
#: disnake.ext.commands.Group.after_invoke:7 of
554
msgid "This post-invoke hook takes a sole parameter, a :class:`.Context`."
557
#: disnake.ext.commands.Bot.after_invoke:11 of
559
"Similar to :meth:`~.Bot.before_invoke`\\, this is not called unless "
560
"checks and argument parsing procedures succeed. This hook is, however, "
561
"**always** called regardless of the internal command callback raising an "
562
"error (i.e. :exc:`.CommandInvokeError`\\). This makes it ideal for clean-"
566
#: disnake.ext.commands.Bot.after_invoke:17
567
#: disnake.ext.commands.Command.after_invoke:11
568
#: disnake.ext.commands.Group.after_invoke:11 of
569
msgid "The coroutine to register as the post-invoke hook."
572
#: disnake.ext.commands.Bot.after_invoke:20
573
#: disnake.ext.commands.Bot.before_invoke:19 disnake.ext.commands.Bot.event:15
574
#: disnake.ext.commands.Command.after_invoke:14
575
#: disnake.ext.commands.Command.before_invoke:14
576
#: disnake.ext.commands.Command.error:10
577
#: disnake.ext.commands.Group.after_invoke:14
578
#: disnake.ext.commands.Group.before_invoke:14
579
#: disnake.ext.commands.Group.error:10 of
581
msgid "The coroutine passed is not actually a coroutine."
582
msgstr ":exc:`TypeError` -- 渡されたコルーチンが実際はコルーチンではない。"
584
#: disnake.ext.commands.Bot.allowed_mentions:1 of
585
msgid "The allowed mention configuration."
588
#: disnake.ext.commands.Bot.allowed_mentions:5 of
589
msgid "Optional[:class:`~disnake.AllowedMentions`]"
592
#: disnake.ext.commands.Bot.application_info:1
593
#: disnake.ext.commands.Bot.before_identify_hook:1
594
#: disnake.ext.commands.Bot.change_presence:1
595
#: disnake.ext.commands.Bot.connect:1 disnake.ext.commands.Bot.create_guild:1
596
#: disnake.ext.commands.Bot.delete_invite:1
597
#: disnake.ext.commands.Bot.fetch_channel:1
598
#: disnake.ext.commands.Bot.fetch_guild:1
599
#: disnake.ext.commands.Bot.fetch_guilds:1
600
#: disnake.ext.commands.Bot.fetch_invite:1
601
#: disnake.ext.commands.Bot.fetch_template:1
602
#: disnake.ext.commands.Bot.fetch_user:1
603
#: disnake.ext.commands.Bot.fetch_user_profile:1
604
#: disnake.ext.commands.Bot.fetch_webhook:1
605
#: disnake.ext.commands.Bot.fetch_widget:1
606
#: disnake.ext.commands.Bot.get_context:1 disnake.ext.commands.Bot.get_prefix:1
607
#: disnake.ext.commands.Bot.invoke:1 disnake.ext.commands.Bot.is_owner:1
608
#: disnake.ext.commands.Bot.login:1 disnake.ext.commands.Bot.logout:1
609
#: disnake.ext.commands.Bot.on_command_error:1
610
#: disnake.ext.commands.Bot.on_error:1
611
#: disnake.ext.commands.Bot.process_commands:1
612
#: disnake.ext.commands.Bot.request_offline_members:1
613
#: disnake.ext.commands.Bot.start:1 disnake.ext.commands.Bot.wait_for:1
614
#: disnake.ext.commands.Bot.wait_until_ready:1
615
#: disnake.ext.commands.CategoryChannelConverter.convert:1
616
#: disnake.ext.commands.ColourConverter.convert:1
617
#: disnake.ext.commands.Command.__call__:1
618
#: disnake.ext.commands.Command.can_run:1
619
#: disnake.ext.commands.Context.fetch_message:1
620
#: disnake.ext.commands.Context.invoke:1 disnake.ext.commands.Context.pins:1
621
#: disnake.ext.commands.Context.reinvoke:1 disnake.ext.commands.Context.send:1
622
#: disnake.ext.commands.Context.send_help:1
623
#: disnake.ext.commands.Context.trigger_typing:1
624
#: disnake.ext.commands.Converter.convert:1
625
#: disnake.ext.commands.EmojiConverter.convert:1
626
#: disnake.ext.commands.GameConverter.convert:1
627
#: disnake.ext.commands.Group.can_run:1
628
#: disnake.ext.commands.HelpCommand.command_callback:1
629
#: disnake.ext.commands.HelpCommand.filter_commands:1
630
#: disnake.ext.commands.HelpCommand.on_help_command_error:1
631
#: disnake.ext.commands.HelpCommand.prepare_help_command:1
632
#: disnake.ext.commands.HelpCommand.send_bot_help:1
633
#: disnake.ext.commands.HelpCommand.send_cog_help:1
634
#: disnake.ext.commands.HelpCommand.send_command_help:1
635
#: disnake.ext.commands.HelpCommand.send_error_message:1
636
#: disnake.ext.commands.HelpCommand.send_group_help:1
637
#: disnake.ext.commands.InviteConverter.convert:1
638
#: disnake.ext.commands.MemberConverter.convert:1
639
#: disnake.ext.commands.MessageConverter.convert:1
640
#: disnake.ext.commands.PartialEmojiConverter.convert:1
641
#: disnake.ext.commands.RoleConverter.convert:1
642
#: disnake.ext.commands.TextChannelConverter.convert:1
643
#: disnake.ext.commands.UserConverter.convert:1
644
#: disnake.ext.commands.VoiceChannelConverter.convert:1
645
#: disnake.ext.commands.clean_content.convert:1 of
649
#: disnake.ext.commands.Bot.application_info:3 of
650
msgid "Retrieves the bot's application information."
651
msgstr "Botのアプリケーション情報を取得します。"
653
#: disnake.ext.commands.Bot.application_info:5 of
655
msgid "Retrieving the information failed somehow."
656
msgstr ":exc:`.HTTPException` -- 何らかの要因で情報の取得に失敗した。"
658
#: disnake.ext.commands.Bot.application_info disnake.ext.commands.Bot.command
659
#: disnake.ext.commands.Bot.create_guild disnake.ext.commands.Bot.fetch_channel
660
#: disnake.ext.commands.Bot.fetch_guild disnake.ext.commands.Bot.fetch_invite
661
#: disnake.ext.commands.Bot.fetch_template disnake.ext.commands.Bot.fetch_user
662
#: disnake.ext.commands.Bot.fetch_user_profile
663
#: disnake.ext.commands.Bot.fetch_webhook disnake.ext.commands.Bot.fetch_widget
664
#: disnake.ext.commands.Bot.get_channel disnake.ext.commands.Bot.get_cog
665
#: disnake.ext.commands.Bot.get_command disnake.ext.commands.Bot.get_context
666
#: disnake.ext.commands.Bot.get_emoji disnake.ext.commands.Bot.get_guild
667
#: disnake.ext.commands.Bot.get_prefix disnake.ext.commands.Bot.get_user
668
#: disnake.ext.commands.Bot.group disnake.ext.commands.Bot.is_owner
669
#: disnake.ext.commands.Bot.remove_command disnake.ext.commands.Bot.wait_for
670
#: disnake.ext.commands.Cog.get_commands disnake.ext.commands.Cog.get_listeners
671
#: disnake.ext.commands.Command.can_run disnake.ext.commands.Command.copy
672
#: disnake.ext.commands.Command.get_cooldown_retry_after
673
#: disnake.ext.commands.Command.is_on_cooldown
674
#: disnake.ext.commands.Context.fetch_message disnake.ext.commands.Context.pins
675
#: disnake.ext.commands.Context.send disnake.ext.commands.Context.send_help
676
#: disnake.ext.commands.DefaultHelpCommand.get_destination
677
#: disnake.ext.commands.Group.can_run disnake.ext.commands.Group.command
678
#: disnake.ext.commands.Group.copy disnake.ext.commands.Group.get_command
679
#: disnake.ext.commands.Group.get_cooldown_retry_after
680
#: disnake.ext.commands.Group.group disnake.ext.commands.Group.is_on_cooldown
681
#: disnake.ext.commands.Group.remove_command
682
#: disnake.ext.commands.GroupMixin.command
683
#: disnake.ext.commands.GroupMixin.get_command
684
#: disnake.ext.commands.GroupMixin.group
685
#: disnake.ext.commands.GroupMixin.remove_command
686
#: disnake.ext.commands.HelpCommand.cog
687
#: disnake.ext.commands.HelpCommand.command_not_found
688
#: disnake.ext.commands.HelpCommand.filter_commands
689
#: disnake.ext.commands.HelpCommand.get_command_signature
690
#: disnake.ext.commands.HelpCommand.get_destination
691
#: disnake.ext.commands.HelpCommand.get_max_size
692
#: disnake.ext.commands.HelpCommand.invoked_with
693
#: disnake.ext.commands.HelpCommand.remove_mentions
694
#: disnake.ext.commands.HelpCommand.subcommand_not_found
695
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature
696
#: disnake.ext.commands.MinimalHelpCommand.get_destination
697
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note
698
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note of
702
#: disnake.ext.commands.Bot.application_info:7 of
703
msgid "The bot's application information."
704
msgstr "Botのアプリケーション情報。"
706
#: disnake.ext.commands.Bot.application_info disnake.ext.commands.Bot.command
707
#: disnake.ext.commands.Bot.create_guild disnake.ext.commands.Bot.fetch_channel
708
#: disnake.ext.commands.Bot.fetch_guild disnake.ext.commands.Bot.fetch_invite
709
#: disnake.ext.commands.Bot.fetch_template disnake.ext.commands.Bot.fetch_user
710
#: disnake.ext.commands.Bot.fetch_user_profile
711
#: disnake.ext.commands.Bot.fetch_webhook disnake.ext.commands.Bot.fetch_widget
712
#: disnake.ext.commands.Bot.get_channel disnake.ext.commands.Bot.get_cog
713
#: disnake.ext.commands.Bot.get_command disnake.ext.commands.Bot.get_context
714
#: disnake.ext.commands.Bot.get_emoji disnake.ext.commands.Bot.get_guild
715
#: disnake.ext.commands.Bot.get_prefix disnake.ext.commands.Bot.get_user
716
#: disnake.ext.commands.Bot.group disnake.ext.commands.Bot.is_owner
717
#: disnake.ext.commands.Bot.remove_command disnake.ext.commands.Bot.wait_for
718
#: disnake.ext.commands.Cog.get_commands disnake.ext.commands.Cog.get_listeners
719
#: disnake.ext.commands.Command.can_run disnake.ext.commands.Command.copy
720
#: disnake.ext.commands.Command.get_cooldown_retry_after
721
#: disnake.ext.commands.Command.is_on_cooldown
722
#: disnake.ext.commands.Context.fetch_message disnake.ext.commands.Context.pins
723
#: disnake.ext.commands.Context.send disnake.ext.commands.Context.send_help
724
#: disnake.ext.commands.DefaultHelpCommand.get_destination
725
#: disnake.ext.commands.Group.can_run disnake.ext.commands.Group.command
726
#: disnake.ext.commands.Group.copy disnake.ext.commands.Group.get_command
727
#: disnake.ext.commands.Group.get_cooldown_retry_after
728
#: disnake.ext.commands.Group.group disnake.ext.commands.Group.is_on_cooldown
729
#: disnake.ext.commands.Group.remove_command
730
#: disnake.ext.commands.GroupMixin.command
731
#: disnake.ext.commands.GroupMixin.get_command
732
#: disnake.ext.commands.GroupMixin.group
733
#: disnake.ext.commands.GroupMixin.remove_command
734
#: disnake.ext.commands.HelpCommand.cog
735
#: disnake.ext.commands.HelpCommand.command_not_found
736
#: disnake.ext.commands.HelpCommand.filter_commands
737
#: disnake.ext.commands.HelpCommand.get_command_signature
738
#: disnake.ext.commands.HelpCommand.get_destination
739
#: disnake.ext.commands.HelpCommand.get_max_size
740
#: disnake.ext.commands.HelpCommand.invoked_with
741
#: disnake.ext.commands.HelpCommand.remove_mentions
742
#: disnake.ext.commands.HelpCommand.subcommand_not_found
743
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature
744
#: disnake.ext.commands.MinimalHelpCommand.get_destination
745
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note
746
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note of
750
#: disnake.ext.commands.Bot.application_info:8 of
751
msgid ":class:`.AppInfo`"
752
msgstr ":class:`.AppInfo`"
754
#: disnake.ext.commands.Bot.before_identify_hook:3 of
756
"A hook that is called before IDENTIFYing a session. This is useful if you"
757
" wish to have more control over the synchronization of multiple "
758
"IDENTIFYing clients."
761
#: disnake.ext.commands.Bot.before_identify_hook:7 of
762
msgid "The default implementation sleeps for 5 seconds."
765
#: disnake.ext.commands.Bot.before_identify_hook:11 of
766
msgid "The shard ID that requested being IDENTIFY'd"
769
#: disnake.ext.commands.Bot.before_identify_hook:13 of
770
msgid "Whether this IDENTIFY is the first initial IDENTIFY."
773
#: disnake.ext.commands.Bot.before_invoke:1
774
#: disnake.ext.commands.Command.before_invoke:1
775
#: disnake.ext.commands.Group.before_invoke:1
776
#: disnake.ext.commands.before_invoke:1 of
777
msgid "A decorator that registers a coroutine as a pre-invoke hook."
780
#: disnake.ext.commands.Bot.before_invoke:3
781
#: disnake.ext.commands.Command.before_invoke:3
782
#: disnake.ext.commands.Group.before_invoke:3 of
784
"A pre-invoke hook is called directly before the command is called. This "
785
"makes it a useful function to set up database connections or any type of "
789
#: disnake.ext.commands.Bot.before_invoke:7
790
#: disnake.ext.commands.Command.before_invoke:7
791
#: disnake.ext.commands.Group.before_invoke:7 of
792
msgid "This pre-invoke hook takes a sole parameter, a :class:`.Context`."
795
#: disnake.ext.commands.Bot.before_invoke:11 of
797
"The :meth:`~.Bot.before_invoke` and :meth:`~.Bot.after_invoke` hooks are "
798
"only called if all checks and argument parsing procedures pass without "
799
"error. If any check or argument parsing procedures fail then the hooks "
803
#: disnake.ext.commands.Bot.before_invoke:16
804
#: disnake.ext.commands.Command.before_invoke:11
805
#: disnake.ext.commands.Group.before_invoke:11 of
806
msgid "The coroutine to register as the pre-invoke hook."
809
#: disnake.ext.commands.Bot.cached_messages:1 of
811
msgid "Read-only list of messages the connected client has cached."
812
msgstr "Sequence[:class:`.Message`] -- 接続されたクライアントにキャッシュされたメッセージの、読み取り専用リスト。"
814
#: disnake.ext.commands.Bot.cached_messages:5 of
815
msgid "Sequence[:class:`.Message`]"
818
#: disnake.ext.commands.Bot.change_presence:3 of
819
msgid "Changes the client's presence."
820
msgstr "クライアントのステータスを変更します。"
822
#: disnake.ext.commands.Bot.change_presence:12 of
823
msgid "The activity being done. ``None`` if no currently active activity is done."
824
msgstr "実行中のアクティビティ。何も実行していない場合は ``None`` を返します。"
826
#: disnake.ext.commands.Bot.change_presence:14 of
828
"Indicates what status to change to. If ``None``, then "
829
":attr:`.Status.online` is used."
830
msgstr "変更するステータスを示します。 ``None`` の場合、 :attr:`.Status.online` が使用されます。"
832
#: disnake.ext.commands.Bot.change_presence:17 of
834
"Indicates if you are going AFK. This allows the disnake client to know "
835
"how to handle push notifications better for you in case you are actually "
837
msgstr "ステータスを退席中に変更するかどうかを返します。これによって、実際にアイドル状態に移行した場合において、Discordクライアントにプッシュ通知をより適切に処理させることができます。"
839
#: disnake.ext.commands.Bot.change_presence:22 of
841
msgid "If the ``activity`` parameter is not the proper type."
842
msgstr ":exc:`.InvalidArgument` -- ``activity`` に渡された値が適切な型でない。"
844
#: disnake.ext.commands.Bot.check:1 of
845
msgid "A decorator that adds a global check to the bot."
846
msgstr "Botにグローバルチェックを追加するデコレーター"
848
#: disnake.ext.commands.Bot.check:3 of
850
"A global check is similar to a :func:`.check` that is applied on a per "
851
"command basis except it is run before any command checks have been "
852
"verified and applies to every command the bot has."
854
"このグローバルチェックは、 :func:`.check` "
855
"がコマンドごとに適用されるのと似ていますが、コマンドチェックが検証され、かつBotが持つすべてのコマンドが適用される前に実行される点で異なります。"
857
#: disnake.ext.commands.Bot.check:9 disnake.ext.commands.Bot.check_once:19 of
858
msgid "This function can either be a regular function or a coroutine."
859
msgstr "この関数は、通常の関数かコルーチン、どちらでも成り得ます。"
861
#: disnake.ext.commands.Bot.check:11 disnake.ext.commands.Bot.check_once:21 of
863
"Similar to a command :func:`.check`\\, this takes a single parameter of "
864
"type :class:`.Context` and can only raise exceptions inherited from "
865
":exc:`.CommandError`."
867
":func:`.check` コマンドと同様、 :class:`.Context` 型の単一のパラメータを取り、 "
868
":exc:`.CommandError` から継承された例外のみを投げることができます。"
870
#: disnake.ext.commands.Bot.check_once:1 of
871
msgid "A decorator that adds a \"call once\" global check to the bot."
872
msgstr "Botに「一度だけ実行される」グローバルチェックを追加するデコレーター"
874
#: disnake.ext.commands.Bot.check_once:3 of
877
"Unlike regular global checks, this one is called only once per "
878
":meth:`.Command.invoke` call."
879
msgstr "通常のグローバルチェックと違って、これは :meth:`Command.invoke` が呼ばれる毎に一度だけ実行されます。"
881
#: disnake.ext.commands.Bot.check_once:6 of
883
"Regular global checks are called whenever a command is called or "
884
":meth:`.Command.can_run` is called. This type of check bypasses that and "
885
"ensures that it's called only once, even inside the default help command."
887
"通常のグローバルチェックは、コマンドが呼び出されるか :meth:`.Command.can_run` "
888
"が呼び出されるたび、実行されます。しかしこのグローバルチェックはそれを迂回し、デフォルトのhelpコマンドの中であっても、たった一度だけ呼ばれます。"
890
#: disnake.ext.commands.Bot.check_once:13 of
892
"When using this function the :class:`.Context` sent to a group subcommand"
893
" may only parse the parent command and not the subcommands due to it "
894
"being invoked once per :meth:`.Bot.invoke` call."
897
#: disnake.ext.commands.Bot.clear:1 of
898
msgid "Clears the internal state of the bot."
899
msgstr "Botの内部状態をクリアします。"
901
#: disnake.ext.commands.Bot.clear:3 of
903
"After this, the bot can be considered \"re-opened\", i.e. "
904
":meth:`is_closed` and :meth:`is_ready` both return ``False`` along with "
905
"the bot's internal cache cleared."
907
"これが実行されると、Botは「再実行」されたと見なされます。また、これにより :meth:`is_closed` や "
908
":meth:`is_ready` は ``False`` を返し、内部のキャッシュもクリアされます。"
910
#: disnake.ext.commands.Bot.cogs:1 of
912
msgid "A read-only mapping of cog name to cog."
913
msgstr "Mapping[:class:`str`, :class:`Cog`] -- コグ名から、コグへの読み取り専用マッピング。"
915
#: disnake.ext.commands.Bot.cogs:3 of
916
msgid "Mapping[:class:`str`, :class:`Cog`]"
919
#: disnake.ext.commands.Bot.command:1 disnake.ext.commands.Group.command:1
920
#: disnake.ext.commands.GroupMixin.command:1 of
922
"A shortcut decorator that invokes :func:`.command` and adds it to the "
923
"internal command list via :meth:`~.GroupMixin.add_command`."
925
":func:`.command` を呼び出し、 :meth:`~.GroupMixin.add_command` "
926
"を介して内部コマンドリストに追加するショートカットデコレータ。"
928
#: disnake.ext.commands.Bot.command:4 disnake.ext.commands.Group.command:4
929
#: disnake.ext.commands.GroupMixin.command:4 of
931
"A decorator that converts the provided method into a Command, adds it to "
932
"the bot, then returns it."
935
#: disnake.ext.commands.Bot.command:5 disnake.ext.commands.Group.command:5
936
#: disnake.ext.commands.GroupMixin.command:5 of
937
msgid "Callable[..., :class:`Command`]"
940
#: disnake.ext.commands.Bot.commands:1 disnake.ext.commands.Group.commands:1
941
#: disnake.ext.commands.GroupMixin.commands:1 of
943
msgid "A unique set of commands without aliases that are registered."
944
msgstr "Set[:class:`.Command`] -- 登録済みの別名がない固有のコマンドセット。"
946
#: disnake.ext.commands.Bot.commands:3 disnake.ext.commands.Group.commands:3
947
#: disnake.ext.commands.GroupMixin.commands:3 of
949
msgid "Set[:class:`.Command`]"
950
msgstr ":class:`Command` またはサブクラス"
952
#: disnake.ext.commands.Bot.connect:3 of
954
"Creates a websocket connection and lets the websocket listen to messages "
955
"from Discord. This is a loop that runs the entire event system and "
956
"miscellaneous aspects of the library. Control is not resumed until the "
957
"WebSocket connection is terminated."
958
msgstr "WebSocket接続を作成し、Discordからのメッセージをリッスンできるようにします。これはイベントシステム全体とライブラリの様々な機能を実行するループです。WebSocket接続が終了するまで、プログラムは再開されません。"
960
#: disnake.ext.commands.Bot.connect:8 of
962
"If we should attempt reconnecting, either due to internet failure or a "
963
"specific failure on Discord's part. Certain disconnects that lead to bad "
964
"state will not be handled (such as invalid sharding payloads or bad "
967
"インターネットの障害やDiscord側の特定の障害が発生した際、再接続を試みるかどうかを表します。不正な状態へ移行する可能性がある特定の切断(無効なシャーディングpayloadや不正なトークンなど)"
970
#: disnake.ext.commands.Bot.connect:14 of
973
"If the gateway to connect to Discord is not found. Usually if this is"
974
" thrown then there is a Discord API outage."
976
":exc:`.GatewayNotFound` -- "
977
"Discordに接続するためのゲートウェイが見つからない。通常、これが発生した場合はDiscordAPIのエラーが考えられます。"
979
#: disnake.ext.commands.Bot.connect:15 of
981
msgid "The websocket connection has been terminated."
982
msgstr ":exc:`.ConnectionClosed` -- WebSocket接続は既に終了した。"
984
#: disnake.ext.commands.Bot.create_guild:3 of
985
msgid "Creates a :class:`.Guild`."
986
msgstr ":class:`.Guild` を作成します。"
988
#: disnake.ext.commands.Bot.create_guild:5 of
989
msgid "Bot accounts in more than 10 guilds are not allowed to create guilds."
990
msgstr "10以上のギルドに参加しているBotアカウントは、ギルドの作成ができません。"
992
#: disnake.ext.commands.Bot.create_guild:7 of
993
msgid "The name of the guild."
996
#: disnake.ext.commands.Bot.create_guild:9 of
998
"The region for the voice communication server. Defaults to "
999
":attr:`.VoiceRegion.us_west`."
1000
msgstr "音声通話に利用されるサーバーの地域。デフォルト値は :attr:`.VoiceRegion.us_west` 。"
1002
#: disnake.ext.commands.Bot.create_guild:12 of
1004
"The :term:`py:bytes-like object` representing the icon. See "
1005
":meth:`.ClientUser.edit` for more details on what is expected."
1008
#: disnake.ext.commands.Bot.create_guild:15 of
1009
msgid "The code for a template to create the guild with. .. versionadded:: 1.4"
1012
#: disnake.ext.commands.Bot.create_guild:15 of
1013
msgid "The code for a template to create the guild with."
1016
#: disnake.ext.commands.Bot.create_guild:20 of
1018
msgid "Guild creation failed."
1019
msgstr ":exc:`.HTTPException` -- ギルドの作成に失敗した。"
1021
#: disnake.ext.commands.Bot.create_guild:21 of
1022
msgid "Invalid icon image format given. Must be PNG or JPG."
1025
#: disnake.ext.commands.Bot.create_guild:23 of
1026
msgid "The guild created. This is not the same guild that is added to cache."
1029
#: disnake.ext.commands.Bot.create_guild:25
1030
#: disnake.ext.commands.Bot.fetch_guild:21 of
1031
msgid ":class:`.Guild`"
1032
msgstr ":class:`.Guild`"
1034
#: disnake.ext.commands.Bot.delete_invite:3 of
1035
msgid "Revokes an :class:`.Invite`, URL, or ID to an invite."
1036
msgstr ":class:`.Invite` や、招待のURL、IDを削除します。"
1038
#: disnake.ext.commands.Bot.delete_invite:5 of
1040
"You must have the :attr:`~.Permissions.manage_channels` permission in the"
1041
" associated guild to do this."
1042
msgstr "これを行うには、関連付けられたGuildにて、 :attr:`~.Permissions.manage_channels` 権限が必要です。"
1044
#: disnake.ext.commands.Bot.delete_invite:8 of
1045
msgid "The invite to revoke."
1048
#: disnake.ext.commands.Bot.delete_invite:11 of
1050
msgid "You do not have permissions to revoke invites."
1051
msgstr ":exc:`.Forbidden` -- 招待を取り消す権限が無い。"
1053
#: disnake.ext.commands.Bot.delete_invite:12 of
1055
msgid "The invite is invalid or expired."
1056
msgstr ":exc:`.NotFound` -- 招待が無効、あるいは期限切れになっている。"
1058
#: disnake.ext.commands.Bot.delete_invite:13 of
1060
msgid "Revoking the invite failed."
1061
msgstr ":exc:`.HTTPException` -- 招待の取り消しに失敗した。"
1063
#: disnake.ext.commands.Bot.emojis:1 of
1065
msgid "The emojis that the connected client has."
1066
msgstr "List[:class:`.Emoji`] -- 接続したクライアントがアクセスできる絵文字。"
1068
#: disnake.ext.commands.Bot.emojis:3 of
1070
msgid "List[:class:`.Emoji`]"
1071
msgstr ":class:`.Guild`"
1073
#: disnake.ext.commands.Bot.event:1 of
1074
msgid "A decorator that registers an event to listen to."
1075
msgstr "リッスンするイベントを登録するデコレータ。"
1077
#: disnake.ext.commands.Bot.event:3 of
1079
"You can find more info about the events on the :ref:`documentation below "
1080
"<disnake-api-events>`."
1081
msgstr "イベントの詳細については :ref:`以下のドキュメント <disnake-api-events>` を参照してください。"
1083
#: disnake.ext.commands.Bot.event:5 of
1085
"The events must be a :ref:`coroutine <coroutine>`, if not, "
1086
":exc:`TypeError` is raised."
1087
msgstr "イベントは :ref:`コルーチン <coroutine>` でなければいけません。違う場合は :exc:`TypeError` が発生します。"
1089
#: disnake.ext.commands.Bot.extensions:1 of
1090
msgid "A read-only mapping of extension name to extension."
1093
#: disnake.ext.commands.Bot.extensions:3 of
1094
msgid "Mapping[:class:`str`, :class:`py:types.ModuleType`]"
1097
#: disnake.ext.commands.Bot.fetch_channel:3 of
1099
"Retrieves a :class:`.abc.GuildChannel` or :class:`.abc.PrivateChannel` "
1100
"with the specified ID."
1103
#: disnake.ext.commands.Bot.fetch_channel:7 of
1105
"This method is an API call. For general usage, consider "
1106
":meth:`get_channel` instead."
1109
#: disnake.ext.commands.Bot.fetch_channel:11 of
1110
msgid "An unknown channel type was received from Discord."
1113
#: disnake.ext.commands.Bot.fetch_channel:12 of
1115
msgid "Retrieving the channel failed."
1116
msgstr ":exc:`.HTTPException` -- チャンネルの取得に失敗した。"
1118
#: disnake.ext.commands.Bot.fetch_channel:13 of
1119
msgid "Invalid Channel ID."
1122
#: disnake.ext.commands.Bot.fetch_channel:14 of
1124
msgid "You do not have permission to fetch this channel."
1125
msgstr ":exc:`.Forbidden` -- 指定のチャンネルを取得する権限がない。"
1127
#: disnake.ext.commands.Bot.fetch_channel:16 of
1128
msgid "The channel from the ID."
1129
msgstr "IDから取得したチャンネル。"
1131
#: disnake.ext.commands.Bot.fetch_channel:17 of
1132
msgid "Union[:class:`.abc.GuildChannel`, :class:`.abc.PrivateChannel`]"
1133
msgstr "Union[ :class:`.abc.GuildChannel` , :class:`.abc.PrivateChannel` ]"
1135
#: disnake.ext.commands.Bot.fetch_guild:3 of
1136
msgid "Retrieves a :class:`.Guild` from an ID."
1137
msgstr "IDから :class:`.Guild` を取得します。"
1139
#: disnake.ext.commands.Bot.fetch_guild:7 of
1142
"Using this, you will **not** receive :attr:`.Guild.channels`, "
1143
":attr:`.Guild.members`, :attr:`.Member.activity` and "
1144
":attr:`.Member.voice` per :class:`.Member`."
1146
"これを使用した場合、 :attr:`.Guild.channels` 、 :class:`.Guild.members` 、そして各 "
1147
":class:`.Member` ごとの :attr:`.Member.activity` 、 :attr:`.Member.voice` "
1148
"を取得することは **できません** 。"
1150
#: disnake.ext.commands.Bot.fetch_guild:12 of
1152
"This method is an API call. For general usage, consider :meth:`get_guild`"
1154
msgstr "このメソッドはAPIを呼び出します。通常は :meth:`get_guild` を代わりとして使用してください。"
1156
#: disnake.ext.commands.Bot.fetch_guild:14 of
1157
msgid "The guild's ID to fetch from."
1158
msgstr "取得したいギルドのID。"
1160
#: disnake.ext.commands.Bot.fetch_guild:17 of
1162
msgid "You do not have access to the guild."
1163
msgstr ":exc:`.Forbidden` -- ギルドにアクセスできない。"
1165
#: disnake.ext.commands.Bot.fetch_guild:18 of
1167
msgid "Getting the guild failed."
1168
msgstr ":exc:`.HTTPException` -- ギルドの取得に失敗した。"
1170
#: disnake.ext.commands.Bot.fetch_guild:20 of
1171
msgid "The guild from the ID."
1172
msgstr "IDから取得したギルド。"
1174
#: disnake.ext.commands.Bot.fetch_guilds:3 of
1175
msgid "Retrieves an :class:`.AsyncIterator` that enables receiving your guilds."
1176
msgstr "Botが所属するGuildを取得できる、 :class:`AsyncIterator` を取得します。"
1178
#: disnake.ext.commands.Bot.fetch_guilds:7 of
1180
"Using this, you will only receive :attr:`.Guild.owner`, "
1181
":attr:`.Guild.icon`, :attr:`.Guild.id`, and :attr:`.Guild.name` per "
1184
"これを使った場合、各 :class:`Guild` の :attr:`Guild.owner` 、 :attr:`Guild.icon` 、 "
1185
":attr:`Guild.id` 、 :attr:`Guild.name` のみ取得できます。"
1187
#: disnake.ext.commands.Bot.fetch_guilds:12 of
1189
"This method is an API call. For general usage, consider :attr:`guilds` "
1191
msgstr "これはAPIを呼び出します。通常は :attr:`guilds` を代わりに使用してください。"
1193
#: disnake.ext.commands.Bot.fetch_guilds:15
1194
#: disnake.ext.commands.Bot.wait_for:22 disnake.ext.commands.Context.history:6
1195
#: disnake.ext.commands.check:37 disnake.ext.commands.check_any:20 of
1199
#: disnake.ext.commands.Bot.fetch_guilds:16
1200
#: disnake.ext.commands.Context.history:7 of
1204
#: disnake.ext.commands.Bot.fetch_guilds:21 of
1205
msgid "Flattening into a list ::"
1206
msgstr "リストへフラット化 ::"
1208
#: disnake.ext.commands.Bot.fetch_guilds:26
1209
#: disnake.ext.commands.Context.history:19 of
1210
msgid "All parameters are optional."
1211
msgstr "すべてのパラメータがオプションです。"
1213
#: disnake.ext.commands.Bot.fetch_guilds:28 of
1216
"The number of guilds to retrieve. If ``None``, it retrieves every guild "
1217
"you have access to. Note, however, that this would make it a slow "
1218
"operation. Defaults to ``100``."
1220
"取得するギルドの数。 ``None`` "
1221
"の場合、あなたがアクセスできるギルドすべてを取得します。ただし、これには時間がかかります。デフォルトは100です。"
1223
#: disnake.ext.commands.Bot.fetch_guilds:33 of
1225
"Retrieves guilds before this date or object. If a date is provided it "
1226
"must be a timezone-naive datetime representing UTC time."
1228
"この日付またはオブジェクトの前のGuildを取得します。もし日付が与えられた場合は、それはUTC時刻を表し、timezone "
1229
"naiveであるdatetimeでないといけません。"
1231
#: disnake.ext.commands.Bot.fetch_guilds:36 of
1233
"Retrieve guilds after this date or object. If a date is provided it must "
1234
"be a timezone-naive datetime representing UTC time."
1236
"この日付またはオブジェクトの後のGuildを取得します。もし日付が与えられた場合は、それはUTC時刻を表し、timezone "
1237
"naiveであるdatetimeでないといけません。"
1239
#: disnake.ext.commands.Bot.fetch_guilds:40 of
1241
msgid "Getting the guilds failed."
1242
msgstr ":exc:`.HTTPException` -- ギルドの取得に失敗した。"
1244
#: disnake.ext.commands.Bot.fetch_guilds
1245
#: disnake.ext.commands.Bot.get_all_channels
1246
#: disnake.ext.commands.Bot.get_all_members
1247
#: disnake.ext.commands.Bot.walk_commands
1248
#: disnake.ext.commands.Cog.walk_commands disnake.ext.commands.Context.history
1249
#: disnake.ext.commands.Group.walk_commands
1250
#: disnake.ext.commands.GroupMixin.walk_commands of
1254
#: disnake.ext.commands.Bot.fetch_guilds:42 of
1255
msgid ":class:`.Guild` -- The guild with the guild data parsed."
1256
msgstr ":class:`.Guild` -- データを解析したGuild。"
1258
#: disnake.ext.commands.Bot.fetch_invite:3 of
1259
msgid "Gets an :class:`.Invite` from a discord.gg URL or ID."
1262
#: disnake.ext.commands.Bot.fetch_invite:7 of
1264
"If the invite is for a guild you have not joined, the guild and channel "
1265
"attributes of the returned :class:`.Invite` will be "
1266
":class:`.PartialInviteGuild` and :class:`.PartialInviteChannel` "
1270
#: disnake.ext.commands.Bot.fetch_invite:11 of
1271
msgid "The Discord invite ID or URL (must be a discord.gg URL)."
1274
#: disnake.ext.commands.Bot.fetch_invite:13 of
1276
"Whether to include count information in the invite. This fills the "
1277
":attr:`.Invite.approximate_member_count` and "
1278
":attr:`.Invite.approximate_presence_count` fields."
1281
#: disnake.ext.commands.Bot.fetch_invite:18 of
1282
msgid "The invite has expired or is invalid."
1285
#: disnake.ext.commands.Bot.fetch_invite:19 of
1287
msgid "Getting the invite failed."
1288
msgstr ":exc:`.HTTPException` -- 招待の取り消しに失敗した。"
1290
#: disnake.ext.commands.Bot.fetch_invite:21 of
1291
msgid "The invite from the URL/ID."
1294
#: disnake.ext.commands.Bot.fetch_invite:22 of
1295
msgid ":class:`.Invite`"
1298
#: disnake.ext.commands.Bot.fetch_template:3 of
1299
msgid "Gets a :class:`.Template` from a disnake.new URL or code."
1302
#: disnake.ext.commands.Bot.fetch_template:5 of
1303
msgid "The Discord Template Code or URL (must be a disnake.new URL)."
1306
#: disnake.ext.commands.Bot.fetch_template:8 of
1307
msgid "The template is invalid."
1310
#: disnake.ext.commands.Bot.fetch_template:9 of
1311
msgid "Getting the template failed."
1314
#: disnake.ext.commands.Bot.fetch_template:11 of
1316
msgid "The template from the URL/code."
1319
#: disnake.ext.commands.Bot.fetch_template:12 of
1321
msgid ":class:`.Template`"
1322
msgstr ":class:`.Guild`"
1324
#: disnake.ext.commands.Bot.fetch_user:3 of
1326
"Retrieves a :class:`~disnake.User` based on their ID. This can only be "
1327
"used by bot accounts. You do not have to share any guilds with the user "
1328
"to get this information, however many operations do require that you do."
1331
#: disnake.ext.commands.Bot.fetch_user:10 of
1333
"This method is an API call. For general usage, consider :meth:`get_user` "
1337
#: disnake.ext.commands.Bot.fetch_user:12 of
1338
msgid "The user's ID to fetch from."
1341
#: disnake.ext.commands.Bot.fetch_user:15 of
1342
msgid "A user with this ID does not exist."
1345
#: disnake.ext.commands.Bot.fetch_user:16 of
1346
msgid "Fetching the user failed."
1349
#: disnake.ext.commands.Bot.fetch_user:18 of
1350
msgid "The user you requested."
1353
#: disnake.ext.commands.Bot.fetch_user:19 of
1354
msgid ":class:`~disnake.User`"
1357
#: disnake.ext.commands.Bot.fetch_user_profile:3 of
1358
msgid "Gets an arbitrary user's profile."
1361
#: disnake.ext.commands.Bot.fetch_user_profile:7 of
1362
msgid "This can only be used by non-bot accounts."
1365
#: disnake.ext.commands.Bot.fetch_user_profile:9 of
1366
msgid "The ID of the user to fetch their profile for."
1369
#: disnake.ext.commands.Bot.fetch_user_profile:12 of
1370
msgid "Not allowed to fetch profiles."
1373
#: disnake.ext.commands.Bot.fetch_user_profile:13 of
1374
msgid "Fetching the profile failed."
1377
#: disnake.ext.commands.Bot.fetch_user_profile:15 of
1378
msgid "The profile of the user."
1381
#: disnake.ext.commands.Bot.fetch_user_profile:16 of
1382
msgid ":class:`.Profile`"
1385
#: disnake.ext.commands.Bot.fetch_webhook:3 of
1386
msgid "Retrieves a :class:`.Webhook` with the specified ID."
1389
#: disnake.ext.commands.Bot.fetch_webhook:5 of
1390
msgid "Retrieving the webhook failed."
1393
#: disnake.ext.commands.Bot.fetch_webhook:6 of
1394
msgid "Invalid webhook ID."
1397
#: disnake.ext.commands.Bot.fetch_webhook:7 of
1399
msgid "You do not have permission to fetch this webhook."
1400
msgstr ":exc:`.Forbidden` -- 指定のチャンネルを取得する権限がない。"
1402
#: disnake.ext.commands.Bot.fetch_webhook:9 of
1403
msgid "The webhook you requested."
1406
#: disnake.ext.commands.Bot.fetch_webhook:10 of
1407
msgid ":class:`.Webhook`"
1410
#: disnake.ext.commands.Bot.fetch_widget:3 of
1411
msgid "Gets a :class:`.Widget` from a guild ID."
1414
#: disnake.ext.commands.Bot.fetch_widget:7 of
1415
msgid "The guild must have the widget enabled to get this information."
1418
#: disnake.ext.commands.Bot.fetch_widget:9 of
1419
msgid "The ID of the guild."
1422
#: disnake.ext.commands.Bot.fetch_widget:12 of
1423
msgid "The widget for this guild is disabled."
1426
#: disnake.ext.commands.Bot.fetch_widget:13 of
1427
msgid "Retrieving the widget failed."
1430
#: disnake.ext.commands.Bot.fetch_widget:15 of
1431
msgid "The guild's widget."
1434
#: disnake.ext.commands.Bot.fetch_widget:16 of
1435
msgid ":class:`.Widget`"
1438
#: disnake.ext.commands.Bot.get_all_channels:1 of
1440
"A generator that retrieves every :class:`.abc.GuildChannel` the client "
1444
#: disnake.ext.commands.Bot.get_all_channels:3
1445
#: disnake.ext.commands.Bot.get_all_members:3 of
1446
msgid "This is equivalent to: ::"
1449
#: disnake.ext.commands.Bot.get_all_channels:11 of
1451
"Just because you receive a :class:`.abc.GuildChannel` does not mean that "
1452
"you can communicate in said channel. "
1453
":meth:`.abc.GuildChannel.permissions_for` should be used for that."
1456
#: disnake.ext.commands.Bot.get_all_channels:15 of
1457
msgid ":class:`.abc.GuildChannel` -- A channel the client can 'access'."
1460
#: disnake.ext.commands.Bot.get_all_members:1 of
1461
msgid "Returns a generator with every :class:`.Member` the client can see."
1464
#: disnake.ext.commands.Bot.get_all_members:9 of
1465
msgid ":class:`.Member` -- A member the client can see."
1468
#: disnake.ext.commands.Bot.get_channel:1 of
1469
msgid "Returns a channel or thread with the given ID."
1472
#: disnake.ext.commands.Bot.get_channel:3 disnake.ext.commands.Bot.get_emoji:3
1473
#: disnake.ext.commands.Bot.get_guild:3 disnake.ext.commands.Bot.get_user:3 of
1475
msgid "The ID to search for."
1476
msgstr "取得したいギルドのID。"
1478
#: disnake.ext.commands.Bot.get_channel:6 of
1479
msgid "The returned channel or ``None`` if not found."
1482
#: disnake.ext.commands.Bot.get_channel:7 of
1484
msgid "Optional[Union[:class:`.abc.GuildChannel`, :class:`.Thread`, :class:`.abc.PrivateChannel`]]"
1485
msgstr "Union[:class:`.abc.GuildChannel`, :class:`.Thread`, :class:`.abc.PrivateChannel`]"
1487
#: disnake.ext.commands.Bot.get_cog:1 of
1488
msgid "Gets the cog instance requested."
1491
#: disnake.ext.commands.Bot.get_cog:3 of
1492
msgid "If the cog is not found, ``None`` is returned instead."
1495
#: disnake.ext.commands.Bot.get_cog:5 of
1497
"The name of the cog you are requesting. This is equivalent to the name "
1498
"passed via keyword argument in class creation or the class name if "
1502
#: disnake.ext.commands.Bot.get_cog:10 of
1503
msgid "The cog that was requested. If not found, returns ``None``."
1506
#: disnake.ext.commands.Bot.get_cog:11 disnake.ext.commands.Command:62
1507
#: disnake.ext.commands.HelpCommand.cog:10 of
1508
msgid "Optional[:class:`Cog`]"
1511
#: disnake.ext.commands.Bot.get_command:1
1512
#: disnake.ext.commands.Group.get_command:1
1513
#: disnake.ext.commands.GroupMixin.get_command:1 of
1515
msgid "Get a :class:`.Command` from the internal list of commands."
1516
msgstr ":class:`.Command`やそのサブクラスを内部のコマンドリストに追加します。"
1518
#: disnake.ext.commands.Bot.get_command:4
1519
#: disnake.ext.commands.Group.get_command:4
1520
#: disnake.ext.commands.GroupMixin.get_command:4 of
1521
msgid "This could also be used as a way to get aliases."
1524
#: disnake.ext.commands.Bot.get_command:6
1525
#: disnake.ext.commands.Group.get_command:6
1526
#: disnake.ext.commands.GroupMixin.get_command:6 of
1528
"The name could be fully qualified (e.g. ``'foo bar'``) will get the "
1529
"subcommand ``bar`` of the group command ``foo``. If a subcommand is not "
1530
"found then ``None`` is returned just as usual."
1533
#: disnake.ext.commands.Bot.get_command:10
1534
#: disnake.ext.commands.Group.get_command:10
1535
#: disnake.ext.commands.GroupMixin.get_command:10 of
1536
msgid "The name of the command to get."
1539
#: disnake.ext.commands.Bot.get_command:13
1540
#: disnake.ext.commands.Group.get_command:13
1541
#: disnake.ext.commands.GroupMixin.get_command:13 of
1542
msgid "The command that was requested. If not found, returns ``None``."
1545
#: disnake.ext.commands.Bot.get_command:14 disnake.ext.commands.Command:56
1546
#: disnake.ext.commands.Command:103 disnake.ext.commands.Command.root_parent:7
1547
#: disnake.ext.commands.Group.get_command:14
1548
#: disnake.ext.commands.Group.root_parent:7
1549
#: disnake.ext.commands.GroupMixin.get_command:14 of
1550
msgid "Optional[:class:`Command`]"
1553
#: disnake.ext.commands.Bot.get_context:3 of
1554
msgid "Returns the invocation context from the message."
1557
#: disnake.ext.commands.Bot.get_context:5 of
1559
"This is a more low-level counter-part for :meth:`.process_commands` to "
1560
"allow users more fine grained control over the processing."
1563
#: disnake.ext.commands.Bot.get_context:8 of
1565
"The returned context is not guaranteed to be a valid invocation context, "
1566
":attr:`.Context.valid` must be checked to make sure it is. If the context"
1567
" is not valid then it is not a valid candidate to be invoked under "
1568
":meth:`~.Bot.invoke`."
1571
#: disnake.ext.commands.Bot.get_context:13 of
1572
msgid "The message to get the invocation context from."
1575
#: disnake.ext.commands.Bot.get_context:15 of
1577
"The factory class that will be used to create the context. By default, "
1578
"this is :class:`.Context`. Should a custom class be provided, it must be "
1579
"similar enough to :class:`.Context`\\'s interface."
1582
#: disnake.ext.commands.Bot.get_context:20 of
1584
"The invocation context. The type of this can change via the ``cls`` "
1588
#: disnake.ext.commands.Bot.get_context:22 of
1589
msgid ":class:`.Context`"
1592
#: disnake.ext.commands.Bot.get_emoji:1 of
1593
msgid "Returns an emoji with the given ID."
1596
#: disnake.ext.commands.Bot.get_emoji:6 of
1597
msgid "The custom emoji or ``None`` if not found."
1600
#: disnake.ext.commands.Bot.get_emoji:7 of
1601
msgid "Optional[:class:`.Emoji`]"
1604
#: disnake.ext.commands.Bot.get_guild:1 of
1605
msgid "Returns a guild with the given ID."
1608
#: disnake.ext.commands.Bot.get_guild:6 of
1609
msgid "The guild or ``None`` if not found."
1612
#: disnake.ext.commands.Bot.get_guild:7 disnake.ext.commands.Context.guild:3 of
1614
msgid "Optional[:class:`.Guild`]"
1615
msgstr ":class:`.Guild`"
1617
#: disnake.ext.commands.Bot.get_prefix:3 of
1619
"Retrieves the prefix the bot is listening to with the message as a "
1623
#: disnake.ext.commands.Bot.get_prefix:6 of
1624
msgid "The message context to get the prefix of."
1627
#: disnake.ext.commands.Bot.get_prefix:9 of
1628
msgid "A list of prefixes or a single prefix that the bot is listening for."
1631
#: disnake.ext.commands.Bot.get_prefix:11 of
1632
msgid "Union[List[:class:`str`], :class:`str`]"
1635
#: disnake.ext.commands.Bot.get_user:1 of
1636
msgid "Returns a user with the given ID."
1639
#: disnake.ext.commands.Bot.get_user:6 of
1640
msgid "The user or ``None`` if not found."
1643
#: disnake.ext.commands.Bot.get_user:7 of
1644
msgid "Optional[:class:`~disnake.User`]"
1647
#: disnake.ext.commands.Bot.group:1 disnake.ext.commands.Group.group:1
1648
#: disnake.ext.commands.GroupMixin.group:1 of
1650
"A shortcut decorator that invokes :func:`.group` and adds it to the "
1651
"internal command list via :meth:`~.GroupMixin.add_command`."
1654
#: disnake.ext.commands.Bot.group:4 disnake.ext.commands.Group.group:4
1655
#: disnake.ext.commands.GroupMixin.group:4 of
1657
"A decorator that converts the provided method into a Group, adds it to "
1658
"the bot, then returns it."
1661
#: disnake.ext.commands.Bot.group:5 disnake.ext.commands.Group.group:5
1662
#: disnake.ext.commands.GroupMixin.group:5 of
1663
msgid "Callable[..., :class:`Group`]"
1666
#: disnake.ext.commands.Bot.guilds:1 of
1667
msgid "The guilds that the connected client is a member of."
1670
#: disnake.ext.commands.Bot.guilds:3 of
1672
msgid "List[:class:`.Guild`]"
1673
msgstr ":class:`.Guild`"
1675
#: disnake.ext.commands.Bot.intents:1 of
1676
msgid "The intents configured for this connection."
1679
#: disnake.ext.commands.Bot.intents:5 of
1681
msgid ":class:`Intents`"
1682
msgstr ":class:`.Guild`"
1684
#: disnake.ext.commands.Bot.invoke:3 of
1686
"Invokes the command given under the invocation context and handles all "
1687
"the internal event dispatch mechanisms."
1690
#: disnake.ext.commands.Bot.invoke:6 of
1691
msgid "The invocation context to invoke."
1694
#: disnake.ext.commands.Bot.is_closed:1 of
1695
msgid ":class:`bool`: Indicates if the websocket connection is closed."
1698
#: disnake.ext.commands.Bot.is_owner:3 of
1700
"Checks if a :class:`~disnake.User` or :class:`~disnake.Member` is the "
1704
#: disnake.ext.commands.Bot.is_owner:6 of
1706
"If an :attr:`owner_id` is not set, it is fetched automatically through "
1707
"the use of :meth:`~.Bot.application_info`."
1710
#: disnake.ext.commands.Bot.is_owner:9 of
1712
"The function also checks if the application is team-owned if "
1713
":attr:`owner_ids` is not set."
1716
#: disnake.ext.commands.Bot.is_owner:13 of
1717
msgid "The user to check for."
1720
#: disnake.ext.commands.Bot.is_owner:16 of
1721
msgid "Whether the user is the owner."
1724
#: disnake.ext.commands.Bot.is_ready:1 of
1725
msgid ":class:`bool`: Specifies if the client's internal cache is ready for use."
1728
#: disnake.ext.commands.Bot.latency:1 of
1729
msgid "Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds."
1732
#: disnake.ext.commands.Bot.latency:3 of
1733
msgid "This could be referred to as the Discord WebSocket protocol latency."
1736
#: disnake.ext.commands.Bot.latency:5
1737
#: disnake.ext.commands.Command.get_cooldown_retry_after:10
1738
#: disnake.ext.commands.CommandOnCooldown:16
1739
#: disnake.ext.commands.Group.get_cooldown_retry_after:10 of
1741
msgid ":class:`float`"
1742
msgstr ":class:`.AppInfo`"
1744
#: disnake.ext.commands.Bot.listen:1 of
1746
"A decorator that registers another function as an external event "
1747
"listener. Basically this allows you to listen to multiple events from "
1748
"different places e.g. such as :func:`.on_ready`"
1751
#: disnake.ext.commands.Bot.listen:5 of
1752
msgid "The functions being listened to must be a :ref:`coroutine <coroutine>`."
1755
#: disnake.ext.commands.Bot.listen:21 of
1756
msgid "Would print one and two in an unspecified order."
1759
#: disnake.ext.commands.Bot.listen:23 of
1761
msgid "The function being listened to is not a coroutine."
1762
msgstr ":exc:`TypeError` -- 渡された関数がコルーチンでない。"
1764
#: disnake.ext.commands.Bot.load_extension:1 of
1765
msgid "Loads an extension."
1768
#: disnake.ext.commands.Bot.load_extension:3 of
1770
"An extension is a python module that contains commands, cogs, or "
1774
#: disnake.ext.commands.Bot.load_extension:6 of
1776
"An extension must have a global function, ``setup`` defined as the entry "
1777
"point on what to do when the extension is loaded. This entry point must "
1778
"have a single argument, the ``bot``."
1781
#: disnake.ext.commands.Bot.load_extension:10 of
1783
"The extension name to load. It must be dot separated like regular Python "
1784
"imports if accessing a sub-module. e.g. ``foo.test`` if you want to "
1785
"import ``foo/test.py``."
1788
#: disnake.ext.commands.Bot.load_extension:15
1789
#: disnake.ext.commands.Bot.reload_extension:14 of
1790
msgid "The extension could not be imported."
1793
#: disnake.ext.commands.Bot.load_extension:16 of
1794
msgid "The extension is already loaded."
1797
#: disnake.ext.commands.Bot.load_extension:17
1798
#: disnake.ext.commands.Bot.reload_extension:15 of
1799
msgid "The extension does not have a setup function."
1802
#: disnake.ext.commands.Bot.load_extension:18 of
1803
msgid "The extension or its setup function had an execution error."
1806
#: disnake.ext.commands.Bot.login:3 of
1807
msgid "Logs in the client with the specified credentials."
1810
#: disnake.ext.commands.Bot.login:5 of
1811
msgid "This function can be used in two different ways."
1814
#: disnake.ext.commands.Bot.login:9 of
1816
"Logging on with a user token is against the Discord `Terms of Service "
1817
"<https://support.discord.com/hc/en-us/articles/115002192352>`_ and doing "
1818
"so might potentially get your account banned. Use this at your own risk."
1821
#: disnake.ext.commands.Bot.login:14 of
1823
"The authentication token. Do not prefix this token with anything as the "
1824
"library will do it for you."
1827
#: disnake.ext.commands.Bot.login:17 of
1829
"Keyword argument that specifies if the account logging on is a bot token "
1833
#: disnake.ext.commands.Bot.login:21 of
1834
msgid "The wrong credentials are passed."
1837
#: disnake.ext.commands.Bot.login:22 of
1839
"An unknown HTTP related error occurred, usually when it isn't 200 or "
1840
"the known incorrect credentials passing status code."
1843
#: disnake.ext.commands.Bot.logout:3 of
1844
msgid "Logs out of Discord and closes all connections."
1847
#: disnake.ext.commands.Bot.logout:7 of
1849
"This is just an alias to :meth:`close`. If you want to do extraneous "
1850
"cleanup when subclassing, it is suggested to override :meth:`close` "
1854
#: disnake.ext.commands.Bot.on_command_error:3 of
1855
msgid "The default command error handler provided by the bot."
1858
#: disnake.ext.commands.Bot.on_command_error:5 of
1860
"By default this prints to :data:`sys.stderr` however it could be "
1861
"overridden to have a different implementation."
1864
#: disnake.ext.commands.Bot.on_command_error:8 of
1865
msgid "This only fires if you do not specify any listeners for command error."
1868
#: disnake.ext.commands.Bot.on_error:3 of
1869
msgid "The default error handler provided by the client."
1872
#: disnake.ext.commands.Bot.on_error:5 of
1874
"By default this prints to :data:`sys.stderr` however it could be "
1875
"overridden to have a different implementation. Check "
1876
":func:`~disnake.on_error` for more details."
1879
#: disnake.ext.commands.Bot.private_channels:1 of
1880
msgid "The private channels that the connected client is participating on."
1883
#: disnake.ext.commands.Bot.private_channels:5 of
1885
"This returns only up to 128 most recent private channels due to an "
1886
"internal working on how Discord deals with private channels."
1889
#: disnake.ext.commands.Bot.private_channels:8 of
1890
msgid "List[:class:`.abc.PrivateChannel`]"
1893
#: disnake.ext.commands.Bot.process_commands:3 of
1895
"This function processes the commands that have been registered to the bot"
1896
" and other groups. Without this coroutine, none of the commands will be "
1900
#: disnake.ext.commands.Bot.process_commands:7 of
1902
"By default, this coroutine is called inside the :func:`.on_message` "
1903
"event. If you choose to override the :func:`.on_message` event, then you "
1904
"should invoke this coroutine as well."
1907
#: disnake.ext.commands.Bot.process_commands:11 of
1909
"This is built using other low level tools, and is equivalent to a call to"
1910
" :meth:`~.Bot.get_context` followed by a call to :meth:`~.Bot.invoke`."
1913
#: disnake.ext.commands.Bot.process_commands:14 of
1915
"This also checks if the message's author is a bot and doesn't call "
1916
":meth:`~.Bot.get_context` or :meth:`~.Bot.invoke` if so."
1919
#: disnake.ext.commands.Bot.process_commands:17 of
1920
msgid "The message to process commands for."
1923
#: disnake.ext.commands.Bot.reload_extension:1 of
1924
msgid "Atomically reloads an extension."
1927
#: disnake.ext.commands.Bot.reload_extension:3 of
1929
"This replaces the extension with the same extension, only refreshed. This"
1930
" is equivalent to a :meth:`unload_extension` followed by a "
1931
":meth:`load_extension` except done in an atomic way. That is, if an "
1932
"operation fails mid-reload then the bot will roll-back to the prior "
1936
#: disnake.ext.commands.Bot.reload_extension:8 of
1938
"The extension name to reload. It must be dot separated like regular "
1939
"Python imports if accessing a sub-module. e.g. ``foo.test`` if you want "
1940
"to import ``foo/test.py``."
1943
#: disnake.ext.commands.Bot.reload_extension:13
1944
#: disnake.ext.commands.Bot.unload_extension:16 of
1945
msgid "The extension was not loaded."
1948
#: disnake.ext.commands.Bot.reload_extension:16 of
1949
msgid "The extension setup function had an execution error."
1952
#: disnake.ext.commands.Bot.remove_check:1 of
1953
msgid "Removes a global check from the bot."
1956
#: disnake.ext.commands.Bot.remove_check:3 of
1958
"This function is idempotent and will not raise an exception if the "
1959
"function is not in the global checks."
1962
#: disnake.ext.commands.Bot.remove_check:6 of
1963
msgid "The function to remove from the global checks."
1966
#: disnake.ext.commands.Bot.remove_check:7 of
1968
"If the function was added with ``call_once=True`` in the "
1969
":meth:`.Bot.add_check` call or using :meth:`.check_once`."
1972
#: disnake.ext.commands.Bot.remove_cog:1 of
1973
msgid "Removes a cog from the bot."
1976
#: disnake.ext.commands.Bot.remove_cog:3 of
1978
"All registered commands and event listeners that the cog has registered "
1979
"will be removed as well."
1982
#: disnake.ext.commands.Bot.remove_cog:6 of
1983
msgid "If no cog is found then this method has no effect."
1986
#: disnake.ext.commands.Bot.remove_cog:8 of
1987
msgid "The name of the cog to remove."
1990
#: disnake.ext.commands.Bot.remove_command:1
1991
#: disnake.ext.commands.Group.remove_command:1
1992
#: disnake.ext.commands.GroupMixin.remove_command:1 of
1994
msgid "Remove a :class:`.Command` from the internal list of commands."
1995
msgstr ":class:`.Command`やそのサブクラスを内部のコマンドリストに追加します。"
1997
#: disnake.ext.commands.Bot.remove_command:4
1998
#: disnake.ext.commands.Group.remove_command:4
1999
#: disnake.ext.commands.GroupMixin.remove_command:4 of
2000
msgid "This could also be used as a way to remove aliases."
2003
#: disnake.ext.commands.Bot.remove_command:6
2004
#: disnake.ext.commands.Group.remove_command:6
2005
#: disnake.ext.commands.GroupMixin.remove_command:6 of
2006
msgid "The name of the command to remove."
2009
#: disnake.ext.commands.Bot.remove_command:9
2010
#: disnake.ext.commands.Group.remove_command:9
2011
#: disnake.ext.commands.GroupMixin.remove_command:9 of
2013
"The command that was removed. If the name is not valid then ``None`` is "
2017
#: disnake.ext.commands.Bot.remove_command:11
2018
#: disnake.ext.commands.Group.remove_command:11
2019
#: disnake.ext.commands.GroupMixin.remove_command:11 of
2020
msgid "Optional[:class:`.Command`]"
2023
#: disnake.ext.commands.Bot.remove_listener:1 of
2024
msgid "Removes a listener from the pool of listeners."
2027
#: disnake.ext.commands.Bot.remove_listener:3 of
2028
msgid "The function that was used as a listener to remove."
2031
#: disnake.ext.commands.Bot.remove_listener:4 of
2032
msgid "The name of the event we want to remove. Defaults to ``func.__name__``."
2033
msgstr "削除したいイベントの名前。デフォルトでは ``func.__name__`` です。"
2035
#: disnake.ext.commands.Bot.request_offline_members:3 of
2037
"Requests previously offline members from the guild to be filled up into "
2038
"the :attr:`.Guild.members` cache. This function is usually not called. It"
2039
" should only be used if you have the ``fetch_offline_members`` parameter "
2043
#: disnake.ext.commands.Bot.request_offline_members:8 of
2045
"When the client logs on and connects to the websocket, Discord does not "
2046
"provide the library with offline members if the number of members in the "
2047
"guild is larger than 250. You can check if a guild is large if "
2048
":attr:`.Guild.large` is ``True``."
2051
#: disnake.ext.commands.Bot.request_offline_members:15 of
2053
msgid "This method is deprecated. Use :meth:`Guild.chunk` instead."
2054
msgstr "このメソッドはAPIを呼び出します。通常は :meth:`get_guild` を代わりとして使用してください。"
2056
#: disnake.ext.commands.Bot.request_offline_members:17 of
2057
msgid "An argument list of guilds to request offline members for."
2060
#: disnake.ext.commands.Bot.request_offline_members:20 of
2061
msgid "If any guild is unavailable in the collection."
2064
#: disnake.ext.commands.Bot.run:1 of
2066
"A blocking call that abstracts away the event loop initialisation from "
2070
#: disnake.ext.commands.Bot.run:4 of
2072
"If you want more control over the event loop then this function should "
2073
"not be used. Use :meth:`start` coroutine or :meth:`connect` + "
2077
#: disnake.ext.commands.Bot.run:8 of
2078
msgid "Roughly Equivalent to: ::"
2081
#: disnake.ext.commands.Bot.run:20 of
2083
"This function must be the last function to call due to the fact that it "
2084
"is blocking. That means that registration of events or anything being "
2085
"called after this function call will not execute until it returns."
2088
#: disnake.ext.commands.Bot.start:3 of
2089
msgid "A shorthand coroutine for :meth:`login` + :meth:`connect`."
2092
#: disnake.ext.commands.Bot.start:5 of
2093
msgid "An unexpected keyword argument was received."
2096
#: disnake.ext.commands.Bot.unload_extension:1 of
2097
msgid "Unloads an extension."
2100
#: disnake.ext.commands.Bot.unload_extension:3 of
2102
"When the extension is unloaded, all commands, listeners, and cogs are "
2103
"removed from the bot and the module is un-imported."
2106
#: disnake.ext.commands.Bot.unload_extension:6 of
2108
"The extension can provide an optional global function, ``teardown``, to "
2109
"do miscellaneous clean-up if necessary. This function takes a single "
2110
"parameter, the ``bot``, similar to ``setup`` from "
2111
":meth:`~.Bot.load_extension`."
2114
#: disnake.ext.commands.Bot.unload_extension:11 of
2116
"The extension name to unload. It must be dot separated like regular "
2117
"Python imports if accessing a sub-module. e.g. ``foo.test`` if you want "
2118
"to import ``foo/test.py``."
2121
#: disnake.ext.commands.Bot.user:1 of
2122
msgid "Represents the connected client. ``None`` if not logged in."
2125
#: disnake.ext.commands.Bot.user:3 of
2126
msgid "Optional[:class:`.ClientUser`]"
2129
#: disnake.ext.commands.Bot.users:1 of
2130
msgid "Returns a list of all the users the bot can see."
2133
#: disnake.ext.commands.Bot.users:3 of
2134
msgid "List[:class:`~disnake.User`]"
2137
#: disnake.ext.commands.Bot.voice_clients:1 of
2138
msgid "Represents a list of voice connections."
2141
#: disnake.ext.commands.Bot.voice_clients:3 of
2142
msgid "These are usually :class:`.VoiceClient` instances."
2145
#: disnake.ext.commands.Bot.voice_clients:5 of
2146
msgid "List[:class:`.VoiceProtocol`]"
2149
#: disnake.ext.commands.Bot.wait_for:3 of
2150
msgid "Waits for a WebSocket event to be dispatched."
2153
#: disnake.ext.commands.Bot.wait_for:5 of
2155
"This could be used to wait for a user to reply to a message, or to react "
2156
"to a message, or to edit a message in a self-contained way."
2159
#: disnake.ext.commands.Bot.wait_for:9 of
2161
"The ``timeout`` parameter is passed onto :func:`asyncio.wait_for`. By "
2162
"default, it does not timeout. Note that this does propagate the "
2163
":exc:`asyncio.TimeoutError` for you in case of timeout and is provided "
2167
#: disnake.ext.commands.Bot.wait_for:14 of
2169
"In case the event returns multiple arguments, a :class:`tuple` containing"
2170
" those arguments is returned instead. Please check the "
2171
":ref:`documentation <disnake-api-events>` for a list of events and their "
2175
#: disnake.ext.commands.Bot.wait_for:19 of
2176
msgid "This function returns the **first event that meets the requirements**."
2179
#: disnake.ext.commands.Bot.wait_for:23 of
2180
msgid "Waiting for a user reply: ::"
2183
#: disnake.ext.commands.Bot.wait_for:37 of
2184
msgid "Waiting for a thumbs up reaction from the message author: ::"
2187
#: disnake.ext.commands.Bot.wait_for:55 of
2189
"The event name, similar to the :ref:`event reference <disnake-api-"
2190
"events>`, but without the ``on_`` prefix, to wait for."
2193
#: disnake.ext.commands.Bot.wait_for:58 of
2195
"A predicate to check what to wait for. The arguments must meet the "
2196
"parameters of the event being waited for."
2199
#: disnake.ext.commands.Bot.wait_for:61 of
2201
"The number of seconds to wait before timing out and raising "
2202
":exc:`asyncio.TimeoutError`."
2205
#: disnake.ext.commands.Bot.wait_for:65 of
2206
msgid "If a timeout is provided and it was reached."
2209
#: disnake.ext.commands.Bot.wait_for:67 of
2211
"Returns no arguments, a single argument, or a :class:`tuple` of multiple "
2212
"arguments that mirrors the parameters passed in the :ref:`event reference"
2213
" <disnake-api-events>`."
2216
#: disnake.ext.commands.Bot.wait_until_ready:3 of
2217
msgid "Waits until the client's internal cache is all ready."
2220
#: disnake.ext.commands.Bot.walk_commands:1
2221
#: disnake.ext.commands.Group.walk_commands:1
2222
#: disnake.ext.commands.GroupMixin.walk_commands:1 of
2223
msgid "An iterator that recursively walks through all commands and subcommands."
2226
#: disnake.ext.commands.Bot.walk_commands:3
2227
#: disnake.ext.commands.Group.walk_commands:3
2228
#: disnake.ext.commands.GroupMixin.walk_commands:3 of
2229
msgid "Duplicates due to aliases are no longer returned"
2232
#: disnake.ext.commands.Bot.walk_commands:6
2233
#: disnake.ext.commands.Group.walk_commands:6
2234
#: disnake.ext.commands.GroupMixin.walk_commands:6 of
2237
"Union[:class:`.Command`, :class:`.Group`] -- A command or group from the "
2238
"internal list of commands."
2239
msgstr ":class:`.Command`やそのサブクラスを内部のコマンドリストに追加します。"
2241
#: disnake.ext.commands.AutoShardedBot:1 of
2243
"This is similar to :class:`.Bot` except that it is inherited from "
2244
":class:`disnake.AutoShardedClient` instead."
2247
#: disnake.ext.commands.when_mentioned:1 of
2248
msgid "A callable that implements a command prefix equivalent to being mentioned."
2251
#: disnake.ext.commands.when_mentioned:3
2252
#: disnake.ext.commands.when_mentioned_or:3 of
2254
"These are meant to be passed into the :attr:`.Bot.command_prefix` "
2258
#: disnake.ext.commands.when_mentioned_or:1 of
2259
msgid "A callable that implements when mentioned or other prefixes provided."
2262
#: disnake.ext.commands.when_mentioned_or:13 of
2264
"This callable returns another callable, so if this is done inside a "
2265
"custom callable, you must call the returned callable, for example:"
2268
#: disnake.ext.commands.when_mentioned_or:23 of
2269
msgid ":func:`.when_mentioned`"
2272
#: ../../ext/commands/api.rst:27
2273
msgid "Event Reference"
2276
#: ../../ext/commands/api.rst:29
2278
"These events function similar to :ref:`the regular events <disnake-api-"
2279
"events>`, except they are custom to the command extension module."
2282
#: ../../ext/commands/api.rst:34
2284
"An error handler that is called when an error is raised inside a command "
2285
"either through user input error, check failure, or an error in your own "
2289
#: ../../ext/commands/api.rst:38
2290
msgid "A default one is provided (:meth:`.Bot.on_command_error`)."
2293
#: ../../ext/commands/api.rst:40 ../../ext/commands/api.rst:52
2294
#: ../../ext/commands/api.rst:62 disnake.ext.commands.Cog.cog_after_invoke:7
2295
#: disnake.ext.commands.Cog.cog_before_invoke:7
2296
#: disnake.ext.commands.HelpCommand.on_help_command_error:11
2297
#: disnake.ext.commands.HelpCommand.prepare_help_command:15 of
2298
msgid "The invocation context."
2301
#: ../../ext/commands/api.rst:42
2302
#: disnake.ext.commands.HelpCommand.on_help_command_error:13 of
2303
msgid "The error that was raised."
2306
#: ../../ext/commands/api.rst:47
2308
"An event that is called when a command is found and is about to be "
2312
#: ../../ext/commands/api.rst:49
2314
"This event is called regardless of whether the command itself succeeds "
2315
"via error or completes."
2318
#: ../../ext/commands/api.rst:57
2319
msgid "An event that is called when a command has completed its invocation."
2322
#: ../../ext/commands/api.rst:59
2324
"This event is called only if the command succeeded, i.e. all checks have "
2325
"passed and the user input it correctly."
2328
#: ../../ext/commands/api.rst:68
2332
#: disnake.ext.commands.command:1 of
2334
"A decorator that transforms a function into a :class:`.Command` or if "
2335
"called with :func:`.group`, :class:`.Group`."
2338
#: disnake.ext.commands.command:4 of
2340
"By default the ``help`` attribute is received automatically from the "
2341
"docstring of the function and is cleaned up with the use of "
2342
"``inspect.cleandoc``. If the docstring is ``bytes``, then it is decoded "
2343
"into :class:`str` using utf-8 encoding."
2346
#: disnake.ext.commands.command:9 of
2348
"All checks added using the :func:`.check` & co. decorators are added into"
2349
" the function. There is no way to supply your own checks through this "
2353
#: disnake.ext.commands.command:13 of
2355
"The name to create the command with. By default this uses the function "
2359
#: disnake.ext.commands.command:16 of
2361
"The class to construct with. By default this is :class:`.Command`. You "
2362
"usually do not change this."
2365
#: disnake.ext.commands.command:18 of
2367
"Keyword arguments to pass into the construction of the class denoted by "
2371
#: disnake.ext.commands.command:21 of
2372
msgid "If the function is not a coroutine or is already a command."
2375
#: disnake.ext.commands.group:1 of
2376
msgid "A decorator that transforms a function into a :class:`.Group`."
2379
#: disnake.ext.commands.group:3 of
2381
"This is similar to the :func:`.command` decorator but the ``cls`` "
2382
"parameter is set to :class:`Group` by default."
2385
#: disnake.ext.commands.group:6 of
2386
msgid "The ``cls`` parameter can now be passed."
2389
#: disnake.ext.commands.Command:1 of
2390
msgid "A class that implements the protocol for a bot text command."
2393
#: disnake.ext.commands.Command:3 of
2395
"These are not created manually, instead they are created via the "
2396
"decorator or functional interface."
2399
#: disnake.ext.commands.Command:8 of
2401
msgid "The name of the command."
2404
#: disnake.ext.commands.Command:14 of
2406
msgid "The coroutine that is executed when the command is called."
2407
msgstr "呼び出そうとしたコマンドが無効化されていた際に発生する例外。"
2409
#: disnake.ext.commands.Command:16 of
2410
msgid ":ref:`coroutine <coroutine>`"
2413
#: disnake.ext.commands.Command:20 of
2414
msgid "The long help text for the command."
2417
#: disnake.ext.commands.Command:26 of
2418
msgid "The short help text for the command."
2421
#: disnake.ext.commands.Command:28 disnake.ext.commands.Command.cog_name:3
2422
#: disnake.ext.commands.Context:70 disnake.ext.commands.Group.cog_name:3 of
2423
msgid "Optional[:class:`str`]"
2426
#: disnake.ext.commands.Command:32 of
2427
msgid "A replacement for arguments in the default help text."
2430
#: disnake.ext.commands.Command:38 of
2431
msgid "The list of aliases the command can be invoked under."
2434
#: disnake.ext.commands.Command:40 of
2435
msgid "Union[List[:class:`str`], Tuple[:class:`str`]]"
2438
#: disnake.ext.commands.Command:44 of
2440
"A boolean that indicates if the command is currently enabled. If the "
2441
"command is invoked while it is disabled, then :exc:`.DisabledCommand` is "
2442
"raised to the :func:`.on_command_error` event. Defaults to ``True``."
2445
#: disnake.ext.commands.Command:53 of
2447
"The parent command that this command belongs to. ``None`` if there isn't "
2451
#: disnake.ext.commands.Command:60 of
2452
msgid "The cog that this command belongs to. ``None`` if there isn't one."
2455
#: disnake.ext.commands.Command:66 of
2457
"A list of predicates that verifies if the command could be executed with "
2458
"the given :class:`.Context` as the sole parameter. If an exception is "
2459
"necessary to be thrown to signal failure, then one inherited from "
2460
":exc:`.CommandError` should be used. Note that if the checks fail then "
2461
":exc:`.CheckFailure` exception is raised to the :func:`.on_command_error`"
2465
#: disnake.ext.commands.Command:73 of
2466
msgid "List[Callable[..., :class:`bool`]]"
2469
#: disnake.ext.commands.Command:77 of
2471
msgid "The message prefixed into the default help command."
2472
msgstr ":class:`str` -- この属性に入力されたテキストは、デフォルトのヘルプメッセージの先頭に表示されます。"
2474
#: disnake.ext.commands.Command:83 of
2476
"If ``True``\\, the default help command does not show this in the help "
2480
#: disnake.ext.commands.Command:90 of
2482
"If ``False`` and a keyword-only argument is provided then the keyword "
2483
"only argument is stripped and handled as if it was a regular argument "
2484
"that handles :exc:`.MissingRequiredArgument` and default values in a "
2485
"regular matter rather than passing the rest completely raw. If ``True`` "
2486
"then the keyword-only argument will pass in the rest of the arguments in "
2487
"a completely raw matter. Defaults to ``False``."
2490
#: disnake.ext.commands.Command:101 of
2491
msgid "The subcommand that was invoked, if any."
2494
#: disnake.ext.commands.Command:107 of
2496
"If ``True`` and a variadic positional argument is specified, requires the"
2497
" user to specify at least one argument. Defaults to ``False``."
2500
#: disnake.ext.commands.Command:116 of
2502
"If ``True``\\, ignores extraneous strings passed to a command if all its "
2503
"requirements are met (e.g. ``?foo a b c`` when only expecting ``a`` and "
2504
"``b``). Otherwise :func:`.on_command_error` and local error handlers are "
2505
"called with :exc:`.TooManyArguments`. Defaults to ``True``."
2508
#: disnake.ext.commands.Command:125 of
2510
"If ``True``\\, cooldown processing is done after argument parsing, which "
2511
"calls converters. If ``False`` then cooldown processing is done first and"
2512
" then the converters are called second. Defaults to ``False``."
2515
#: disnake.ext.commands.Command.add_check:1
2516
#: disnake.ext.commands.Group.add_check:1 of
2518
msgid "Adds a check to the command."
2519
msgstr "ボットにグローバルチェックを追加します。"
2521
#: disnake.ext.commands.Command.add_check:3
2522
#: disnake.ext.commands.Group.add_check:3 of
2524
msgid "This is the non-decorator interface to :func:`.check`."
2525
msgstr "これは:meth:`.check`と:meth:`.check_once`のデコレータでない実装です。"
2527
#: disnake.ext.commands.Command.add_check:7
2528
#: disnake.ext.commands.Group.add_check:7
2529
#: disnake.ext.commands.HelpCommand.add_check:5 of
2531
msgid "The function that will be used as a check."
2532
msgstr "グローバルチェックとして使用される関数。"
2534
#: disnake.ext.commands.Command.remove_check:1
2535
#: disnake.ext.commands.Group.remove_check:1 of
2536
msgid "Removes a check from the command."
2539
#: disnake.ext.commands.Command.remove_check:3
2540
#: disnake.ext.commands.Group.remove_check:3
2541
#: disnake.ext.commands.HelpCommand.remove_check:3 of
2543
"This function is idempotent and will not raise an exception if the "
2544
"function is not in the command's checks."
2547
#: disnake.ext.commands.Command.remove_check:8
2548
#: disnake.ext.commands.Group.remove_check:8
2549
#: disnake.ext.commands.HelpCommand.remove_check:8 of
2550
msgid "The function to remove from the checks."
2553
#: disnake.ext.commands.Command.update:1 disnake.ext.commands.Group.update:1 of
2554
msgid "Updates :class:`Command` instance with updated attributes."
2557
#: disnake.ext.commands.Command.update:3 disnake.ext.commands.Group.update:3 of
2559
"This works similarly to the :func:`.command` decorator in terms of "
2560
"parameters in that they are passed to the :class:`Command` or subclass "
2561
"constructors, sans the name and callback."
2564
#: disnake.ext.commands.Command.__call__:3 of
2565
msgid "Calls the internal callback that the command holds."
2568
#: disnake.ext.commands.Command.__call__:7 of
2570
"This bypasses all mechanisms -- including checks, converters, invoke "
2571
"hooks, cooldowns, etc. You must take care to pass the proper arguments "
2572
"and types to this function."
2575
#: disnake.ext.commands.Command.copy:1 of
2576
msgid "Creates a copy of this command."
2579
#: disnake.ext.commands.Command.copy:3 of
2580
msgid "A new instance of this command."
2583
#: disnake.ext.commands.Command.copy:4 disnake.ext.commands.Context:47
2584
#: disnake.ext.commands.Context:61 of
2586
msgid ":class:`Command`"
2587
msgstr ":class:`Command` またはサブクラス"
2589
#: disnake.ext.commands.Command.clean_params:1
2590
#: disnake.ext.commands.Group.clean_params:1 of
2592
"OrderedDict[:class:`str`, :class:`inspect.Parameter`]: Retrieves the "
2593
"parameter OrderedDict without the context or self parameters."
2596
#: disnake.ext.commands.Command.clean_params:4
2597
#: disnake.ext.commands.Group.clean_params:4 of
2598
msgid "Useful for inspecting signature."
2601
#: disnake.ext.commands.Command.full_parent_name:1
2602
#: disnake.ext.commands.Group.full_parent_name:1 of
2603
msgid "Retrieves the fully qualified parent command name."
2606
#: disnake.ext.commands.Command.full_parent_name:3
2607
#: disnake.ext.commands.Group.full_parent_name:3 of
2609
"This the base command name required to execute it. For example, in ``?one"
2610
" two three`` the parent name would be ``one two``."
2613
#: disnake.ext.commands.Command.parents:1 disnake.ext.commands.Group.parents:1
2615
msgid "Retrieves the parents of this command."
2618
#: disnake.ext.commands.Command.parents:3 disnake.ext.commands.Group.parents:3
2620
msgid "If the command has no parents then it returns an empty :class:`list`."
2623
#: disnake.ext.commands.Command.parents:5 disnake.ext.commands.Group.parents:5
2625
msgid "For example in commands ``?a b c test``, the parents are ``[c, b, a]``."
2628
#: disnake.ext.commands.Command.parents:9 disnake.ext.commands.Group.parents:9
2629
#: disnake.ext.commands.HelpCommand.filter_commands:18 of
2630
msgid "List[:class:`Command`]"
2633
#: disnake.ext.commands.Command.root_parent:1
2634
#: disnake.ext.commands.Group.root_parent:1 of
2635
msgid "Retrieves the root parent of this command."
2638
#: disnake.ext.commands.Command.root_parent:3
2639
#: disnake.ext.commands.Group.root_parent:3 of
2640
msgid "If the command has no parents then it returns ``None``."
2643
#: disnake.ext.commands.Command.root_parent:5
2644
#: disnake.ext.commands.Group.root_parent:5 of
2645
msgid "For example in commands ``?a b c test``, the root parent is ``a``."
2648
#: disnake.ext.commands.Command.qualified_name:1
2649
#: disnake.ext.commands.Group.qualified_name:1 of
2650
msgid "Retrieves the fully qualified command name."
2653
#: disnake.ext.commands.Command.qualified_name:3
2654
#: disnake.ext.commands.Group.qualified_name:3 of
2656
"This is the full parent name with the command name as well. For example, "
2657
"in ``?one two three`` the qualified name would be ``one two three``."
2660
#: disnake.ext.commands.Command.is_on_cooldown:1
2661
#: disnake.ext.commands.Group.is_on_cooldown:1 of
2662
msgid "Checks whether the command is currently on cooldown."
2665
#: disnake.ext.commands.Command.is_on_cooldown:3
2666
#: disnake.ext.commands.Group.is_on_cooldown:3 of
2667
msgid "The invocation context to use when checking the commands cooldown status."
2670
#: disnake.ext.commands.Command.is_on_cooldown:6
2671
#: disnake.ext.commands.Group.is_on_cooldown:6 of
2672
msgid "A boolean indicating if the command is on cooldown."
2675
#: disnake.ext.commands.Command.reset_cooldown:1
2676
#: disnake.ext.commands.Group.reset_cooldown:1 of
2677
msgid "Resets the cooldown on this command."
2680
#: disnake.ext.commands.Command.reset_cooldown:3
2681
#: disnake.ext.commands.Group.reset_cooldown:3 of
2682
msgid "The invocation context to reset the cooldown under."
2685
#: disnake.ext.commands.Command.get_cooldown_retry_after:1
2686
#: disnake.ext.commands.Group.get_cooldown_retry_after:1 of
2687
msgid "Retrieves the amount of seconds before this command can be tried again."
2690
#: disnake.ext.commands.Command.get_cooldown_retry_after:5
2691
#: disnake.ext.commands.Group.get_cooldown_retry_after:5 of
2692
msgid "The invocation context to retrieve the cooldown from."
2695
#: disnake.ext.commands.Command.get_cooldown_retry_after:8
2696
#: disnake.ext.commands.Group.get_cooldown_retry_after:8 of
2698
"The amount of time left on this command's cooldown in seconds. If this is"
2699
" ``0.0`` then the command isn't on cooldown."
2702
#: disnake.ext.commands.Command.error:1 disnake.ext.commands.Group.error:1 of
2703
msgid "A decorator that registers a coroutine as a local error handler."
2706
#: disnake.ext.commands.Command.error:3 disnake.ext.commands.Group.error:3 of
2708
"A local error handler is an :func:`.on_command_error` event limited to a "
2709
"single command. However, the :func:`.on_command_error` is still invoked "
2710
"afterwards as the catch-all."
2713
#: disnake.ext.commands.Command.error:7 disnake.ext.commands.Group.error:7 of
2714
msgid "The coroutine to register as the local error handler."
2717
#: disnake.ext.commands.Command.before_invoke:9
2718
#: disnake.ext.commands.Group.before_invoke:9 of
2719
msgid "See :meth:`.Bot.before_invoke` for more info."
2722
#: disnake.ext.commands.Command.after_invoke:9
2723
#: disnake.ext.commands.Group.after_invoke:9 of
2724
msgid "See :meth:`.Bot.after_invoke` for more info."
2727
#: disnake.ext.commands.Command.cog_name:1
2728
#: disnake.ext.commands.Group.cog_name:1 of
2729
msgid "The name of the cog this command belongs to, if any."
2732
#: disnake.ext.commands.Command.short_doc:1
2733
#: disnake.ext.commands.Group.short_doc:1 of
2734
msgid "Gets the \"short\" documentation of a command."
2737
#: disnake.ext.commands.Command.short_doc:3
2738
#: disnake.ext.commands.Group.short_doc:3 of
2740
"By default, this is the :attr:`brief` attribute. If that lookup leads to "
2741
"an empty string then the first line of the :attr:`help` attribute is used"
2745
#: disnake.ext.commands.Command.signature:1
2746
#: disnake.ext.commands.Group.signature:1 of
2747
msgid "Returns a POSIX-like signature useful for help command output."
2750
#: disnake.ext.commands.Command.can_run:3 disnake.ext.commands.Group.can_run:3
2753
"Checks if the command can be executed by checking all the predicates "
2754
"inside the :attr:`checks` attribute. This also checks whether the command"
2758
#: disnake.ext.commands.Command.can_run:7 disnake.ext.commands.Group.can_run:7
2760
msgid "Checks whether the command is disabled or not"
2763
#: disnake.ext.commands.Command.can_run:10
2764
#: disnake.ext.commands.Group.can_run:10 of
2765
msgid "The ctx of the command currently being invoked."
2768
#: disnake.ext.commands.Command.can_run:13
2769
#: disnake.ext.commands.Group.can_run:13 of
2771
"Any command error that was raised during a check call will be propagated"
2775
#: disnake.ext.commands.Command.can_run:15
2776
#: disnake.ext.commands.Group.can_run:15 of
2777
msgid "A boolean indicating if the command can be invoked."
2780
#: disnake.ext.commands.Group:1 of
2782
"A class that implements a grouping protocol for commands to be executed "
2786
#: disnake.ext.commands.Group:4 of
2788
"This class is a subclass of :class:`.Command` and thus all options valid "
2789
"in :class:`.Command` are valid in here as well."
2792
#: disnake.ext.commands.Group:9 of
2794
"Indicates if the group callback should begin parsing and invocation only "
2795
"if no subcommand was found. Useful for making it an error handling "
2796
"function to tell the user that no subcommand was found or to have "
2797
"different functionality in case no subcommand was found. If this is "
2798
"``False``, then the group callback will always be invoked first. This "
2799
"means that the checks and the parsing dictated by its parameters will be "
2800
"executed. Defaults to ``False``."
2803
#: disnake.ext.commands.Group:22 of
2805
"Indicates if the group's commands should be case insensitive. Defaults to"
2809
#: disnake.ext.commands.Group.copy:1 of
2810
msgid "Creates a copy of this :class:`Group`."
2813
#: disnake.ext.commands.Group.copy:3 of
2814
msgid "A new instance of this group."
2817
#: disnake.ext.commands.Group.copy:4 of
2819
msgid ":class:`Group`"
2820
msgstr ":class:`.Guild`"
2822
#: disnake.ext.commands.GroupMixin:1 of
2824
"A mixin that implements common functionality for classes that behave "
2825
"similar to :class:`.Group` and are allowed to register commands."
2828
#: disnake.ext.commands.GroupMixin:6 of
2829
msgid "A mapping of command name to :class:`.Command` objects."
2832
#: disnake.ext.commands.CogMeta:57 disnake.ext.commands.Context:35
2833
#: disnake.ext.commands.GroupMixin:9 disnake.ext.commands.HelpCommand:40 of
2835
msgid ":class:`dict`"
2836
msgstr ":class:`.Guild`"
2838
#: disnake.ext.commands.GroupMixin:13 of
2839
msgid "Whether the commands should be case insensitive. Defaults to ``False``."
2842
#: ../../ext/commands/api.rst:88
2846
#: disnake.ext.commands.Cog:1 of
2847
msgid "The base class that all cogs must inherit from."
2850
#: disnake.ext.commands.Cog:3 of
2852
"A cog is a collection of commands, listeners, and optional state to help "
2853
"group commands together. More information on them can be found on the "
2854
":ref:`ext_commands_cogs` page."
2857
#: disnake.ext.commands.Cog:7 of
2859
"When inheriting from this class, the options shown in :class:`CogMeta` "
2860
"are equally valid here."
2863
#: disnake.ext.commands.Cog.get_commands:1 of
2865
"A :class:`list` of :class:`.Command`\\s that are defined inside this cog."
2866
" .. note:: This does not include subcommands."
2869
#: disnake.ext.commands.Cog.get_commands:1 of
2870
msgid "A :class:`list` of :class:`.Command`\\s that are defined inside this cog."
2873
#: disnake.ext.commands.Cog.get_commands:6 of
2874
msgid "This does not include subcommands."
2877
#: disnake.ext.commands.Cog.get_commands:7 of
2878
msgid "List[:class:`.Command`]"
2881
#: disnake.ext.commands.Cog.qualified_name:1 of
2882
msgid "Returns the cog's specified name, not the class name."
2885
#: disnake.ext.commands.Cog.description:1 of
2886
msgid "Returns the cog's description, typically the cleaned docstring."
2889
#: disnake.ext.commands.Cog.walk_commands:1 of
2891
"An iterator that recursively walks through this cog's commands and "
2895
#: disnake.ext.commands.Cog.walk_commands:3 of
2897
"Union[:class:`.Command`, :class:`.Group`] -- A command or group from the "
2901
#: disnake.ext.commands.Cog.get_listeners:1 of
2903
"Returns a :class:`list` of (name, function) listener pairs that are "
2904
"defined in this cog."
2907
#: disnake.ext.commands.Cog.get_listeners:3 of
2908
msgid "The listeners defined in this cog."
2911
#: disnake.ext.commands.Cog.get_listeners:4 of
2912
msgid "List[Tuple[:class:`str`, :ref:`coroutine <coroutine>`]]"
2915
#: disnake.ext.commands.Cog.listener:1 of
2916
msgid "A decorator that marks a function as a listener."
2919
#: disnake.ext.commands.Cog.listener:3 of
2920
msgid "This is the cog equivalent of :meth:`.Bot.listen`."
2923
#: disnake.ext.commands.Cog.listener:5 of
2925
"The name of the event being listened to. If not provided, it defaults to "
2926
"the function's name."
2929
#: disnake.ext.commands.Cog.listener:9 of
2931
"The function is not a coroutine function or a string was not passed as"
2935
#: disnake.ext.commands.Cog.cog_unload:1 of
2936
msgid "A special method that is called when the cog gets removed."
2939
#: disnake.ext.commands.Cog.cog_unload:3 of
2940
msgid "This function **cannot** be a coroutine. It must be a regular function."
2943
#: disnake.ext.commands.Cog.cog_unload:6 of
2944
msgid "Subclasses must replace this if they want special unloading behaviour."
2947
#: disnake.ext.commands.Cog.bot_check_once:1 of
2948
msgid "A special method that registers as a :meth:`.Bot.check_once` check."
2951
#: disnake.ext.commands.Cog.bot_check:4
2952
#: disnake.ext.commands.Cog.bot_check_once:4
2953
#: disnake.ext.commands.Cog.cog_check:4 of
2955
"This function **can** be a coroutine and must take a sole parameter, "
2956
"``ctx``, to represent the :class:`.Context`."
2959
#: disnake.ext.commands.Cog.bot_check:1 of
2960
msgid "A special method that registers as a :meth:`.Bot.check` check."
2963
#: disnake.ext.commands.Cog.cog_check:1 of
2965
"A special method that registers as a :func:`commands.check` for every "
2966
"command and subcommand in this cog."
2969
#: disnake.ext.commands.Cog.cog_command_error:1 of
2971
"A special method that is called whenever an error is dispatched inside "
2975
#: disnake.ext.commands.Cog.cog_command_error:4 of
2977
"This is similar to :func:`.on_command_error` except only applying to the "
2978
"commands inside this cog."
2981
#: disnake.ext.commands.Cog.cog_after_invoke:5
2982
#: disnake.ext.commands.Cog.cog_before_invoke:5
2983
#: disnake.ext.commands.Cog.cog_command_error:7 of
2984
msgid "This **must** be a coroutine."
2987
#: disnake.ext.commands.Cog.cog_command_error:9 of
2988
msgid "The invocation context where the error happened."
2991
#: disnake.ext.commands.Cog.cog_command_error:11 of
2992
msgid "The error that happened."
2995
#: disnake.ext.commands.Cog.cog_before_invoke:1 of
2996
msgid "A special method that acts as a cog local pre-invoke hook."
2999
#: disnake.ext.commands.Cog.cog_before_invoke:3 of
3000
msgid "This is similar to :meth:`.Command.before_invoke`."
3003
#: disnake.ext.commands.Cog.cog_after_invoke:1 of
3004
msgid "A special method that acts as a cog local post-invoke hook."
3007
#: disnake.ext.commands.Cog.cog_after_invoke:3 of
3008
msgid "This is similar to :meth:`.Command.after_invoke`."
3011
#: disnake.ext.commands.CogMeta:1 of
3012
msgid "A metaclass for defining a cog."
3015
#: disnake.ext.commands.CogMeta:3 of
3017
"Note that you should probably not use this directly. It is exposed purely"
3018
" for documentation purposes along with making custom metaclasses to "
3019
"intermix with other metaclasses such as the :class:`abc.ABCMeta` "
3023
#: disnake.ext.commands.CogMeta:7 of
3025
"For example, to create an abstract cog mixin class, the following would "
3029
#: disnake.ext.commands.CogMeta:24 of
3031
"When passing an attribute of a metaclass that is documented below, note "
3032
"that you must pass it as a keyword-only argument to the class creation "
3033
"like the following example:"
3036
#: disnake.ext.commands.CogMeta:35 of
3038
"The cog name. By default, it is the name of the class with no "
3042
#: disnake.ext.commands.CogMeta:41 of
3044
"A list of attributes to apply to every command inside this cog. The "
3045
"dictionary is passed into the :class:`Command` options at ``__init__``. "
3046
"If you specify attributes inside the command attribute in the class, it "
3047
"will override the one specified inside this attribute. For example:"
3050
#: ../../ext/commands/api.rst:99
3051
msgid "Help Commands"
3054
#: disnake.ext.commands.HelpCommand:1 of
3055
msgid "The base implementation for help command formatting."
3058
#: disnake.ext.commands.HelpCommand:5 of
3060
"Internally instances of this class are deep copied every time the command"
3061
" itself is invoked to prevent a race condition mentioned in "
3065
#: disnake.ext.commands.HelpCommand:9 of
3067
"This means that relying on the state of this class to be the same between"
3068
" command invocations would not work as expected."
3071
#: disnake.ext.commands.HelpCommand:14 of
3073
"The context that invoked this help formatter. This is generally set after"
3074
" the help command assigned, :func:`command_callback`\\, has been called."
3077
#: disnake.ext.commands.HelpCommand:17 of
3078
msgid "Optional[:class:`Context`]"
3081
#: disnake.ext.commands.HelpCommand:21 of
3083
"Specifies if hidden commands should be shown in the output. Defaults to "
3087
#: disnake.ext.commands.HelpCommand:28 of
3089
"Specifies if commands should have their :attr:`.Command.checks` called "
3090
"and verified. Defaults to ``True``."
3093
#: disnake.ext.commands.HelpCommand:35 of
3095
"A dictionary of options to pass in for the construction of the help "
3096
"command. This allows you to change the command behaviour without actually"
3097
" changing the implementation of the command. The attributes will be the "
3098
"same as the ones passed in the :class:`.Command` constructor."
3101
#: disnake.ext.commands.HelpCommand.add_check:1 of
3103
msgid "Adds a check to the help command."
3104
msgstr "ボットにグローバルチェックを追加します。"
3106
#: disnake.ext.commands.HelpCommand.remove_check:1 of
3107
msgid "Removes a check from the help command."
3110
#: disnake.ext.commands.HelpCommand.get_bot_mapping:1 of
3111
msgid "Retrieves the bot mapping passed to :meth:`send_bot_help`."
3114
#: disnake.ext.commands.HelpCommand.clean_prefix:1 of
3116
"The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of "
3118
msgstr "「クリーンアップ」されたプレフィックスを返します。たとえば、メンションは ``<@id>`` のかわりに ``@name`` となります。"
3120
#: disnake.ext.commands.HelpCommand.invoked_with:1 of
3122
"Similar to :attr:`Context.invoked_with` except properly handles the case "
3123
"where :meth:`Context.send_help` is used."
3126
#: disnake.ext.commands.HelpCommand.invoked_with:4 of
3128
"If the help command was used regularly then this returns the "
3129
":attr:`Context.invoked_with` attribute. Otherwise, if it the help command"
3130
" was called using :meth:`Context.send_help` then it returns the internal "
3131
"command name of the help command."
3134
#: disnake.ext.commands.HelpCommand.invoked_with:9 of
3135
msgid "The command name that triggered this invocation."
3138
#: disnake.ext.commands.HelpCommand.get_command_signature:1
3139
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature:1 of
3140
msgid "Retrieves the signature portion of the help page."
3141
msgstr "ヘルプページに表示される、コマンドの使用方法を示す文字列を返します。"
3143
#: disnake.ext.commands.HelpCommand.get_command_signature:3
3144
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature:3 of
3145
msgid "The command to get the signature of."
3148
#: disnake.ext.commands.HelpCommand.get_command_signature:6
3149
#: disnake.ext.commands.MinimalHelpCommand.get_command_signature:6 of
3150
msgid "The signature for the command."
3153
#: disnake.ext.commands.HelpCommand.remove_mentions:1 of
3154
msgid "Removes mentions from the string to prevent abuse."
3157
#: disnake.ext.commands.HelpCommand.remove_mentions:3 of
3158
msgid "This includes ``@everyone``, ``@here``, member mentions and role mentions."
3161
#: disnake.ext.commands.HelpCommand.remove_mentions:5 of
3162
msgid "The string with mentions removed."
3165
#: disnake.ext.commands.HelpCommand.cog:1 of
3166
msgid "A property for retrieving or setting the cog for the help command."
3169
#: disnake.ext.commands.HelpCommand.cog:3 of
3171
"When a cog is set for the help command, it is as-if the help command "
3172
"belongs to that cog. All cog special methods will apply to the help "
3173
"command and it will be automatically unset on unload."
3176
#: disnake.ext.commands.HelpCommand.cog:7 of
3177
msgid "To unbind the cog from the help command, you can set it to ``None``."
3180
#: disnake.ext.commands.HelpCommand.cog:9 of
3181
msgid "The cog that is currently set for the help command."
3184
#: disnake.ext.commands.HelpCommand.command_not_found:1
3185
#: disnake.ext.commands.HelpCommand.subcommand_not_found:1 of
3189
#: disnake.ext.commands.HelpCommand.command_not_found:3 of
3191
"A method called when a command is not found in the help command. This is "
3192
"useful to override for i18n."
3195
#: disnake.ext.commands.HelpCommand.command_not_found:6 of
3196
msgid "Defaults to ``No command called {0} found.``"
3199
#: disnake.ext.commands.HelpCommand.command_not_found:8 of
3201
"The string that contains the invalid command. Note that this has had "
3202
"mentions removed to prevent abuse."
3205
#: disnake.ext.commands.HelpCommand.command_not_found:12 of
3206
msgid "The string to use when a command has not been found."
3209
#: disnake.ext.commands.HelpCommand.subcommand_not_found:3 of
3211
"A method called when a command did not have a subcommand requested in the"
3212
" help command. This is useful to override for i18n."
3215
#: disnake.ext.commands.HelpCommand.subcommand_not_found:6 of
3216
msgid "Defaults to either:"
3219
#: disnake.ext.commands.HelpCommand.subcommand_not_found:8 of
3220
msgid "``'Command \"{command.qualified_name}\" has no subcommands.'``"
3223
#: disnake.ext.commands.HelpCommand.subcommand_not_found:9 of
3224
msgid "If there is no subcommand in the ``command`` parameter."
3227
#: disnake.ext.commands.HelpCommand.subcommand_not_found:11 of
3229
"``'Command \"{command.qualified_name}\" has no subcommand named "
3233
#: disnake.ext.commands.HelpCommand.subcommand_not_found:11 of
3234
msgid "If the ``command`` parameter has subcommands but not one named ``string``."
3237
#: disnake.ext.commands.HelpCommand.subcommand_not_found:13 of
3238
msgid "The command that did not have the subcommand requested."
3241
#: disnake.ext.commands.HelpCommand.subcommand_not_found:15 of
3243
"The string that contains the invalid subcommand. Note that this has had "
3244
"mentions removed to prevent abuse."
3247
#: disnake.ext.commands.HelpCommand.subcommand_not_found:19 of
3248
msgid "The string to use when the command did not have the subcommand requested."
3251
#: disnake.ext.commands.HelpCommand.filter_commands:3 of
3252
msgid "Returns a filtered list of commands and optionally sorts them."
3255
#: disnake.ext.commands.HelpCommand.filter_commands:5 of
3257
"This takes into account the :attr:`verify_checks` and :attr:`show_hidden`"
3261
#: disnake.ext.commands.HelpCommand.filter_commands:8 of
3262
msgid "An iterable of commands that are getting filtered."
3265
#: disnake.ext.commands.HelpCommand.filter_commands:10 of
3266
msgid "Whether to sort the result."
3269
#: disnake.ext.commands.HelpCommand.filter_commands:12 of
3271
"An optional key function to pass to :func:`py:sorted` that takes a "
3272
":class:`Command` as its sole parameter. If ``sort`` is passed as ``True``"
3273
" then this will default as the command name."
3276
#: disnake.ext.commands.HelpCommand.filter_commands:17 of
3277
msgid "A list of commands that passed the filter."
3280
#: disnake.ext.commands.HelpCommand.get_max_size:1 of
3281
msgid "Returns the largest name length of the specified command list."
3284
#: disnake.ext.commands.HelpCommand.get_max_size:3 of
3285
msgid "A sequence of commands to check for the largest size."
3288
#: disnake.ext.commands.HelpCommand.get_max_size:6 of
3289
msgid "The maximum width of the commands."
3292
#: disnake.ext.commands.DefaultHelpCommand:12
3293
#: disnake.ext.commands.DefaultHelpCommand:42
3294
#: disnake.ext.commands.HelpCommand.get_max_size:7
3295
#: disnake.ext.commands.MaxConcurrencyReached:9
3296
#: disnake.ext.commands.Paginator:25 of
3300
#: disnake.ext.commands.DefaultHelpCommand.get_destination:1
3301
#: disnake.ext.commands.HelpCommand.get_destination:1
3302
#: disnake.ext.commands.MinimalHelpCommand.get_destination:1 of
3304
"Returns the :class:`~disnake.abc.Messageable` where the help command will"
3308
#: disnake.ext.commands.DefaultHelpCommand.get_destination:3
3309
#: disnake.ext.commands.HelpCommand.get_destination:3
3310
#: disnake.ext.commands.HelpCommand.send_bot_help:11
3311
#: disnake.ext.commands.HelpCommand.send_cog_help:11
3312
#: disnake.ext.commands.HelpCommand.send_command_help:10
3313
#: disnake.ext.commands.HelpCommand.send_error_message:7
3314
#: disnake.ext.commands.HelpCommand.send_group_help:11
3315
#: disnake.ext.commands.MinimalHelpCommand.get_destination:3 of
3316
msgid "You can override this method to customise the behaviour."
3319
#: disnake.ext.commands.DefaultHelpCommand.get_destination:5
3320
#: disnake.ext.commands.HelpCommand.get_destination:5
3321
#: disnake.ext.commands.MinimalHelpCommand.get_destination:5 of
3322
msgid "By default this returns the context's channel."
3325
#: disnake.ext.commands.DefaultHelpCommand.get_destination:7
3326
#: disnake.ext.commands.HelpCommand.get_destination:7
3327
#: disnake.ext.commands.MinimalHelpCommand.get_destination:7 of
3328
msgid "The destination where the help command will be output."
3331
#: disnake.ext.commands.DefaultHelpCommand.get_destination:8
3332
#: disnake.ext.commands.HelpCommand.get_destination:8
3333
#: disnake.ext.commands.MinimalHelpCommand.get_destination:8 of
3334
msgid ":class:`.abc.Messageable`"
3337
#: disnake.ext.commands.HelpCommand.send_error_message:3 of
3339
"Handles the implementation when an error happens in the help command. For"
3340
" example, the result of :meth:`command_not_found` or "
3341
":meth:`command_has_no_subcommand_found` will be passed here."
3344
#: disnake.ext.commands.HelpCommand.send_error_message:9 of
3346
"By default, this sends the error message to the destination specified by "
3347
":meth:`get_destination`."
3350
#: disnake.ext.commands.HelpCommand.send_bot_help:15
3351
#: disnake.ext.commands.HelpCommand.send_cog_help:15
3352
#: disnake.ext.commands.HelpCommand.send_command_help:14
3353
#: disnake.ext.commands.HelpCommand.send_error_message:14
3354
#: disnake.ext.commands.HelpCommand.send_group_help:15 of
3355
msgid "You can access the invocation context with :attr:`HelpCommand.context`."
3358
#: disnake.ext.commands.HelpCommand.send_error_message:16 of
3360
"The error message to display to the user. Note that this has had mentions"
3361
" removed to prevent abuse."
3364
#: disnake.ext.commands.HelpCommand.on_help_command_error:3 of
3366
"The help command's error handler, as specified by "
3367
":ref:`ext_commands_error_handler`."
3370
#: disnake.ext.commands.HelpCommand.on_help_command_error:5 of
3372
"Useful to override if you need some specific behaviour when the error "
3376
#: disnake.ext.commands.HelpCommand.on_help_command_error:8 of
3378
"By default this method does nothing and just propagates to the default "
3382
#: disnake.ext.commands.HelpCommand.send_bot_help:3 of
3384
"Handles the implementation of the bot command page in the help command. "
3385
"This function is called when the help command is called with no "
3389
#: disnake.ext.commands.HelpCommand.send_bot_help:6
3390
#: disnake.ext.commands.HelpCommand.send_cog_help:6
3391
#: disnake.ext.commands.HelpCommand.send_command_help:5
3392
#: disnake.ext.commands.HelpCommand.send_group_help:6 of
3394
"It should be noted that this method does not return anything -- rather "
3395
"the actual message sending should be done inside this method. Well "
3396
"behaved subclasses should use :meth:`get_destination` to know where to "
3397
"send, as this is a customisation point for other users."
3400
#: disnake.ext.commands.HelpCommand.send_bot_help:17 of
3402
"Also, the commands in the mapping are not filtered. To do the filtering "
3403
"you will have to call :meth:`filter_commands` yourself."
3406
#: disnake.ext.commands.HelpCommand.send_bot_help:20 of
3408
"A mapping of cogs to commands that have been requested by the user for "
3409
"help. The key of the mapping is the :class:`~.commands.Cog` that the "
3410
"command belongs to, or ``None`` if there isn't one, and the value is a "
3411
"list of commands that belongs to that cog."
3414
#: disnake.ext.commands.HelpCommand.send_cog_help:3 of
3416
"Handles the implementation of the cog page in the help command. This "
3417
"function is called when the help command is called with a cog as the "
3421
#: disnake.ext.commands.HelpCommand.send_cog_help:17 of
3423
"To get the commands that belong to this cog see :meth:`Cog.get_commands`."
3424
" The commands returned not filtered. To do the filtering you will have to"
3425
" call :meth:`filter_commands` yourself."
3428
#: disnake.ext.commands.HelpCommand.send_cog_help:21 of
3429
msgid "The cog that was requested for help."
3432
#: disnake.ext.commands.HelpCommand.send_group_help:3 of
3434
"Handles the implementation of the group page in the help command. This "
3435
"function is called when the help command is called with a group as the "
3439
#: disnake.ext.commands.HelpCommand.send_group_help:17 of
3441
"To get the commands that belong to this group without aliases see "
3442
":attr:`Group.commands`. The commands returned not filtered. To do the "
3443
"filtering you will have to call :meth:`filter_commands` yourself."
3446
#: disnake.ext.commands.HelpCommand.send_group_help:21 of
3447
msgid "The group that was requested for help."
3450
#: disnake.ext.commands.HelpCommand.send_command_help:3 of
3451
msgid "Handles the implementation of the single command page in the help command."
3454
#: disnake.ext.commands.HelpCommand.send_command_help:16 of
3458
#: disnake.ext.commands.HelpCommand.send_command_help:19 of
3460
"There are certain attributes and methods that are helpful for a help "
3461
"command to show such as the following:"
3464
#: disnake.ext.commands.HelpCommand.send_command_help:22 of
3465
msgid ":attr:`Command.help`"
3468
#: disnake.ext.commands.HelpCommand.send_command_help:23 of
3469
msgid ":attr:`Command.brief`"
3472
#: disnake.ext.commands.HelpCommand.send_command_help:24 of
3473
msgid ":attr:`Command.short_doc`"
3476
#: disnake.ext.commands.HelpCommand.send_command_help:25 of
3477
msgid ":attr:`Command.description`"
3480
#: disnake.ext.commands.HelpCommand.send_command_help:26 of
3481
msgid ":meth:`get_command_signature`"
3484
#: disnake.ext.commands.HelpCommand.send_command_help:28 of
3486
"There are more than just these attributes but feel free to play around "
3487
"with these to help you get started to get the output that you want."
3490
#: disnake.ext.commands.HelpCommand.send_command_help:31 of
3491
msgid "The command that was requested for help."
3494
#: disnake.ext.commands.HelpCommand.prepare_help_command:3 of
3496
"A low level method that can be used to prepare the help command before it"
3497
" does anything. For example, if you need to prepare some state in your "
3498
"subclass before the command does its processing then this would be the "
3502
#: disnake.ext.commands.HelpCommand.prepare_help_command:8
3503
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note:3 of
3504
msgid "The default implementation does nothing."
3507
#: disnake.ext.commands.HelpCommand.prepare_help_command:12 of
3509
"This is called *inside* the help command callback body. So all the usual "
3510
"rules that happen inside apply here as well."
3513
#: disnake.ext.commands.HelpCommand.prepare_help_command:17 of
3514
msgid "The argument passed to the help command."
3517
#: disnake.ext.commands.HelpCommand.command_callback:3 of
3518
msgid "The actual implementation of the help command."
3521
#: disnake.ext.commands.HelpCommand.command_callback:5 of
3523
"It is not recommended to override this method and instead change the "
3524
"behaviour through the methods that actually get dispatched."
3527
#: disnake.ext.commands.HelpCommand.command_callback:8 of
3528
msgid ":meth:`send_bot_help`"
3531
#: disnake.ext.commands.HelpCommand.command_callback:9 of
3532
msgid ":meth:`send_cog_help`"
3535
#: disnake.ext.commands.HelpCommand.command_callback:10 of
3536
msgid ":meth:`send_group_help`"
3539
#: disnake.ext.commands.HelpCommand.command_callback:11 of
3540
msgid ":meth:`send_command_help`"
3543
#: disnake.ext.commands.HelpCommand.command_callback:12 of
3544
msgid ":meth:`get_destination`"
3547
#: disnake.ext.commands.HelpCommand.command_callback:13 of
3548
msgid ":meth:`command_not_found`"
3551
#: disnake.ext.commands.HelpCommand.command_callback:14 of
3552
msgid ":meth:`subcommand_not_found`"
3555
#: disnake.ext.commands.HelpCommand.command_callback:15 of
3556
msgid ":meth:`send_error_message`"
3559
#: disnake.ext.commands.HelpCommand.command_callback:16 of
3560
msgid ":meth:`on_help_command_error`"
3563
#: disnake.ext.commands.HelpCommand.command_callback:17 of
3564
msgid ":meth:`prepare_help_command`"
3567
#: disnake.ext.commands.DefaultHelpCommand:1 of
3568
msgid "The implementation of the default help command."
3571
#: disnake.ext.commands.DefaultHelpCommand:3
3572
#: disnake.ext.commands.MinimalHelpCommand:3 of
3573
msgid "This inherits from :class:`HelpCommand`."
3576
#: disnake.ext.commands.DefaultHelpCommand:5 of
3577
msgid "It extends it with the following attributes."
3580
#: disnake.ext.commands.DefaultHelpCommand:9 of
3581
msgid "The maximum number of characters that fit in a line. Defaults to 80."
3584
#: disnake.ext.commands.DefaultHelpCommand:16
3585
#: disnake.ext.commands.MinimalHelpCommand:7 of
3587
"Whether to sort the commands in the output alphabetically. Defaults to "
3591
#: disnake.ext.commands.DefaultHelpCommand:22
3592
#: disnake.ext.commands.MinimalHelpCommand:27 of
3594
"A tribool that indicates if the help command should DM the user instead "
3595
"of sending it to the channel it received it from. If the boolean is set "
3596
"to ``True``, then all help output is DM'd. If ``False``, none of the help"
3597
" output is DM'd. If ``None``, then the bot will only DM when the help "
3598
"message becomes too long (dictated by more than :attr:`dm_help_threshold`"
3599
" characters). Defaults to ``False``."
3602
#: disnake.ext.commands.DefaultHelpCommand:29
3603
#: disnake.ext.commands.MinimalHelpCommand:34 of
3604
msgid "Optional[:class:`bool`]"
3607
#: disnake.ext.commands.DefaultHelpCommand:33
3608
#: disnake.ext.commands.MinimalHelpCommand:38 of
3610
"The number of characters the paginator must accumulate before getting "
3611
"DM'd to the user if :attr:`dm_help` is set to ``None``. Defaults to 1000."
3614
#: disnake.ext.commands.DefaultHelpCommand:40 of
3615
msgid "How much to indent the commands from a heading. Defaults to ``2``."
3618
#: disnake.ext.commands.DefaultHelpCommand:46 of
3620
"The command list's heading string used when the help command is invoked "
3621
"with a category name. Useful for i18n. Defaults to ``\"Commands:\"``"
3624
#: disnake.ext.commands.DefaultHelpCommand:53
3625
#: disnake.ext.commands.MinimalHelpCommand:45 of
3627
"The string used when there is a command which does not belong to any "
3628
"category(cog). Useful for i18n. Defaults to ``\"No Category\"``"
3631
#: disnake.ext.commands.DefaultHelpCommand:60
3632
#: disnake.ext.commands.MinimalHelpCommand:52 of
3633
msgid "The paginator used to paginate the help command output."
3636
#: disnake.ext.commands.DefaultHelpCommand:62
3637
#: disnake.ext.commands.MinimalHelpCommand:54 of
3639
msgid ":class:`Paginator`"
3640
msgstr ":class:`.AppInfo`"
3642
#: disnake.ext.commands.DefaultHelpCommand.shorten_text:1 of
3644
msgid ":class:`str`: Shortens text to fit into the :attr:`width`."
3645
msgstr "渡された文字列を、 :attr:`width` に収まるよう省略します。"
3647
#: disnake.ext.commands.DefaultHelpCommand.get_ending_note:1 of
3650
":class:`str`: Returns help command's ending note. This is mainly useful "
3651
"to override for i18n purposes."
3652
msgstr "Helpコマンドの末尾の文字列を返します。主に翻訳する際にオーバーライドしてください。"
3654
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:1 of
3655
msgid "Indents a list of commands after the specified heading."
3658
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:3 of
3659
msgid "The formatting is added to the :attr:`paginator`."
3662
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:5 of
3664
"The default implementation is the command name indented by :attr:`indent`"
3665
" spaces, padded to ``max_size`` followed by the command's "
3666
":attr:`Command.short_doc` and then shortened to fit into the "
3670
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:10 of
3671
msgid "A list of commands to indent for output."
3674
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:12 of
3676
"The heading to add to the output. This is only added if the list of "
3677
"commands is greater than 0."
3680
#: disnake.ext.commands.DefaultHelpCommand.add_indented_commands:15 of
3682
"The max size to use for the gap between indents. If unspecified, calls "
3683
":meth:`get_max_size` on the commands parameter."
3686
#: disnake.ext.commands.DefaultHelpCommand.send_pages:1
3687
#: disnake.ext.commands.MinimalHelpCommand.send_pages:1 of
3689
"A helper utility to send the page output from :attr:`paginator` to the "
3693
#: disnake.ext.commands.DefaultHelpCommand.add_command_formatting:1 of
3695
"A utility function to format the non-indented block of commands and "
3699
#: disnake.ext.commands.DefaultHelpCommand.add_command_formatting:3
3700
#: disnake.ext.commands.MinimalHelpCommand.add_command_formatting:3 of
3701
msgid "The command to format."
3704
#: disnake.ext.commands.MinimalHelpCommand:1 of
3705
msgid "An implementation of a help command with minimal output."
3708
#: disnake.ext.commands.MinimalHelpCommand:13 of
3710
"The command list's heading string used when the help command is invoked "
3711
"with a category name. Useful for i18n. Defaults to ``\"Commands\"``"
3714
#: disnake.ext.commands.MinimalHelpCommand:20 of
3716
"The alias list's heading string used to list the aliases of the command. "
3717
"Useful for i18n. Defaults to ``\"Aliases:\"``."
3720
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note:1 of
3722
"Returns help command's opening note. This is mainly useful to override "
3726
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note:3 of
3727
msgid "The default implementation returns ::"
3730
#: disnake.ext.commands.MinimalHelpCommand.get_opening_note:8 of
3731
msgid "The help command opening note."
3734
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note:1 of
3736
"Return the help command's ending note. This is mainly useful to override "
3740
#: disnake.ext.commands.MinimalHelpCommand.get_ending_note:5 of
3741
msgid "The help command ending note."
3744
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:1 of
3745
msgid "Adds the minified bot heading with commands to the output."
3748
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting:3
3749
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:3
3750
#: disnake.ext.commands.MinimalHelpCommand.add_subcommand_formatting:3 of
3751
msgid "The formatting should be added to the :attr:`paginator`."
3754
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:5 of
3756
"The default implementation is a bold underline heading followed by "
3757
"commands separated by an EN SPACE (U+2002) in the next line."
3760
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:8 of
3761
msgid "A list of commands that belong to the heading."
3764
#: disnake.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:10 of
3765
msgid "The heading to add to the line."
3768
#: disnake.ext.commands.MinimalHelpCommand.add_subcommand_formatting:1 of
3769
msgid "Adds formatting information on a subcommand."
3772
#: disnake.ext.commands.MinimalHelpCommand.add_subcommand_formatting:5 of
3774
"The default implementation is the prefix and the "
3775
":attr:`Command.qualified_name` optionally followed by an En dash and the "
3776
"command's :attr:`Command.short_doc`."
3779
#: disnake.ext.commands.MinimalHelpCommand.add_subcommand_formatting:8 of
3780
msgid "The command to show information of."
3783
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting:1 of
3784
msgid "Adds the formatting information on a command's aliases."
3787
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting:5 of
3789
"The default implementation is the :attr:`aliases_heading` bolded followed"
3790
" by a comma separated list of aliases."
3793
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting:8 of
3794
msgid "This is not called if there are no aliases to format."
3797
#: disnake.ext.commands.MinimalHelpCommand.add_aliases_formatting:10 of
3798
msgid "A list of aliases to format."
3801
#: disnake.ext.commands.MinimalHelpCommand.add_command_formatting:1 of
3802
msgid "A utility function to format commands and groups."
3805
#: disnake.ext.commands.Paginator:1 of
3806
msgid "A class that aids in paginating code blocks for Discord messages."
3809
#: disnake.ext.commands.Paginator:7 of
3810
msgid "Returns the total number of characters in the paginator."
3813
#: disnake.ext.commands.Paginator:11 of
3814
msgid "The prefix inserted to every page. e.g. three backticks."
3817
#: disnake.ext.commands.Paginator:17 of
3818
msgid "The suffix appended at the end of every page. e.g. three backticks."
3821
#: disnake.ext.commands.Paginator:23 of
3822
msgid "The maximum amount of codepoints allowed in a page."
3825
#: disnake.ext.commands.Paginator.clear:1 of
3826
msgid "Clears the paginator to have no pages."
3829
#: disnake.ext.commands.Paginator.add_line:1 of
3830
msgid "Adds a line to the current page."
3833
#: disnake.ext.commands.Paginator.add_line:3 of
3834
msgid "If the line exceeds the :attr:`max_size` then an exception is raised."
3837
#: disnake.ext.commands.Paginator.add_line:6 of
3838
msgid "The line to add."
3841
#: disnake.ext.commands.Paginator.add_line:8 of
3842
msgid "Indicates if another empty line should be added."
3845
#: disnake.ext.commands.Paginator.add_line:11 of
3846
msgid "The line was too big for the current :attr:`max_size`."
3849
#: disnake.ext.commands.Paginator.close_page:1 of
3850
msgid "Prematurely terminate a page."
3853
#: disnake.ext.commands.Paginator.pages:1 of
3854
msgid "Returns the rendered list of pages."
3857
#: disnake.ext.commands.Paginator.pages:3 of
3858
msgid "List[:class:`str`]"
3861
#: ../../ext/commands/api.rst:116
3865
#: ../../ext/commands/api.rst:120
3866
msgid "Specifies a type of bucket for, e.g. a cooldown."
3869
#: ../../ext/commands/api.rst:124
3870
msgid "The default bucket operates on a global basis."
3873
#: ../../ext/commands/api.rst:127
3874
msgid "The user bucket operates on a per-user basis."
3877
#: ../../ext/commands/api.rst:130
3878
msgid "The guild bucket operates on a per-guild basis."
3881
#: ../../ext/commands/api.rst:133
3882
msgid "The channel bucket operates on a per-channel basis."
3885
#: ../../ext/commands/api.rst:136
3886
msgid "The member bucket operates on a per-member basis."
3889
#: ../../ext/commands/api.rst:139
3890
msgid "The category bucket operates on a per-category basis."
3893
#: ../../ext/commands/api.rst:142
3894
msgid "The role bucket operates on a per-role basis."
3897
#: ../../ext/commands/api.rst:150
3901
#: disnake.ext.commands.check:1 of
3903
"A decorator that adds a check to the :class:`.Command` or its subclasses."
3904
" These checks could be accessed via :attr:`.Command.checks`."
3907
#: disnake.ext.commands.check:4 of
3909
"These checks should be predicates that take in a single parameter taking "
3910
"a :class:`.Context`. If the check returns a ``False``\\-like value then "
3911
"during invocation a :exc:`.CheckFailure` exception is raised and sent to "
3912
"the :func:`.on_command_error` event."
3915
#: disnake.ext.commands.check:9 of
3917
"If an exception should be thrown in the predicate then it should be a "
3918
"subclass of :exc:`.CommandError`. Any exception not subclassed from it "
3919
"will be propagated while those subclassed will be sent to "
3920
":func:`.on_command_error`."
3923
#: disnake.ext.commands.check:14 of
3925
"A special attribute named ``predicate`` is bound to the value returned by"
3926
" this decorator to retrieve the predicate passed to the decorator. This "
3927
"allows the following introspection and chaining to be done:"
3930
#: disnake.ext.commands.check:30 of
3932
"The function returned by ``predicate`` is **always** a coroutine, even if"
3933
" the original function was not a coroutine."
3936
#: disnake.ext.commands.check:33 of
3937
msgid "The ``predicate`` attribute was added."
3940
#: disnake.ext.commands.check:38 of
3941
msgid "Creating a basic check to see if the command invoker is you."
3944
#: disnake.ext.commands.check:50 of
3945
msgid "Transforming common checks into its own decorator:"
3948
#: disnake.ext.commands.check:64 of
3949
msgid "The predicate to check if the command should be invoked."
3952
#: disnake.ext.commands.check_any:1 of
3954
"A :func:`check` that is added that checks if any of the checks passed "
3955
"will pass, i.e. using logical OR."
3958
#: disnake.ext.commands.check_any:4 of
3960
"If all checks fail then :exc:`.CheckAnyFailure` is raised to signal the "
3961
"failure. It inherits from :exc:`.CheckFailure`."
3964
#: disnake.ext.commands.check_any:9 of
3965
msgid "The ``predicate`` attribute for this function **is** a coroutine."
3968
#: disnake.ext.commands.check_any:13 of
3970
"An argument list of checks that have been decorated with the "
3971
":func:`check` decorator."
3974
#: disnake.ext.commands.check_any:17 of
3976
"A check passed has not been decorated with the :func:`check` "
3980
#: disnake.ext.commands.check_any:21 of
3981
msgid "Creating a basic check to see if it's the bot owner or the server owner:"
3984
#: disnake.ext.commands.has_role:1 of
3986
"A :func:`.check` that is added that checks if the member invoking the "
3987
"command has the role specified via the name or ID specified."
3990
#: disnake.ext.commands.has_role:4 of
3992
"If a string is specified, you must give the exact name of the role, "
3993
"including caps and spelling."
3996
#: disnake.ext.commands.has_role:7 of
3998
"If an integer is specified, you must give the exact snowflake ID of the "
4002
#: disnake.ext.commands.has_role:9 of
4004
"If the message is invoked in a private message context then the check "
4005
"will return ``False``."
4008
#: disnake.ext.commands.has_role:12 of
4010
"This check raises one of two special exceptions, :exc:`.MissingRole` if "
4011
"the user is missing a role, or :exc:`.NoPrivateMessage` if it is used in "
4012
"a private message. Both inherit from :exc:`.CheckFailure`."
4015
#: disnake.ext.commands.has_role:18 of
4017
"Raise :exc:`.MissingRole` or :exc:`.NoPrivateMessage` instead of generic "
4018
":exc:`.CheckFailure`"
4021
#: disnake.ext.commands.has_role:21 of
4022
msgid "The name or ID of the role to check."
4025
#: disnake.ext.commands.has_permissions:1 of
4027
"A :func:`.check` that is added that checks if the member has all of the "
4028
"permissions necessary."
4031
#: disnake.ext.commands.has_permissions:4 of
4033
"Note that this check operates on the current channel permissions, not the"
4034
" guild wide permissions."
4037
#: disnake.ext.commands.has_permissions:7 of
4039
"The permissions passed in must be exactly like the properties shown under"
4040
" :class:`.disnake.Permissions`."
4043
#: disnake.ext.commands.has_permissions:10 of
4045
"This check raises a special exception, :exc:`.MissingPermissions` that is"
4046
" inherited from :exc:`.CheckFailure`."
4049
#: disnake.ext.commands.has_permissions:13 of
4050
msgid "An argument list of permissions to check for."
4053
#: disnake.ext.commands.has_guild_permissions:1 of
4055
"Similar to :func:`.has_permissions`, but operates on guild wide "
4056
"permissions instead of the current channel permissions."
4059
#: disnake.ext.commands.has_guild_permissions:4 of
4061
"If this check is called in a DM context, it will raise an exception, "
4062
":exc:`.NoPrivateMessage`."
4065
#: disnake.ext.commands.has_any_role:1 of
4067
"A :func:`.check` that is added that checks if the member invoking the "
4068
"command has **any** of the roles specified. This means that if they have "
4069
"one out of the three roles specified, then this check will return `True`."
4072
#: disnake.ext.commands.has_any_role:5 of
4073
msgid "Similar to :func:`.has_role`\\, the names or IDs passed in must be exact."
4076
#: disnake.ext.commands.has_any_role:7 of
4078
"This check raises one of two special exceptions, :exc:`.MissingAnyRole` "
4079
"if the user is missing all roles, or :exc:`.NoPrivateMessage` if it is "
4080
"used in a private message. Both inherit from :exc:`.CheckFailure`."
4083
#: disnake.ext.commands.has_any_role:13 of
4085
"Raise :exc:`.MissingAnyRole` or :exc:`.NoPrivateMessage` instead of "
4086
"generic :exc:`.CheckFailure`"
4089
#: disnake.ext.commands.has_any_role:16 of
4090
msgid "An argument list of names or IDs to check that the member has roles wise."
4093
#: disnake.ext.commands.bot_has_role:1 of
4094
msgid "Similar to :func:`.has_role` except checks if the bot itself has the role."
4097
#: disnake.ext.commands.bot_has_role:4 of
4099
"This check raises one of two special exceptions, :exc:`.BotMissingRole` "
4100
"if the bot is missing the role, or :exc:`.NoPrivateMessage` if it is used"
4101
" in a private message. Both inherit from :exc:`.CheckFailure`."
4104
#: disnake.ext.commands.bot_has_role:10 of
4106
"Raise :exc:`.BotMissingRole` or :exc:`.NoPrivateMessage` instead of "
4107
"generic :exc:`.CheckFailure`"
4110
#: disnake.ext.commands.bot_has_permissions:1 of
4112
"Similar to :func:`.has_permissions` except checks if the bot itself has "
4113
"the permissions listed."
4116
#: disnake.ext.commands.bot_has_permissions:4 of
4118
"This check raises a special exception, :exc:`.BotMissingPermissions` that"
4119
" is inherited from :exc:`.CheckFailure`."
4122
#: disnake.ext.commands.bot_has_guild_permissions:1 of
4124
"Similar to :func:`.has_guild_permissions`, but checks the bot members "
4128
#: disnake.ext.commands.bot_has_any_role:1 of
4130
"Similar to :func:`.has_any_role` except checks if the bot itself has any "
4131
"of the roles listed."
4134
#: disnake.ext.commands.bot_has_any_role:4 of
4136
"This check raises one of two special exceptions, "
4137
":exc:`.BotMissingAnyRole` if the bot is missing all roles, or "
4138
":exc:`.NoPrivateMessage` if it is used in a private message. Both inherit"
4139
" from :exc:`.CheckFailure`."
4142
#: disnake.ext.commands.bot_has_any_role:10 of
4144
"Raise :exc:`.BotMissingAnyRole` or :exc:`.NoPrivateMessage` instead of "
4145
"generic checkfailure"
4148
#: disnake.ext.commands.cooldown:1 of
4150
msgid "A decorator that adds a cooldown to a :class:`.Command`"
4151
msgstr "Botにグローバルチェックを追加するデコレーター"
4153
#: disnake.ext.commands.cooldown:3 of
4155
"A cooldown allows a command to only be used a specific amount of times in"
4156
" a specific time frame. These cooldowns can be based either on a per-"
4157
"guild, per-channel, per-user, per-role or global basis. Denoted by the "
4158
"third argument of ``type`` which must be of enum type "
4159
":class:`.BucketType`."
4162
#: disnake.ext.commands.cooldown:9 of
4164
"If a cooldown is triggered, then :exc:`.CommandOnCooldown` is triggered "
4165
"in :func:`.on_command_error` and the local error handler."
4168
#: disnake.ext.commands.cooldown:12 of
4169
msgid "A command can only have a single cooldown."
4172
#: disnake.ext.commands.cooldown:14 of
4173
msgid "The number of times a command can be used before triggering a cooldown."
4176
#: disnake.ext.commands.cooldown:16 of
4177
msgid "The amount of seconds to wait for a cooldown when it's been triggered."
4180
#: disnake.ext.commands.cooldown:18 of
4181
msgid "The type of cooldown to have."
4184
#: disnake.ext.commands.max_concurrency:1 of
4186
"A decorator that adds a maximum concurrency to a :class:`.Command` or its"
4190
#: disnake.ext.commands.max_concurrency:3 of
4192
"This enables you to only allow a certain number of command invocations at"
4193
" the same time, for example if a command takes too long or if only one "
4194
"user can use it at a time. This differs from a cooldown in that there is "
4195
"no set waiting period or token bucket -- only a set number of people can "
4199
#: disnake.ext.commands.max_concurrency:10 of
4201
"The maximum number of invocations of this command that can be running at "
4205
#: disnake.ext.commands.max_concurrency:12 of
4207
"The bucket that this concurrency is based on, e.g. ``BucketType.guild`` "
4208
"would allow it to be used up to ``number`` times per guild."
4211
#: disnake.ext.commands.max_concurrency:15 of
4213
"Whether the command should wait for the queue to be over. If this is set "
4214
"to ``False`` then instead of waiting until the command can run again, the"
4215
" command raises :exc:`.MaxConcurrencyReached` to its error handler. If "
4216
"this is set to ``True`` then the command waits until it can be executed."
4219
#: disnake.ext.commands.before_invoke:3 of
4221
"This allows you to refer to one before invoke hook for several commands "
4222
"that do not have to be within the same cog."
4225
#: disnake.ext.commands.after_invoke:3 of
4227
"This allows you to refer to one after invoke hook for several commands "
4228
"that do not have to be within the same cog."
4231
#: disnake.ext.commands.guild_only:1 of
4233
"A :func:`.check` that indicates this command must only be used in a guild"
4234
" context only. Basically, no private messages are allowed when using the "
4238
#: disnake.ext.commands.guild_only:5 of
4240
"This check raises a special exception, :exc:`.NoPrivateMessage` that is "
4241
"inherited from :exc:`.CheckFailure`."
4244
#: disnake.ext.commands.dm_only:1 of
4246
"A :func:`.check` that indicates this command must only be used in a DM "
4247
"context. Only private messages are allowed when using the command."
4250
#: disnake.ext.commands.dm_only:5 of
4252
"This check raises a special exception, :exc:`.PrivateMessageOnly` that is"
4253
" inherited from :exc:`.CheckFailure`."
4256
#: disnake.ext.commands.is_owner:1 of
4258
"A :func:`.check` that checks if the person invoking this command is the "
4262
#: disnake.ext.commands.is_owner:4 of
4263
msgid "This is powered by :meth:`.Bot.is_owner`."
4266
#: disnake.ext.commands.is_owner:6 of
4268
"This check raises a special exception, :exc:`.NotOwner` that is derived "
4269
"from :exc:`.CheckFailure`."
4272
#: disnake.ext.commands.is_nsfw:1 of
4273
msgid "A :func:`.check` that checks if the channel is a NSFW channel."
4276
#: disnake.ext.commands.is_nsfw:3 of
4278
"This check raises a special exception, :exc:`.NSFWChannelRequired` that "
4279
"is derived from :exc:`.CheckFailure`."
4282
#: disnake.ext.commands.is_nsfw:8 of
4284
"Raise :exc:`.NSFWChannelRequired` instead of generic "
4285
":exc:`.CheckFailure`. DM channels will also now pass this check."
4288
#: ../../ext/commands/api.rst:191
4292
#: disnake.ext.commands.Context:1 of
4293
msgid "Represents the context in which a command is being invoked under."
4296
#: disnake.ext.commands.Context:3 of
4298
"This class contains a lot of meta data to help you understand more about "
4299
"the invocation context. This class is not created manually and is instead"
4300
" passed around to commands as the first parameter."
4303
#: disnake.ext.commands.Context:7 of
4304
msgid "This class implements the :class:`~disnake.abc.Messageable` ABC."
4307
#: disnake.ext.commands.Context:11 of
4308
msgid "The message that triggered the command being executed."
4311
#: disnake.ext.commands.Context:13 of
4313
msgid ":class:`.Message`"
4314
msgstr ":class:`.Guild`"
4316
#: disnake.ext.commands.Context:17 of
4317
msgid "The bot that contains the command being executed."
4320
#: disnake.ext.commands.Context:19 of
4322
msgid ":class:`.Bot`"
4323
msgstr ":class:`.AppInfo`"
4325
#: disnake.ext.commands.Context:23 of
4327
"The list of transformed arguments that were passed into the command. If "
4328
"this is accessed during the :func:`on_command_error` event then this list"
4329
" could be incomplete."
4332
#: disnake.ext.commands.BotMissingPermissions:10
4333
#: disnake.ext.commands.Context:27 disnake.ext.commands.MissingPermissions:10
4336
msgid ":class:`list`"
4337
msgstr ":class:`.Guild`"
4339
#: disnake.ext.commands.Context:31 of
4341
"A dictionary of transformed arguments that were passed into the command. "
4342
"Similar to :attr:`args`\\, if this is accessed in the "
4343
":func:`on_command_error` event then this dict could be incomplete."
4346
#: disnake.ext.commands.Context:39 of
4347
msgid "The prefix that was used to invoke the command."
4350
#: disnake.ext.commands.Context:45 of
4351
msgid "The command that is being invoked currently."
4354
#: disnake.ext.commands.Context:51 of
4356
"The command name that triggered this invocation. Useful for finding out "
4357
"which alias called the command."
4360
#: disnake.ext.commands.Context:58 of
4362
"The subcommand that was invoked. If no valid subcommand was invoked then "
4363
"this is equal to ``None``."
4366
#: disnake.ext.commands.Context:65 of
4368
"The string that was attempted to call a subcommand. This does not have to"
4369
" point to a valid registered subcommand and could just point to a "
4370
"nonsense string. If nothing was passed to attempt a call to a subcommand "
4371
"then this is set to ``None``."
4374
#: disnake.ext.commands.Context:74 of
4376
"A boolean that indicates if the command failed to be parsed, checked, or "
4380
#: disnake.ext.commands.Context.history:1 of
4382
"Returns an :class:`~disnake.AsyncIterator` that enables receiving the "
4383
"destination's message history."
4386
#: disnake.ext.commands.Context.history:3 of
4389
"You must have :attr:`~Permissions.read_message_history` permissions to "
4391
msgstr "これを行うには、関連付けられたGuildにて、 :attr:`~.Permissions.manage_channels` 権限が必要です。"
4393
#: disnake.ext.commands.Context.history:14 of
4394
msgid "Flattening into a list: ::"
4397
#: disnake.ext.commands.Context.history:21 of
4399
"The number of messages to retrieve. If ``None``, retrieves every message "
4400
"in the channel. Note, however, that this would make it a slow operation."
4403
#: disnake.ext.commands.Context.history:25 of
4405
"Retrieve messages before this date or message. If a date is provided it "
4406
"must be a timezone-naive datetime representing UTC time."
4409
#: disnake.ext.commands.Context.history:28 of
4411
"Retrieve messages after this date or message. If a date is provided it "
4412
"must be a timezone-naive datetime representing UTC time."
4415
#: disnake.ext.commands.Context.history:31 of
4417
"Retrieve messages around this date or message. If a date is provided it "
4418
"must be a timezone-naive datetime representing UTC time. When using this "
4419
"argument, the maximum limit is 101. Note that if the limit is an even "
4420
"number then this will return at most limit + 1 messages."
4423
#: disnake.ext.commands.Context.history:36 of
4425
"If set to ``True``, return messages in oldest->newest order. Defaults to "
4426
"``True`` if ``after`` is specified, otherwise ``False``."
4429
#: disnake.ext.commands.Context.history:40 of
4431
msgid "You do not have permissions to get channel message history."
4432
msgstr ":exc:`.Forbidden` -- 指定のチャンネルを取得する権限がない。"
4434
#: disnake.ext.commands.Context.history:41 of
4435
msgid "The request to get message history failed."
4438
#: disnake.ext.commands.Context.history:43 of
4439
msgid ":class:`~disnake.Message` -- The message with the message data parsed."
4442
#: disnake.ext.commands.Context.typing:1 of
4444
"Returns a context manager that allows you to type for an indefinite "
4448
#: disnake.ext.commands.Context.typing:3 of
4449
msgid "This is useful for denoting long computations in your bot."
4452
#: disnake.ext.commands.Context.typing:7 of
4454
"This is both a regular context manager and an async context manager. This"
4455
" means that both ``with`` and ``async with`` work with this."
4458
#: disnake.ext.commands.Context.typing:10 of
4459
msgid "Example Usage: ::"
4462
#: disnake.ext.commands.Context.invoke:3 of
4463
msgid "Calls a command with the arguments given."
4466
#: disnake.ext.commands.Context.invoke:5 of
4468
"This is useful if you want to just call the callback that a "
4469
":class:`.Command` holds internally."
4472
#: disnake.ext.commands.Context.invoke:10 of
4474
"This does not handle converters, checks, cooldowns, pre-invoke, or after-"
4475
"invoke hooks in any matter. It calls the internal callback directly as-if"
4476
" it was a regular function."
4479
#: disnake.ext.commands.Context.invoke:14 of
4481
"You must take care in passing the proper arguments when using this "
4485
#: disnake.ext.commands.Context.invoke:19 of
4486
msgid "The first parameter passed **must** be the command being invoked."
4489
#: disnake.ext.commands.Context.invoke:21 of
4490
msgid "The command that is going to be called."
4493
#: disnake.ext.commands.Context.invoke:23 of
4494
msgid "The arguments to to use."
4497
#: disnake.ext.commands.Context.invoke:24 of
4498
msgid "The keyword arguments to use."
4501
#: disnake.ext.commands.Context.invoke:26 of
4502
msgid "The command argument to invoke is missing."
4505
#: disnake.ext.commands.Context.reinvoke:3 of
4506
msgid "Calls the command again."
4509
#: disnake.ext.commands.Context.reinvoke:5 of
4511
"This is similar to :meth:`~.Context.invoke` except that it bypasses "
4512
"checks, cooldowns, and error handlers."
4515
#: disnake.ext.commands.Context.reinvoke:10 of
4517
"If you want to bypass :exc:`.UserInputError` derived exceptions, it is "
4518
"recommended to use the regular :meth:`~.Context.invoke` as it will work "
4519
"more naturally. After all, this will end up using the old arguments the "
4520
"user has used and will thus just fail again."
4523
#: disnake.ext.commands.Context.reinvoke:16 of
4524
msgid "Whether to call the before and after invoke hooks."
4527
#: disnake.ext.commands.Context.reinvoke:18 of
4529
"Whether to start the call chain from the very beginning or where we left "
4530
"off (i.e. the command that caused the error). The default is to start "
4534
#: disnake.ext.commands.Context.reinvoke:23 of
4535
msgid "The context to reinvoke is not valid."
4538
#: disnake.ext.commands.Context.valid:1 of
4539
msgid "Checks if the invocation context is valid to be invoked with."
4542
#: disnake.ext.commands.Context.cog:1 of
4544
"Returns the cog associated with this context's command. None if it does "
4548
#: disnake.ext.commands.Context.cog:3 of
4550
msgid ":class:`.Cog`"
4551
msgstr ":class:`.AppInfo`"
4553
#: disnake.ext.commands.Context.guild:1 of
4555
"Returns the guild associated with this context's command. None if not "
4559
#: disnake.ext.commands.Context.channel:1 of
4561
":class:`.TextChannel`: Returns the channel associated with this context's"
4562
" command. Shorthand for :attr:`.Message.channel`."
4565
#: disnake.ext.commands.Context.author:1 of
4567
"Union[:class:`~disnake.User`, :class:`.Member`]: Returns the author "
4568
"associated with this context's command. Shorthand for "
4569
":attr:`.Message.author`"
4572
#: disnake.ext.commands.Context.me:1 of
4574
"Union[:class:`.Member`, :class:`.ClientUser`]: Similar to "
4575
":attr:`.Guild.me` except it may return the :class:`.ClientUser` in "
4576
"private message contexts."
4579
#: disnake.ext.commands.Context.voice_client:1 of
4580
msgid "A shortcut to :attr:`.Guild.voice_client`\\, if applicable."
4583
#: disnake.ext.commands.Context.voice_client:3 of
4584
msgid "Optional[:class:`.VoiceProtocol`]"
4587
#: disnake.ext.commands.Context.send_help:3 of
4589
"Shows the help command for the specified entity if given. The entity can "
4590
"be a command or a cog."
4593
#: disnake.ext.commands.Context.send_help:6 of
4594
msgid "If no entity is given, then it'll show help for the entire bot."
4597
#: disnake.ext.commands.Context.send_help:9 of
4599
"If the entity is a string, then it looks up whether it's a :class:`Cog` "
4600
"or a :class:`Command`."
4603
#: disnake.ext.commands.Context.send_help:14 of
4605
"Due to the way this function works, instead of returning something "
4606
"similar to :meth:`~.commands.HelpCommand.command_not_found` this returns "
4607
":class:`None` on bad input or no help command."
4610
#: disnake.ext.commands.Context.send_help:18 of
4611
msgid "The entity to show help for."
4614
#: disnake.ext.commands.Context.send_help:21 of
4615
msgid "The result of the help command, if any."
4618
#: disnake.ext.commands.Context.fetch_message:3 of
4619
msgid "Retrieves a single :class:`~disnake.Message` from the destination."
4622
#: disnake.ext.commands.Context.fetch_message:5 of
4623
msgid "This can only be used by bot accounts."
4626
#: disnake.ext.commands.Context.fetch_message:7 of
4627
msgid "The message ID to look for."
4630
#: disnake.ext.commands.Context.fetch_message:10 of
4631
msgid "The specified message was not found."
4634
#: disnake.ext.commands.Context.fetch_message:11 of
4635
msgid "You do not have the permissions required to get a message."
4638
#: disnake.ext.commands.Context.fetch_message:12 of
4639
msgid "Retrieving the message failed."
4642
#: disnake.ext.commands.Context.fetch_message:14 of
4643
msgid "The message asked for."
4646
#: disnake.ext.commands.Context.fetch_message:15
4647
#: disnake.ext.commands.Context.send:49 of
4648
msgid ":class:`~disnake.Message`"
4651
#: disnake.ext.commands.Context.pins:3 of
4652
msgid "Retrieves all messages that are currently pinned in the channel."
4655
#: disnake.ext.commands.Context.pins:7 of
4657
"Due to a limitation with the Discord API, the :class:`.Message` objects "
4658
"returned by this method do not contain complete "
4659
":attr:`.Message.reactions` data."
4662
#: disnake.ext.commands.Context.pins:11 of
4663
msgid "Retrieving the pinned messages failed."
4666
#: disnake.ext.commands.Context.pins:13 of
4667
msgid "The messages that are currently pinned."
4670
#: disnake.ext.commands.Context.pins:14 of
4671
msgid "List[:class:`~disnake.Message`]"
4674
#: disnake.ext.commands.Context.send:3 of
4675
msgid "Sends a message to the destination with the content given."
4678
#: disnake.ext.commands.Context.send:5 of
4680
"The content must be a type that can convert to a string through "
4681
"``str(content)``. If the content is set to ``None`` (the default), then "
4682
"the ``embed`` parameter must be provided."
4685
#: disnake.ext.commands.Context.send:9 of
4687
"To upload a single file, the ``file`` parameter should be used with a "
4688
"single :class:`~disnake.File` object. To upload multiple files, the "
4689
"``files`` parameter should be used with a :class:`list` of "
4690
":class:`~disnake.File` objects. **Specifying both parameters will lead to"
4694
#: disnake.ext.commands.Context.send:14 of
4696
"If the ``embed`` parameter is provided, it must be of type "
4697
":class:`~disnake.Embed` and it must be a rich embed type."
4700
#: disnake.ext.commands.Context.send:17 of
4701
msgid "The content of the message to send."
4704
#: disnake.ext.commands.Context.send:19 of
4705
msgid "Indicates if the message should be sent using text-to-speech."
4708
#: disnake.ext.commands.Context.send:21 of
4709
msgid "The rich embed for the content."
4712
#: disnake.ext.commands.Context.send:23 of
4713
msgid "The file to upload."
4716
#: disnake.ext.commands.Context.send:25 of
4717
msgid "A list of files to upload. Must be a maximum of 10."
4720
#: disnake.ext.commands.Context.send:27 of
4722
"The nonce to use for sending this message. If the message was "
4723
"successfully sent, then the message will have a nonce with this value."
4726
#: disnake.ext.commands.Context.send:30 of
4728
"If provided, the number of seconds to wait in the background before "
4729
"deleting the message we just sent. If the deletion fails, then it is "
4733
#: disnake.ext.commands.Context.send:34 of
4735
"Controls the mentions being processed in this message. If this is passed,"
4736
" then the object is merged with :attr:`~disnake.Client.allowed_mentions`."
4737
" The merging behaviour only overrides attributes that have been "
4738
"explicitly passed to the object, otherwise it uses the attributes set in "
4739
":attr:`~disnake.Client.allowed_mentions`. If no object is passed at all "
4740
"then the defaults given by :attr:`~disnake.Client.allowed_mentions` are "
4741
"used instead. .. versionadded:: 1.4"
4744
#: disnake.ext.commands.Context.send:34 of
4746
"Controls the mentions being processed in this message. If this is passed,"
4747
" then the object is merged with :attr:`~disnake.Client.allowed_mentions`."
4748
" The merging behaviour only overrides attributes that have been "
4749
"explicitly passed to the object, otherwise it uses the attributes set in "
4750
":attr:`~disnake.Client.allowed_mentions`. If no object is passed at all "
4751
"then the defaults given by :attr:`~disnake.Client.allowed_mentions` are "
4755
#: disnake.ext.commands.Context.send:44 of
4756
msgid "Sending the message failed."
4759
#: disnake.ext.commands.Context.send:45 of
4760
msgid "You do not have the proper permissions to send the message."
4763
#: disnake.ext.commands.Context.send:46 of
4765
"The ``files`` list is not of the appropriate size or you specified "
4766
"both ``file`` and ``files``."
4769
#: disnake.ext.commands.Context.send:48 of
4770
msgid "The message that was sent."
4773
#: disnake.ext.commands.Context.trigger_typing:3 of
4774
msgid "Triggers a *typing* indicator to the destination."
4777
#: disnake.ext.commands.Context.trigger_typing:5 of
4779
"*Typing* indicator will go away after 10 seconds, or after a message is "
4783
#: ../../ext/commands/api.rst:207
4787
#: disnake.ext.commands.Converter:1 of
4789
"The base class of custom converters that require the :class:`.Context` to"
4790
" be passed to be useful."
4793
#: disnake.ext.commands.Converter:4 of
4795
"This allows you to implement converters that function similar to the "
4796
"special cased ``disnake`` classes."
4799
#: disnake.ext.commands.Converter:7 of
4801
"Classes that derive from this should override the "
4802
":meth:`~.Converter.convert` method to do its conversion logic. This "
4803
"method must be a :ref:`coroutine <coroutine>`."
4806
#: disnake.ext.commands.CategoryChannelConverter.convert:3
4807
#: disnake.ext.commands.ColourConverter.convert:3
4808
#: disnake.ext.commands.Converter.convert:3
4809
#: disnake.ext.commands.EmojiConverter.convert:3
4810
#: disnake.ext.commands.GameConverter.convert:3
4811
#: disnake.ext.commands.InviteConverter.convert:3
4812
#: disnake.ext.commands.MemberConverter.convert:3
4813
#: disnake.ext.commands.MessageConverter.convert:3
4814
#: disnake.ext.commands.PartialEmojiConverter.convert:3
4815
#: disnake.ext.commands.RoleConverter.convert:3
4816
#: disnake.ext.commands.TextChannelConverter.convert:3
4817
#: disnake.ext.commands.UserConverter.convert:3
4818
#: disnake.ext.commands.VoiceChannelConverter.convert:3
4819
#: disnake.ext.commands.clean_content.convert:3 of
4820
msgid "The method to override to do conversion logic."
4823
#: disnake.ext.commands.CategoryChannelConverter.convert:5
4824
#: disnake.ext.commands.ColourConverter.convert:5
4825
#: disnake.ext.commands.Converter.convert:5
4826
#: disnake.ext.commands.EmojiConverter.convert:5
4827
#: disnake.ext.commands.GameConverter.convert:5
4828
#: disnake.ext.commands.InviteConverter.convert:5
4829
#: disnake.ext.commands.MemberConverter.convert:5
4830
#: disnake.ext.commands.MessageConverter.convert:5
4831
#: disnake.ext.commands.PartialEmojiConverter.convert:5
4832
#: disnake.ext.commands.RoleConverter.convert:5
4833
#: disnake.ext.commands.TextChannelConverter.convert:5
4834
#: disnake.ext.commands.UserConverter.convert:5
4835
#: disnake.ext.commands.VoiceChannelConverter.convert:5
4836
#: disnake.ext.commands.clean_content.convert:5 of
4838
"If an error is found while converting, it is recommended to raise a "
4839
":exc:`.CommandError` derived exception as it will properly propagate to "
4840
"the error handlers."
4843
#: disnake.ext.commands.CategoryChannelConverter.convert:9
4844
#: disnake.ext.commands.ColourConverter.convert:9
4845
#: disnake.ext.commands.Converter.convert:9
4846
#: disnake.ext.commands.EmojiConverter.convert:9
4847
#: disnake.ext.commands.GameConverter.convert:9
4848
#: disnake.ext.commands.InviteConverter.convert:9
4849
#: disnake.ext.commands.MemberConverter.convert:9
4850
#: disnake.ext.commands.MessageConverter.convert:9
4851
#: disnake.ext.commands.PartialEmojiConverter.convert:9
4852
#: disnake.ext.commands.RoleConverter.convert:9
4853
#: disnake.ext.commands.TextChannelConverter.convert:9
4854
#: disnake.ext.commands.UserConverter.convert:9
4855
#: disnake.ext.commands.VoiceChannelConverter.convert:9
4856
#: disnake.ext.commands.clean_content.convert:9 of
4857
msgid "The invocation context that the argument is being used in."
4860
#: disnake.ext.commands.CategoryChannelConverter.convert:11
4861
#: disnake.ext.commands.ColourConverter.convert:11
4862
#: disnake.ext.commands.Converter.convert:11
4863
#: disnake.ext.commands.EmojiConverter.convert:11
4864
#: disnake.ext.commands.GameConverter.convert:11
4865
#: disnake.ext.commands.InviteConverter.convert:11
4866
#: disnake.ext.commands.MemberConverter.convert:11
4867
#: disnake.ext.commands.MessageConverter.convert:11
4868
#: disnake.ext.commands.PartialEmojiConverter.convert:11
4869
#: disnake.ext.commands.RoleConverter.convert:11
4870
#: disnake.ext.commands.TextChannelConverter.convert:11
4871
#: disnake.ext.commands.UserConverter.convert:11
4872
#: disnake.ext.commands.VoiceChannelConverter.convert:11
4873
#: disnake.ext.commands.clean_content.convert:11 of
4874
msgid "The argument that is being converted."
4877
#: disnake.ext.commands.CategoryChannelConverter.convert:14
4878
#: disnake.ext.commands.ColourConverter.convert:14
4879
#: disnake.ext.commands.Converter.convert:14
4880
#: disnake.ext.commands.EmojiConverter.convert:14
4881
#: disnake.ext.commands.GameConverter.convert:14
4882
#: disnake.ext.commands.InviteConverter.convert:14
4883
#: disnake.ext.commands.MemberConverter.convert:14
4884
#: disnake.ext.commands.MessageConverter.convert:14
4885
#: disnake.ext.commands.PartialEmojiConverter.convert:14
4886
#: disnake.ext.commands.RoleConverter.convert:14
4887
#: disnake.ext.commands.TextChannelConverter.convert:14
4888
#: disnake.ext.commands.UserConverter.convert:14
4889
#: disnake.ext.commands.VoiceChannelConverter.convert:14
4890
#: disnake.ext.commands.clean_content.convert:14 of
4891
msgid "A generic exception occurred when converting the argument."
4894
#: disnake.ext.commands.CategoryChannelConverter.convert:15
4895
#: disnake.ext.commands.ColourConverter.convert:15
4896
#: disnake.ext.commands.Converter.convert:15
4897
#: disnake.ext.commands.EmojiConverter.convert:15
4898
#: disnake.ext.commands.GameConverter.convert:15
4899
#: disnake.ext.commands.InviteConverter.convert:15
4900
#: disnake.ext.commands.MemberConverter.convert:15
4901
#: disnake.ext.commands.MessageConverter.convert:15
4902
#: disnake.ext.commands.PartialEmojiConverter.convert:15
4903
#: disnake.ext.commands.RoleConverter.convert:15
4904
#: disnake.ext.commands.TextChannelConverter.convert:15
4905
#: disnake.ext.commands.UserConverter.convert:15
4906
#: disnake.ext.commands.VoiceChannelConverter.convert:15
4907
#: disnake.ext.commands.clean_content.convert:15 of
4908
msgid "The converter failed to convert the argument."
4911
#: disnake.ext.commands.MemberConverter:1 of
4912
msgid "Converts to a :class:`~disnake.Member`."
4915
#: disnake.ext.commands.CategoryChannelConverter:3
4916
#: disnake.ext.commands.MemberConverter:3 disnake.ext.commands.RoleConverter:3
4917
#: disnake.ext.commands.TextChannelConverter:3
4918
#: disnake.ext.commands.VoiceChannelConverter:3 of
4920
"All lookups are via the local guild. If in a DM context, then the lookup "
4921
"is done by the global cache."
4924
#: disnake.ext.commands.CategoryChannelConverter:6
4925
#: disnake.ext.commands.EmojiConverter:6 disnake.ext.commands.MemberConverter:6
4926
#: disnake.ext.commands.MessageConverter:5 disnake.ext.commands.RoleConverter:6
4927
#: disnake.ext.commands.TextChannelConverter:6
4928
#: disnake.ext.commands.UserConverter:5
4929
#: disnake.ext.commands.VoiceChannelConverter:6 of
4930
msgid "The lookup strategy is as follows (in order):"
4933
#: disnake.ext.commands.CategoryChannelConverter:8
4934
#: disnake.ext.commands.EmojiConverter:8 disnake.ext.commands.MemberConverter:8
4935
#: disnake.ext.commands.RoleConverter:8
4936
#: disnake.ext.commands.TextChannelConverter:8
4937
#: disnake.ext.commands.UserConverter:7
4938
#: disnake.ext.commands.VoiceChannelConverter:8 of
4939
msgid "Lookup by ID."
4942
#: disnake.ext.commands.CategoryChannelConverter:9
4943
#: disnake.ext.commands.MemberConverter:9 disnake.ext.commands.RoleConverter:9
4944
#: disnake.ext.commands.TextChannelConverter:9
4945
#: disnake.ext.commands.UserConverter:8
4946
#: disnake.ext.commands.VoiceChannelConverter:9 of
4947
msgid "Lookup by mention."
4950
#: disnake.ext.commands.MemberConverter:10 disnake.ext.commands.UserConverter:9
4952
msgid "Lookup by name#discrim"
4955
#: disnake.ext.commands.CategoryChannelConverter:10
4956
#: disnake.ext.commands.EmojiConverter:10
4957
#: disnake.ext.commands.MemberConverter:11
4958
#: disnake.ext.commands.RoleConverter:10
4959
#: disnake.ext.commands.TextChannelConverter:10
4960
#: disnake.ext.commands.UserConverter:10
4961
#: disnake.ext.commands.VoiceChannelConverter:10 of
4962
msgid "Lookup by name"
4965
#: disnake.ext.commands.MemberConverter:12 of
4966
msgid "Lookup by nickname"
4969
#: disnake.ext.commands.MemberConverter:14 of
4970
msgid "Raise :exc:`.MemberNotFound` instead of generic :exc:`.BadArgument`"
4973
#: disnake.ext.commands.MemberConverter:17 of
4975
"This converter now lazily fetches members from the gateway and HTTP APIs,"
4976
" optionally caching the result if :attr:`.MemberCacheFlags.joined` is "
4980
#: disnake.ext.commands.UserConverter:1 of
4981
msgid "Converts to a :class:`~disnake.User`."
4984
#: disnake.ext.commands.UserConverter:3 of
4985
msgid "All lookups are via the global user cache."
4988
#: disnake.ext.commands.UserConverter:12 of
4989
msgid "Raise :exc:`.UserNotFound` instead of generic :exc:`.BadArgument`"
4992
#: disnake.ext.commands.MessageConverter:1 of
4993
msgid "Converts to a :class:`disnake.Message`."
4996
#: disnake.ext.commands.MessageConverter:7 of
4998
"Lookup by \"{channel ID}-{message ID}\" (retrieved by shift-clicking on "
5002
#: disnake.ext.commands.MessageConverter:8 of
5003
msgid "Lookup by message ID (the message **must** be in the context channel)"
5006
#: disnake.ext.commands.MessageConverter:9 of
5007
msgid "Lookup by message URL"
5010
#: disnake.ext.commands.MessageConverter:11 of
5012
"Raise :exc:`.ChannelNotFound`, `MessageNotFound` or `ChannelNotReadable` "
5013
"instead of generic :exc:`.BadArgument`"
5016
#: disnake.ext.commands.TextChannelConverter:1 of
5017
msgid "Converts to a :class:`~disnake.TextChannel`."
5020
#: disnake.ext.commands.CategoryChannelConverter:12
5021
#: disnake.ext.commands.TextChannelConverter:12
5022
#: disnake.ext.commands.VoiceChannelConverter:12 of
5023
msgid "Raise :exc:`.ChannelNotFound` instead of generic :exc:`.BadArgument`"
5026
#: disnake.ext.commands.VoiceChannelConverter:1 of
5027
msgid "Converts to a :class:`~disnake.VoiceChannel`."
5030
#: disnake.ext.commands.CategoryChannelConverter:1 of
5031
msgid "Converts to a :class:`~disnake.CategoryChannel`."
5034
#: disnake.ext.commands.InviteConverter:1 of
5035
msgid "Converts to a :class:`~disnake.Invite`."
5038
#: disnake.ext.commands.InviteConverter:3 of
5039
msgid "This is done via an HTTP request using :meth:`.Bot.fetch_invite`."
5042
#: disnake.ext.commands.InviteConverter:5 of
5043
msgid "Raise :exc:`.BadInviteArgument` instead of generic :exc:`.BadArgument`"
5046
#: disnake.ext.commands.RoleConverter:1 of
5047
msgid "Converts to a :class:`~disnake.Role`."
5050
#: disnake.ext.commands.RoleConverter:12 of
5051
msgid "Raise :exc:`.RoleNotFound` instead of generic :exc:`.BadArgument`"
5054
#: disnake.ext.commands.GameConverter:1 of
5055
msgid "Converts to :class:`~disnake.Game`."
5058
#: disnake.ext.commands.ColourConverter:1 of
5059
msgid "Converts to a :class:`~disnake.Colour`."
5062
#: disnake.ext.commands.ColourConverter:3 of
5063
msgid "Add an alias named ColorConverter"
5066
#: disnake.ext.commands.ColourConverter:6 of
5067
msgid "The following formats are accepted:"
5070
#: disnake.ext.commands.ColourConverter:8 of
5074
#: disnake.ext.commands.ColourConverter:9 of
5078
#: disnake.ext.commands.ColourConverter:10 of
5082
#: disnake.ext.commands.ColourConverter:11 of
5083
msgid "Any of the ``classmethod`` in :class:`Colour`"
5086
#: disnake.ext.commands.ColourConverter:13 of
5087
msgid "The ``_`` in the name can be optionally replaced with spaces."
5090
#: disnake.ext.commands.ColourConverter:15 of
5091
msgid "Raise :exc:`.BadColourArgument` instead of generic :exc:`.BadArgument`"
5094
#: disnake.ext.commands.EmojiConverter:1 of
5095
msgid "Converts to a :class:`~disnake.Emoji`."
5098
#: disnake.ext.commands.EmojiConverter:3 of
5100
"All lookups are done for the local guild first, if available. If that "
5101
"lookup fails, then it checks the client's global cache."
5104
#: disnake.ext.commands.EmojiConverter:9 of
5105
msgid "Lookup by extracting ID from the emoji."
5108
#: disnake.ext.commands.EmojiConverter:12 of
5109
msgid "Raise :exc:`.EmojiNotFound` instead of generic :exc:`.BadArgument`"
5112
#: disnake.ext.commands.PartialEmojiConverter:1 of
5113
msgid "Converts to a :class:`~disnake.PartialEmoji`."
5116
#: disnake.ext.commands.PartialEmojiConverter:3 of
5117
msgid "This is done by extracting the animated flag, name and ID from the emoji."
5120
#: disnake.ext.commands.PartialEmojiConverter:5 of
5122
"Raise :exc:`.PartialEmojiConversionFailure` instead of generic "
5123
":exc:`.BadArgument`"
5126
#: disnake.ext.commands.clean_content:1 of
5127
msgid "Converts the argument to mention scrubbed version of said content."
5130
#: disnake.ext.commands.clean_content:4 of
5131
msgid "This behaves similarly to :attr:`~disnake.Message.clean_content`."
5134
#: disnake.ext.commands.clean_content:8 of
5135
msgid "Whether to clean channel mentions."
5138
#: disnake.ext.commands.clean_content:14 of
5139
msgid "Whether to use nicknames when transforming mentions."
5142
#: disnake.ext.commands.clean_content:20 of
5143
msgid "Whether to also escape special markdown characters."
5146
#: ../../ext/commands/api.rst:253
5148
"A special converter that greedily consumes arguments until it can't. As a"
5149
" consequence of this behaviour, most input errors are silently discarded,"
5150
" since it is used as an indicator of when to stop parsing."
5153
#: ../../ext/commands/api.rst:257
5155
"When a parser error is met the greedy converter stops converting, undoes "
5156
"the internal string parsing routine, and continues parsing regularly."
5159
#: ../../ext/commands/api.rst:260
5160
msgid "For example, in the following code:"
5163
#: ../../ext/commands/api.rst:268
5165
"An invocation of ``[p]test 1 2 3 4 5 6 hello`` would pass ``numbers`` "
5166
"with ``[1, 2, 3, 4, 5, 6]`` and ``reason`` with ``hello``\\."
5169
#: ../../ext/commands/api.rst:271
5170
msgid "For more information, check :ref:`ext_commands_special_converters`."
5173
#: ../../ext/commands/api.rst:276
5177
#: disnake.ext.commands.CommandError:1 of
5178
msgid "The base exception type for all command related errors."
5179
msgstr "コマンドに関連するエラーすべての基礎となる例外。"
5181
#: disnake.ext.commands.CommandError:3 of
5182
msgid "This inherits from :exc:`disnake.DiscordException`."
5183
msgstr "これは :exc:`disnake.DiscordException` を継承しています。"
5185
#: disnake.ext.commands.CommandError:5 of
5187
"This exception and exceptions inherited from it are handled in a special "
5188
"way as they are caught and passed into a special event from "
5189
":class:`.Bot`\\, :func:`on_command_error`."
5192
#: disnake.ext.commands.ConversionError:1 of
5193
msgid "Exception raised when a Converter class raises non-CommandError."
5194
msgstr "Converter クラスで、CommandErrorではない例外が発生した際に、発生する例外。"
5196
#: disnake.ext.commands.CommandNotFound:7
5197
#: disnake.ext.commands.ConversionError:3
5198
#: disnake.ext.commands.MaxConcurrencyReached:3
5199
#: disnake.ext.commands.UserInputError:4 of
5200
msgid "This inherits from :exc:`CommandError`."
5203
#: disnake.ext.commands.ConversionError:7 of
5204
msgid "The converter that failed."
5207
#: disnake.ext.commands.ConversionError:9 of
5208
msgid ":class:`disnake.ext.commands.Converter`"
5211
#: disnake.ext.commands.CommandInvokeError:7
5212
#: disnake.ext.commands.ConversionError:13
5213
#: disnake.ext.commands.ExtensionFailed:13 of
5215
"The original exception that was raised. You can also get this via the "
5216
"``__cause__`` attribute."
5217
msgstr "Converter内で発生した元の例外。 ``__cause__`` からも取得できます。"
5219
#: disnake.ext.commands.CommandInvokeError:10
5220
#: disnake.ext.commands.ConversionError:16
5221
#: disnake.ext.commands.ExtensionFailed:16 of
5222
msgid ":exc:`Exception`"
5225
#: disnake.ext.commands.MissingRequiredArgument:1 of
5227
"Exception raised when parsing a command and a parameter that is required "
5228
"is not encountered."
5229
msgstr "コマンドのパラメータ解析の際、要求されたパラメータに値が渡されていない場合に発生します。"
5231
#: disnake.ext.commands.BadArgument:4 disnake.ext.commands.BadUnionArgument:4
5232
#: disnake.ext.commands.MissingRequiredArgument:4
5233
#: disnake.ext.commands.TooManyArguments:4 of
5234
msgid "This inherits from :exc:`UserInputError`"
5237
#: disnake.ext.commands.MissingRequiredArgument:8 of
5238
msgid "The argument that is missing."
5241
#: disnake.ext.commands.BadUnionArgument:10
5242
#: disnake.ext.commands.MissingRequiredArgument:10 of
5243
msgid ":class:`inspect.Parameter`"
5246
#: disnake.ext.commands.ArgumentParsingError:1 of
5247
msgid "An exception raised when the parser fails to parse a user's input."
5250
#: disnake.ext.commands.ArgumentParsingError:3 of
5251
msgid "This inherits from :exc:`UserInputError`."
5254
#: disnake.ext.commands.ArgumentParsingError:5 of
5256
"There are child classes that implement more granular parsing errors for "
5260
#: disnake.ext.commands.UnexpectedQuoteError:1 of
5262
"An exception raised when the parser encounters a quote mark inside a non-"
5266
#: disnake.ext.commands.ExpectedClosingQuoteError:3
5267
#: disnake.ext.commands.InvalidEndOfQuotedStringError:4
5268
#: disnake.ext.commands.UnexpectedQuoteError:3 of
5269
msgid "This inherits from :exc:`ArgumentParsingError`."
5272
#: disnake.ext.commands.UnexpectedQuoteError:7 of
5273
msgid "The quote mark that was found inside the non-quoted string."
5276
#: disnake.ext.commands.InvalidEndOfQuotedStringError:1 of
5278
"An exception raised when a space is expected after the closing quote in a"
5279
" string but a different character is found."
5282
#: disnake.ext.commands.InvalidEndOfQuotedStringError:8 of
5283
msgid "The character found instead of the expected string."
5286
#: disnake.ext.commands.ExpectedClosingQuoteError:1 of
5287
msgid "An exception raised when a quote character is expected but not found."
5290
#: disnake.ext.commands.ExpectedClosingQuoteError:7 of
5291
msgid "The quote character expected."
5294
#: disnake.ext.commands.BadArgument:1 of
5296
"Exception raised when a parsing or conversion failure is encountered on "
5297
"an argument to pass into a command."
5298
msgstr "コマンドの引数に渡された値の解析、または変換に失敗した場合に発生する例外。"
5300
#: disnake.ext.commands.BadUnionArgument:1 of
5302
"Exception raised when a :data:`typing.Union` converter fails for all its "
5306
#: disnake.ext.commands.BadUnionArgument:8 of
5307
msgid "The parameter that failed being converted."
5310
#: disnake.ext.commands.BadUnionArgument:14 of
5311
msgid "A tuple of converters attempted in conversion, in order of failure."
5314
#: disnake.ext.commands.BadUnionArgument:16 of
5315
msgid "Tuple[Type, ...]"
5318
#: disnake.ext.commands.BadUnionArgument:20 of
5319
msgid "A list of errors that were caught from failing the conversion."
5322
#: disnake.ext.commands.BadUnionArgument:22 of
5323
msgid "List[:class:`CommandError`]"
5326
#: disnake.ext.commands.PrivateMessageOnly:1 of
5328
"Exception raised when an operation does not work outside of private "
5332
#: disnake.ext.commands.BotMissingAnyRole:4
5333
#: disnake.ext.commands.BotMissingPermissions:4
5334
#: disnake.ext.commands.BotMissingRole:3 disnake.ext.commands.MissingAnyRole:4
5335
#: disnake.ext.commands.MissingPermissions:4 disnake.ext.commands.MissingRole:3
5336
#: disnake.ext.commands.NoPrivateMessage:4 disnake.ext.commands.NotOwner:3
5337
#: disnake.ext.commands.PrivateMessageOnly:4 of
5338
msgid "This inherits from :exc:`CheckFailure`"
5341
#: disnake.ext.commands.NoPrivateMessage:1 of
5343
"Exception raised when an operation does not work in private message "
5345
msgstr "プライベートメッセージコンテキストで、要求された処理が実行できない場合に発生する例外。"
5347
#: disnake.ext.commands.CheckFailure:1 of
5349
"Exception raised when the predicates in :attr:`.Command.checks` have "
5353
#: disnake.ext.commands.CheckFailure:3
5354
#: disnake.ext.commands.CommandInvokeError:3
5355
#: disnake.ext.commands.CommandOnCooldown:3
5356
#: disnake.ext.commands.DisabledCommand:3 of
5357
msgid "This inherits from :exc:`CommandError`"
5360
#: disnake.ext.commands.CheckAnyFailure:1 of
5361
msgid "Exception raised when all predicates in :func:`check_any` fail."
5364
#: disnake.ext.commands.CheckAnyFailure:3
5365
#: disnake.ext.commands.NSFWChannelRequired:3 of
5366
msgid "This inherits from :exc:`CheckFailure`."
5369
#: disnake.ext.commands.CheckAnyFailure:9 of
5370
msgid "A list of errors that were caught during execution."
5373
#: disnake.ext.commands.CheckAnyFailure:11 of
5374
msgid "List[:class:`CheckFailure`]"
5377
#: disnake.ext.commands.CheckAnyFailure:15 of
5378
msgid "A list of check predicates that failed."
5381
#: disnake.ext.commands.CheckAnyFailure:17 of
5382
msgid "List[Callable[[:class:`Context`], :class:`bool`]]"
5385
#: disnake.ext.commands.CommandNotFound:1 of
5387
"Exception raised when a command is attempted to be invoked but no command"
5388
" under that name is found."
5389
msgstr "コマンドを呼び出す際に、指定された名前を持つコマンドが存在していなかった場合に発生する例外。"
5391
#: disnake.ext.commands.CommandNotFound:4 of
5393
"This is not raised for invalid subcommands, rather just the initial main "
5394
"command that is attempted to be invoked."
5397
#: disnake.ext.commands.DisabledCommand:1 of
5398
msgid "Exception raised when the command being invoked is disabled."
5399
msgstr "呼び出そうとしたコマンドが無効化されていた際に発生する例外。"
5401
#: disnake.ext.commands.CommandInvokeError:1 of
5402
msgid "Exception raised when the command being invoked raised an exception."
5405
#: disnake.ext.commands.TooManyArguments:1 of
5407
"Exception raised when the command was passed too many arguments and its "
5408
":attr:`.Command.ignore_extra` attribute was not set to ``True``."
5411
#: disnake.ext.commands.UserInputError:1 of
5413
"The base exception type for errors that involve errors regarding user "
5417
#: disnake.ext.commands.CommandOnCooldown:1 of
5418
msgid "Exception raised when the command being invoked is on cooldown."
5421
#: disnake.ext.commands.CommandOnCooldown:7 of
5423
"A class with attributes ``rate``, ``per``, and ``type`` similar to the "
5424
":func:`.cooldown` decorator."
5427
#: disnake.ext.commands.CommandOnCooldown:10 of
5431
#: disnake.ext.commands.CommandOnCooldown:14 of
5432
msgid "The amount of seconds to wait before you can retry again."
5435
#: disnake.ext.commands.MaxConcurrencyReached:1 of
5438
"Exception raised when the command being invoked has reached its maximum "
5440
msgstr "呼び出そうとしたコマンドが無効化されていた際に発生する例外。"
5442
#: disnake.ext.commands.MaxConcurrencyReached:7 of
5443
msgid "The maximum number of concurrent invokers allowed."
5446
#: disnake.ext.commands.MaxConcurrencyReached:13 of
5447
msgid "The bucket type passed to the :func:`.max_concurrency` decorator."
5450
#: disnake.ext.commands.MaxConcurrencyReached:15 of
5452
msgid ":class:`.BucketType`"
5453
msgstr ":class:`.Guild`"
5455
#: disnake.ext.commands.NotOwner:1 of
5456
msgid "Exception raised when the message author is not the owner of the bot."
5459
#: disnake.ext.commands.MessageNotFound:1 of
5460
msgid "Exception raised when the message provided was not found in the channel."
5463
#: disnake.ext.commands.BadBoolArgument:3
5464
#: disnake.ext.commands.ChannelNotFound:3
5465
#: disnake.ext.commands.ChannelNotReadable:4
5466
#: disnake.ext.commands.EmojiNotFound:3 disnake.ext.commands.MemberNotFound:4
5467
#: disnake.ext.commands.MessageNotFound:3
5468
#: disnake.ext.commands.PartialEmojiConversionFailure:4
5469
#: disnake.ext.commands.RoleNotFound:3 disnake.ext.commands.UserNotFound:4 of
5471
msgid "This inherits from :exc:`BadArgument`"
5472
msgstr "これは :exc:`disnake.DiscordException` を継承しています。"
5474
#: disnake.ext.commands.MessageNotFound:9 of
5475
msgid "The message supplied by the caller that was not found"
5478
#: disnake.ext.commands.MemberNotFound:1 of
5480
"Exception raised when the member provided was not found in the bot's "
5484
#: disnake.ext.commands.MemberNotFound:10 of
5485
msgid "The member supplied by the caller that was not found"
5488
#: disnake.ext.commands.UserNotFound:1 of
5489
msgid "Exception raised when the user provided was not found in the bot's cache."
5492
#: disnake.ext.commands.UserNotFound:10 of
5493
msgid "The user supplied by the caller that was not found"
5496
#: disnake.ext.commands.ChannelNotFound:1 of
5498
msgid "Exception raised when the bot can not find the channel."
5499
msgstr "呼び出そうとしたコマンドが無効化されていた際に発生する例外。"
5501
#: disnake.ext.commands.ChannelNotFound:9 of
5502
msgid "The channel supplied by the caller that was not found"
5505
#: disnake.ext.commands.ChannelNotReadable:1 of
5508
"Exception raised when the bot does not have permission to read messages "
5510
msgstr ":exc:`.Forbidden` -- 指定のチャンネルを取得する権限がない。"
5512
#: disnake.ext.commands.ChannelNotReadable:10 of
5513
msgid "The channel supplied by the caller that was not readable"
5516
#: disnake.ext.commands.ChannelNotReadable:12 of
5518
msgid ":class:`.abc.GuildChannel`"
5519
msgstr ":class:`.Guild`"
5521
#: disnake.ext.commands.RoleNotFound:1 of
5523
msgid "Exception raised when the bot can not find the role."
5524
msgstr "呼び出そうとしたコマンドが無効化されていた際に発生する例外。"
5526
#: disnake.ext.commands.RoleNotFound:9 of
5527
msgid "The role supplied by the caller that was not found"
5530
#: disnake.ext.commands.EmojiNotFound:1 of
5531
msgid "Exception raised when the bot can not find the emoji."
5534
#: disnake.ext.commands.EmojiNotFound:9 of
5535
msgid "The emoji supplied by the caller that was not found"
5538
#: disnake.ext.commands.PartialEmojiConversionFailure:1 of
5540
"Exception raised when the emoji provided does not match the correct "
5544
#: disnake.ext.commands.PartialEmojiConversionFailure:10 of
5545
msgid "The emoji supplied by the caller that did not match the regex"
5548
#: disnake.ext.commands.BadBoolArgument:1 of
5549
msgid "Exception raised when a boolean argument was not convertable."
5552
#: disnake.ext.commands.BadBoolArgument:9 of
5554
"The boolean argument supplied by the caller that is not in the predefined"
5558
#: disnake.ext.commands.MissingPermissions:1 of
5560
"Exception raised when the command invoker lacks permissions to run a "
5564
#: disnake.ext.commands.BotMissingPermissions:8
5565
#: disnake.ext.commands.MissingPermissions:8 of
5566
msgid "The required permissions that are missing."
5569
#: disnake.ext.commands.BotMissingPermissions:1 of
5570
msgid "Exception raised when the bot's member lacks permissions to run a command."
5573
#: disnake.ext.commands.MissingRole:1 of
5574
msgid "Exception raised when the command invoker lacks a role to run a command."
5577
#: disnake.ext.commands.BotMissingRole:9 disnake.ext.commands.MissingRole:9 of
5579
"The required role that is missing. This is the parameter passed to "
5580
":func:`~.commands.has_role`."
5583
#: disnake.ext.commands.BotMissingRole:12 disnake.ext.commands.MissingRole:12
5585
msgid "Union[:class:`str`, :class:`int`]"
5588
#: disnake.ext.commands.BotMissingRole:1 of
5589
msgid "Exception raised when the bot's member lacks a role to run a command."
5592
#: disnake.ext.commands.MissingAnyRole:1 of
5594
"Exception raised when the command invoker lacks any of the roles "
5595
"specified to run a command."
5598
#: disnake.ext.commands.MissingAnyRole:10 of
5600
"The roles that the invoker is missing. These are the parameters passed to"
5601
" :func:`~.commands.has_any_role`."
5604
#: disnake.ext.commands.BotMissingAnyRole:13
5605
#: disnake.ext.commands.MissingAnyRole:13 of
5606
msgid "List[Union[:class:`str`, :class:`int`]]"
5609
#: disnake.ext.commands.BotMissingAnyRole:1 of
5611
"Exception raised when the bot's member lacks any of the roles specified "
5615
#: disnake.ext.commands.BotMissingAnyRole:10 of
5617
"The roles that the bot's member is missing. These are the parameters "
5618
"passed to :func:`~.commands.has_any_role`."
5621
#: disnake.ext.commands.NSFWChannelRequired:1 of
5622
msgid "Exception raised when a channel does not have the required NSFW setting."
5625
#: disnake.ext.commands.NSFWChannelRequired:7 of
5626
msgid "The channel that does not have NSFW enabled."
5629
#: disnake.ext.commands.ExtensionError:1 of
5630
msgid "Base exception for extension related errors."
5633
#: disnake.ext.commands.ExtensionError:3 of
5634
msgid "This inherits from :exc:`~disnake.DiscordException`."
5637
#: disnake.ext.commands.ExtensionError:7 of
5638
msgid "The extension that had an error."
5641
#: disnake.ext.commands.ExtensionAlreadyLoaded:1 of
5642
msgid "An exception raised when an extension has already been loaded."
5645
#: disnake.ext.commands.ExtensionAlreadyLoaded:3
5646
#: disnake.ext.commands.ExtensionFailed:3
5647
#: disnake.ext.commands.ExtensionNotFound:3
5648
#: disnake.ext.commands.ExtensionNotLoaded:3
5649
#: disnake.ext.commands.NoEntryPointError:3 of
5650
msgid "This inherits from :exc:`ExtensionError`"
5653
#: disnake.ext.commands.ExtensionNotLoaded:1 of
5654
msgid "An exception raised when an extension was not loaded."
5657
#: disnake.ext.commands.NoEntryPointError:1 of
5659
"An exception raised when an extension does not have a ``setup`` entry "
5663
#: disnake.ext.commands.ExtensionFailed:1 of
5665
"An exception raised when an extension failed to load during execution of "
5666
"the module or ``setup`` entry point."
5669
#: disnake.ext.commands.ExtensionFailed:7
5670
#: disnake.ext.commands.ExtensionNotFound:10 of
5671
msgid "The extension that had the error."
5674
#: disnake.ext.commands.ExtensionNotFound:1 of
5676
msgid "An exception raised when an extension is not found."
5677
msgstr "プライベートメッセージコンテキストで、要求された処理が実行できない場合に発生する例外。"
5679
#: disnake.ext.commands.ExtensionNotFound:5 of
5680
msgid "Made the ``original`` attribute always None."
5683
#: disnake.ext.commands.ExtensionNotFound:16 of
5684
msgid "Always ``None`` for backwards compatibility."
5687
#: disnake.ext.commands.ExtensionNotFound:18 of
5688
msgid ":class:`NoneType`"
5691
#: disnake.ext.commands.CommandRegistrationError:1 of
5693
"An exception raised when the command can't be added because the name is "
5694
"already taken by a different command."
5697
#: disnake.ext.commands.CommandRegistrationError:4 of
5699
msgid "This inherits from :exc:`disnake.ClientException`"
5700
msgstr "これは :exc:`disnake.DiscordException` を継承しています。"
5702
#: disnake.ext.commands.CommandRegistrationError:10 of
5703
msgid "The command name that had the error."
5706
#: disnake.ext.commands.CommandRegistrationError:16 of
5707
msgid "Whether the name that conflicts is an alias of the command we try to add."
5710
#: ../../ext/commands/api.rst:412
5711
msgid "Exception Hierarchy"
5714
#: ../../ext/commands/api.rst:460
5715
msgid ":exc:`~.DiscordException`"
5718
#: ../../ext/commands/api.rst:454
5719
msgid ":exc:`~.commands.CommandError`"
5722
#: ../../ext/commands/api.rst:418
5723
msgid ":exc:`~.commands.ConversionError`"
5726
#: ../../ext/commands/api.rst:437
5727
msgid ":exc:`~.commands.UserInputError`"
5730
#: ../../ext/commands/api.rst:420
5731
msgid ":exc:`~.commands.MissingRequiredArgument`"
5734
#: ../../ext/commands/api.rst:421
5735
msgid ":exc:`~.commands.TooManyArguments`"
5738
#: ../../ext/commands/api.rst:432
5739
msgid ":exc:`~.commands.BadArgument`"
5742
#: ../../ext/commands/api.rst:423
5743
msgid ":exc:`~.commands.MessageNotFound`"
5746
#: ../../ext/commands/api.rst:424
5747
msgid ":exc:`~.commands.MemberNotFound`"
5750
#: ../../ext/commands/api.rst:425
5751
msgid ":exc:`~.commands.UserNotFound`"
5754
#: ../../ext/commands/api.rst:426
5755
msgid ":exc:`~.commands.ChannelNotFound`"
5758
#: ../../ext/commands/api.rst:427
5759
msgid ":exc:`~.commands.ChannelNotReadable`"
5762
#: ../../ext/commands/api.rst:428
5763
msgid ":exc:`~.commands.BadColourArgument`"
5766
#: ../../ext/commands/api.rst:429
5767
msgid ":exc:`~.commands.RoleNotFound`"
5770
#: ../../ext/commands/api.rst:430
5771
msgid ":exc:`~.commands.BadInviteArgument`"
5774
#: ../../ext/commands/api.rst:431
5775
msgid ":exc:`~.commands.EmojiNotFound`"
5778
#: ../../ext/commands/api.rst:432
5779
msgid ":exc:`~.commands.PartialEmojiConversionFailure`"
5782
#: ../../ext/commands/api.rst:433
5783
msgid ":exc:`~.commands.BadBoolArgument`"
5786
#: ../../ext/commands/api.rst:434
5787
msgid ":exc:`~.commands.BadUnionArgument`"
5790
#: ../../ext/commands/api.rst:437
5791
msgid ":exc:`~.commands.ArgumentParsingError`"
5794
#: ../../ext/commands/api.rst:436
5795
msgid ":exc:`~.commands.UnexpectedQuoteError`"
5798
#: ../../ext/commands/api.rst:437
5799
msgid ":exc:`~.commands.InvalidEndOfQuotedStringError`"
5802
#: ../../ext/commands/api.rst:438
5803
msgid ":exc:`~.commands.ExpectedClosingQuoteError`"
5806
#: ../../ext/commands/api.rst:439
5807
msgid ":exc:`~.commands.CommandNotFound`"
5810
#: ../../ext/commands/api.rst:450
5811
msgid ":exc:`~.commands.CheckFailure`"
5814
#: ../../ext/commands/api.rst:441
5815
msgid ":exc:`~.commands.CheckAnyFailure`"
5818
#: ../../ext/commands/api.rst:442
5819
msgid ":exc:`~.commands.PrivateMessageOnly`"
5822
#: ../../ext/commands/api.rst:443
5823
msgid ":exc:`~.commands.NoPrivateMessage`"
5826
#: ../../ext/commands/api.rst:444
5827
msgid ":exc:`~.commands.NotOwner`"
5830
#: ../../ext/commands/api.rst:445
5831
msgid ":exc:`~.commands.MissingPermissions`"
5834
#: ../../ext/commands/api.rst:446
5835
msgid ":exc:`~.commands.BotMissingPermissions`"
5838
#: ../../ext/commands/api.rst:447
5839
msgid ":exc:`~.commands.MissingRole`"
5842
#: ../../ext/commands/api.rst:448
5843
msgid ":exc:`~.commands.BotMissingRole`"
5846
#: ../../ext/commands/api.rst:449
5847
msgid ":exc:`~.commands.MissingAnyRole`"
5850
#: ../../ext/commands/api.rst:450
5851
msgid ":exc:`~.commands.BotMissingAnyRole`"
5854
#: ../../ext/commands/api.rst:451
5855
msgid ":exc:`~.commands.NSFWChannelRequired`"
5858
#: ../../ext/commands/api.rst:452
5859
msgid ":exc:`~.commands.DisabledCommand`"
5862
#: ../../ext/commands/api.rst:453
5863
msgid ":exc:`~.commands.CommandInvokeError`"
5866
#: ../../ext/commands/api.rst:454
5867
msgid ":exc:`~.commands.CommandOnCooldown`"
5870
#: ../../ext/commands/api.rst:455
5871
msgid ":exc:`~.commands.MaxConcurrencyReached`"
5874
#: ../../ext/commands/api.rst:460
5875
msgid ":exc:`~.commands.ExtensionError`"
5878
#: ../../ext/commands/api.rst:457
5879
msgid ":exc:`~.commands.ExtensionAlreadyLoaded`"
5882
#: ../../ext/commands/api.rst:458
5883
msgid ":exc:`~.commands.ExtensionNotLoaded`"
5886
#: ../../ext/commands/api.rst:459
5887
msgid ":exc:`~.commands.NoEntryPointError`"
5890
#: ../../ext/commands/api.rst:460
5891
msgid ":exc:`~.commands.ExtensionFailed`"
5894
#: ../../ext/commands/api.rst:461
5895
msgid ":exc:`~.commands.ExtensionNotFound`"
5898
#: ../../ext/commands/api.rst:462
5899
msgid ":exc:`~.ClientException`"
5902
#: ../../ext/commands/api.rst:463
5903
msgid ":exc:`~.commands.CommandRegistrationError`"
5907
#~ ":class:`bool` -- Whether the commands "
5908
#~ "should be case insensitive. Defaults to"
5909
#~ " ``False``. This attribute does not "
5910
#~ "carry over to groups. You must set"
5911
#~ " it to every group if you "
5912
#~ "require group commands to be case "
5913
#~ "insensitive as well."
5915
#~ ":class:`bool` -- コマンドを大文字と小文字を区別するかどうか。デフォルトでは "
5917
#~ "です。この属性はグループコマンドには影響されません。もしグループコマンドでも大文字と小文字の区別が必要な場合、すべてのグループでの設定が必要になります。"
5920
#~ "Optional[Union[:class:`.Activity`, :class:`.Game`, "
5921
#~ ":class:`.Streaming`]] -- The activity being"
5922
#~ " used upon logging in."
5924
#~ "Optional[Union[:class:`.Activity`, :class:`.Game`, "
5925
#~ ":class:`.Streaming`]] -- ログイン時のアクティビティ。"
5927
#~ msgid ":exc:`.ClientException` -- If the command is already registered."
5928
#~ msgstr ":exc:`.ClientException` -- コマンドがすでに登録されている。"
5931
#~ "The activity parameter is a "
5932
#~ ":class:`.Activity` object (not a string) "
5933
#~ "that represents the activity being done"
5934
#~ " currently. This could also be the"
5935
#~ " slimmed down versions, :class:`.Game` and"
5936
#~ " :class:`.Streaming`."
5938
#~ "activityパラメータは、現在のアクティビティを示す :class:`.Activity` "
5939
#~ "オブジェクトです(これはstringではありません)。スリム化された :class:`.Game` や "
5940
#~ ":class:`.Streaming` でも可能です。"
5943
#~ ":exc:`.InvalidArgument` -- Invalid icon image"
5944
#~ " format given. Must be PNG or "
5949
#~ "Mapping[:class:`str`, :class:`py:types.ModuleType`] -- "
5950
#~ "A read-only mapping of extension "
5951
#~ "name to extension."
5955
#~ ":exc:`.InvalidData` -- An unknown channel "
5956
#~ "type was received from Discord."
5959
#~ msgid ":exc:`.NotFound` -- Invalid Channel ID."
5960
#~ msgstr ":exc:`.NotFound` -- チャンネルのIDが無効。"
5963
#~ "If the invite is for a guild "
5964
#~ "you have not joined, the guild and"
5965
#~ " channel attributes of the returned "
5966
#~ ":class:`.Invite` will be "
5967
#~ ":class:`.PartialInviteGuild` and "
5968
#~ ":class:`PartialInviteChannel` respectively."
5971
#~ msgid ":exc:`.NotFound` -- The invite has expired or is invalid."
5974
#~ msgid ":exc:`.HTTPException` -- Getting the invite failed."
5977
#~ msgid ":exc:`.NotFound` -- A user with this ID does not exist."
5980
#~ msgid ":exc:`.HTTPException` -- Fetching the user failed."
5984
#~ "Gets an arbitrary user's profile. This"
5985
#~ " can only be used by non-bot"
5989
#~ msgid ":exc:`.Forbidden` -- Not allowed to fetch profiles."
5992
#~ msgid ":exc:`.HTTPException` -- Fetching the profile failed."
5995
#~ msgid ":exc:`.HTTPException` -- Retrieving the webhook failed."
5998
#~ msgid ":exc:`.NotFound` -- Invalid webhook ID."
6001
#~ msgid ":exc:`.Forbidden` -- You do not have permission to fetch this webhook."
6004
#~ msgid ":exc:`.Forbidden` -- The widget for this guild is disabled."
6007
#~ msgid ":exc:`.HTTPException` -- Retrieving the widget failed."
6011
#~ "Optional[Union[:class:`.abc.GuildChannel`, :class:`.Thread`, "
6012
#~ ":class:`.abc.PrivateChannel`]]: Returns a channel"
6013
#~ " with the given ID."
6016
#~ msgid "If not found, returns ``None``."
6020
#~ "Get a :class:`.Command` or subclasses "
6021
#~ "from the internal list of commands."
6024
#~ msgid "Optional[:class:`.Emoji`]: Returns an emoji with the given ID."
6027
#~ msgid "Optional[:class:`.Guild`]: Returns a guild with the given ID."
6030
#~ msgid "Optional[:class:`~disnake.User`]: Returns a user with the given ID."
6034
#~ "List[:class:`.Guild`] -- The guilds that "
6035
#~ "the connected client is a member "
6039
#~ msgid "Indicates if the websocket connection is closed."
6042
#~ msgid "Specifies if the client's internal cache is ready for use."
6046
#~ ":class:`float` -- Measures latency between "
6047
#~ "a HEARTBEAT and a HEARTBEAT_ACK in "
6051
#~ msgid ":exc:`ExtensionNotFound` -- The extension could not be imported."
6054
#~ msgid ":exc:`ExtensionAlreadyLoaded` -- The extension is already loaded."
6058
#~ ":exc:`NoEntryPointError` -- The extension does"
6059
#~ " not have a setup function."
6063
#~ ":exc:`ExtensionFailed` -- The extension setup"
6064
#~ " function had an execution error."
6068
#~ "Logging on with a user token is"
6069
#~ " against the Discord `Terms of "
6070
#~ "Service <https://support.discordapp.com/hc/en-"
6071
#~ "us/articles/115002192352>`_ and doing so might"
6072
#~ " potentially get your account banned. "
6073
#~ "Use this at your own risk."
6076
#~ msgid ":exc:`.LoginFailure` -- The wrong credentials are passed."
6080
#~ ":exc:`.HTTPException` -- An unknown HTTP "
6081
#~ "related error occurred, usually when it"
6082
#~ " isn't 200 or the known incorrect "
6083
#~ "credentials passing status code."
6087
#~ "List[:class:`.abc.PrivateChannel`] -- The private"
6088
#~ " channels that the connected client "
6089
#~ "is participating on."
6092
#~ msgid ":exc:`ExtensionNotLoaded` -- The extension was not loaded."
6096
#~ "Remove a :class:`.Command` or subclasses "
6097
#~ "from the internal list of commands."
6101
#~ "The command that was removed. If "
6102
#~ "the name is not valid then `None`"
6103
#~ " is returned instead."
6106
#~ msgid ":class:`.Command` or subclass"
6110
#~ ":exc:`.InvalidArgument` -- If any guild "
6111
#~ "is unavailable or not large in the"
6115
#~ msgid ":exc:`TypeError` -- An unexpected keyword argument was received."
6119
#~ "Optional[:class:`.ClientUser`] -- Represents the "
6120
#~ "connected client. None if not logged "
6125
#~ "List[:class:`~disnake.User`] -- Returns a list"
6126
#~ " of all the users the bot can"
6130
#~ msgid "List[:class:`.VoiceClient`] -- Represents a list of voice connections."
6134
#~ ":exc:`asyncio.TimeoutError` -- If a timeout"
6135
#~ " is provided and it was reached."
6139
#~ ":exc:`TypeError` -- If the function is"
6140
#~ " not a coroutine or is already "
6144
#~ msgid ":class:`str` -- The name of the command."
6148
#~ ":ref:`coroutine <coroutine>` -- The coroutine"
6149
#~ " that is executed when the command"
6153
#~ msgid ":class:`str` -- The long help text for the command."
6157
#~ ":class:`str` -- The short help text "
6158
#~ "for the command. If this is not"
6159
#~ " specified then the first line of "
6160
#~ "the long help text is used "
6164
#~ msgid ":class:`str` -- A replacement for arguments in the default help text."
6167
#~ msgid ":class:`list` -- The list of aliases the command can be invoked under."
6171
#~ ":class:`bool` -- A boolean that "
6172
#~ "indicates if the command is currently"
6173
#~ " enabled. If the command is invoked"
6174
#~ " while it is disabled, then "
6175
#~ ":exc:`.DisabledCommand` is raised to the "
6176
#~ ":func:`.on_command_error` event. Defaults to "
6181
#~ "Optional[:class:`Command`] -- The parent "
6182
#~ "command that this command belongs to."
6183
#~ " ``None`` if there isn't one."
6187
#~ "List[Callable[..., :class:`bool`]] -- A list"
6188
#~ " of predicates that verifies if the"
6189
#~ " command could be executed with the"
6190
#~ " given :class:`.Context` as the sole "
6191
#~ "parameter. If an exception is necessary"
6192
#~ " to be thrown to signal failure, "
6193
#~ "then one inherited from :exc:`.CommandError`"
6194
#~ " should be used. Note that if "
6195
#~ "the checks fail then :exc:`.CheckFailure` "
6196
#~ "exception is raised to the "
6197
#~ ":func:`.on_command_error` event."
6200
#~ msgid ":class:`str` -- The message prefixed into the default help command."
6204
#~ ":class:`bool` -- If ``True``\\, the "
6205
#~ "default help command does not show "
6206
#~ "this in the help output."
6210
#~ ":class:`bool` -- If ``False`` and a "
6211
#~ "keyword-only argument is provided then"
6212
#~ " the keyword only argument is "
6213
#~ "stripped and handled as if it was"
6214
#~ " a regular argument that handles "
6215
#~ ":exc:`.MissingRequiredArgument` and default values"
6216
#~ " in a regular matter rather than "
6217
#~ "passing the rest completely raw. If "
6218
#~ "``True`` then the keyword-only argument"
6219
#~ " will pass in the rest of the"
6220
#~ " arguments in a completely raw "
6221
#~ "matter. Defaults to ``False``."
6224
#~ msgid "Optional[:class:`Command`] -- The subcommand that was invoked, if any."
6228
#~ ":class:`bool` -- If ``True``\\, ignores "
6229
#~ "extraneous strings passed to a command"
6230
#~ " if all its requirements are met "
6231
#~ "(e.g. ``?foo a b c`` when only "
6232
#~ "expecting ``a`` and ``b``). Otherwise "
6233
#~ ":func:`.on_command_error` and local error "
6234
#~ "handlers are called with "
6235
#~ ":exc:`.TooManyArguments`. Defaults to ``True``."
6239
#~ ":class:`bool` -- If ``True``\\, cooldown "
6240
#~ "processing is done after argument "
6241
#~ "parsing, which calls converters. If "
6242
#~ "``False`` then cooldown processing is "
6243
#~ "done first and then the converters "
6244
#~ "are called second. Defaults to "
6249
#~ "Retrieves the parameter OrderedDict without"
6250
#~ " the context or self parameters."
6253
#~ msgid ":class:`str` -- Retrieves the fully qualified parent command name."
6256
#~ msgid ":class:`Command` -- Retrieves the parents of this command."
6259
#~ msgid ":class:`str` -- Retrieves the fully qualified command name."
6263
#~ ":class:`str` -- The name of the "
6264
#~ "cog this command belongs to. None "
6268
#~ msgid ":class:`str` -- Gets the \"short\" documentation of a command."
6272
#~ ":class:`str` -- Returns a POSIX-like "
6273
#~ "signature useful for help command "
6278
#~ "Checks if the command can be "
6279
#~ "executed by checking all the predicates"
6280
#~ " inside the :attr:`.checks` attribute."
6284
#~ ":class:`CommandError` -- Any command error "
6285
#~ "that was raised during a check "
6286
#~ "call will be propagated by this "
6291
#~ "Optional[:class:`bool`] -- Indicates if the"
6292
#~ " group callback should begin parsing "
6293
#~ "and invocation only if no subcommand "
6294
#~ "was found. Useful for making it an"
6295
#~ " error handling function to tell the"
6296
#~ " user that no subcommand was found"
6297
#~ " or to have different functionality "
6298
#~ "in case no subcommand was found. "
6299
#~ "If this is ``False``, then the "
6300
#~ "group callback will always be invoked"
6301
#~ " first. This means that the checks"
6302
#~ " and the parsing dictated by its "
6303
#~ "parameters will be executed. Defaults to"
6308
#~ "Optional[:class:`bool`] -- Indicates if the"
6309
#~ " group's commands should be case "
6310
#~ "insensitive. Defaults to ``False``."
6314
#~ ":class:`dict` -- A mapping of command"
6315
#~ " name to :class:`.Command` or subclass "
6320
#~ ":class:`bool` -- Whether the commands "
6321
#~ "should be case insensitive. Defaults to"
6326
#~ "Returns a :class:`list` of "
6327
#~ ":class:`.Command`\\s that are defined inside"
6331
#~ msgid ":class:`str` -- Returns the cog's specified name, not the class name."
6335
#~ ":class:`str` -- Returns the cog's "
6336
#~ "description, typically the cleaned docstring."
6340
#~ ":exc:`TypeError` -- The function is not"
6341
#~ " a coroutine function or a string "
6342
#~ "was not passed as the name."
6345
#~ msgid "This function **can** be a coroutine."
6349
#~ ":class:`str` -- The cog name. By "
6350
#~ "default, it is the name of the "
6351
#~ "class with no modification."
6355
#~ ":class:`dict` -- A list of attributes"
6356
#~ " to apply to every command inside "
6357
#~ "this cog. The dictionary is passed "
6358
#~ "into the :class:`Command` (or its "
6359
#~ "subclass) options at ``__init__``. If "
6360
#~ "you specify attributes inside the "
6361
#~ "command attribute in the class, it "
6362
#~ "will override the one specified inside"
6363
#~ " this attribute. For example:"
6367
#~ "Optional[:class:`Context`] -- The context that"
6368
#~ " invoked this help formatter. This is"
6369
#~ " generally set after the help command"
6370
#~ " assigned, :func:`command_callback`\\, has been"
6375
#~ ":class:`bool` -- Specifies if hidden "
6376
#~ "commands should be shown in the "
6377
#~ "output. Defaults to ``False``."
6381
#~ ":class:`bool` -- Specifies if commands "
6382
#~ "should have their :attr:`.Command.checks` "
6383
#~ "called and verified. Defaults to "
6388
#~ ":class:`dict` -- A dictionary of options"
6389
#~ " to pass in for the construction "
6390
#~ "of the help command. This allows "
6391
#~ "you to change the command behaviour "
6392
#~ "without actually changing the implementation"
6393
#~ " of the command. The attributes will"
6394
#~ " be the same as the ones passed"
6395
#~ " in the :class:`.Command` constructor."
6399
#~ ":class:`int` -- The maximum number of"
6400
#~ " characters that fit in a line. "
6405
#~ ":class:`bool` -- Whether to sort the "
6406
#~ "commands in the output alphabetically. "
6407
#~ "Defaults to ``True``."
6411
#~ "Optional[:class:`bool`] -- A tribool that "
6412
#~ "indicates if the help command should "
6413
#~ "DM the user instead of sending it"
6414
#~ " to the channel it received it "
6415
#~ "from. If the boolean is set to "
6416
#~ "``True``, then all help output is "
6417
#~ "DM'd. If ``False``, none of the "
6418
#~ "help output is DM'd. If ``None``, "
6419
#~ "then the bot will only DM when "
6420
#~ "the help message becomes too long "
6421
#~ "(dictated by more than "
6422
#~ ":attr:`dm_help_threshold` characters). Defaults to"
6427
#~ "Optional[:class:`int`] -- The number of "
6428
#~ "characters the paginator must accumulate "
6429
#~ "before getting DM'd to the user if"
6430
#~ " :attr:`dm_help` is set to ``None``. "
6431
#~ "Defaults to 1000."
6435
#~ ":class:`int` -- How much to intend "
6436
#~ "the commands from a heading. Defaults"
6441
#~ ":class:`str` -- The command list's "
6442
#~ "heading string used when the help "
6443
#~ "command is invoked with a category "
6444
#~ "name. Useful for i18n. Defaults to "
6445
#~ "``\"Commands:\"``"
6449
#~ ":class:`str` -- The string used when "
6450
#~ "there is a command which does not"
6451
#~ " belong to any category(cog). Useful "
6452
#~ "for i18n. Defaults to ``\"No "
6457
#~ ":class:`Paginator` -- The paginator used "
6458
#~ "to paginate the help command output."
6462
#~ ":class:`str` -- The command list's "
6463
#~ "heading string used when the help "
6464
#~ "command is invoked with a category "
6465
#~ "name. Useful for i18n. Defaults to "
6466
#~ "``\"Commands\"``"
6470
#~ ":class:`str` -- The alias list's heading"
6471
#~ " string used to list the aliases "
6472
#~ "of the command. Useful for i18n. "
6473
#~ "Defaults to ``\"Aliases:\"``."
6477
#~ "Optional[:class:`str`] -- The prefix inserted"
6478
#~ " to every page. e.g. three backticks."
6482
#~ "Optional[:class:`str`] -- The suffix appended"
6483
#~ " at the end of every page. e.g."
6484
#~ " three backticks."
6487
#~ msgid ":class:`int` -- The maximum amount of codepoints allowed in a page."
6491
#~ ":exc:`RuntimeError` -- The line was too"
6492
#~ " big for the current :attr:`max_size`."
6495
#~ msgid "These functions can either be regular functions or coroutines."
6499
#~ "A decorator that adds a cooldown "
6500
#~ "to a :class:`.Command` or its "
6505
#~ "A cooldown allows a command to "
6506
#~ "only be used a specific amount of"
6507
#~ " times in a specific time frame. "
6508
#~ "These cooldowns can be based either "
6509
#~ "on a per-guild, per-channel, "
6510
#~ "per-user, or global basis. Denoted by"
6511
#~ " the third argument of ``type`` which"
6512
#~ " must be of enum type ``BucketType``"
6513
#~ " which could be either:"
6516
#~ msgid "``BucketType.default`` for a global basis."
6519
#~ msgid "``BucketType.user`` for a per-user basis."
6522
#~ msgid "``BucketType.guild`` for a per-guild basis."
6525
#~ msgid "``BucketType.channel`` for a per-channel basis."
6528
#~ msgid "``BucketType.member`` for a per-member basis."
6531
#~ msgid "``BucketType.category`` for a per-category basis."
6535
#~ ":class:`.Message` -- The message that "
6536
#~ "triggered the command being executed."
6539
#~ msgid ":class:`.Bot` -- The bot that contains the command being executed."
6543
#~ ":class:`list` -- The list of transformed"
6544
#~ " arguments that were passed into the"
6545
#~ " command. If this is accessed during"
6546
#~ " the :func:`on_command_error` event then "
6547
#~ "this list could be incomplete."
6551
#~ ":class:`dict` -- A dictionary of "
6552
#~ "transformed arguments that were passed "
6553
#~ "into the command. Similar to "
6554
#~ ":attr:`args`\\, if this is accessed in"
6555
#~ " the :func:`on_command_error` event then "
6556
#~ "this dict could be incomplete."
6559
#~ msgid ":class:`str` -- The prefix that was used to invoke the command."
6563
#~ "The command (i.e. :class:`.Command` or "
6564
#~ "its subclasses) that is being invoked"
6569
#~ ":class:`str` -- The command name that"
6570
#~ " triggered this invocation. Useful for "
6571
#~ "finding out which alias called the "
6576
#~ "The subcommand (i.e. :class:`.Command` or "
6577
#~ "its subclasses) that was invoked. If "
6578
#~ "no valid subcommand was invoked then "
6579
#~ "this is equal to ``None``."
6583
#~ "Optional[:class:`str`] -- The string that "
6584
#~ "was attempted to call a subcommand. "
6585
#~ "This does not have to point to "
6586
#~ "a valid registered subcommand and could"
6587
#~ " just point to a nonsense string. "
6588
#~ "If nothing was passed to attempt a"
6589
#~ " call to a subcommand then this "
6590
#~ "is set to ``None``."
6594
#~ ":class:`bool` -- A boolean that "
6595
#~ "indicates if the command failed to "
6596
#~ "be parsed, checked, or invoked."
6601
#~ ":attr:`~.Permissions.read_message_history` permissions to"
6606
#~ ":exc:`~disnake.Forbidden` -- You do not "
6607
#~ "have permissions to get channel message"
6612
#~ ":exc:`~disnake.HTTPException` -- The request "
6613
#~ "to get message history failed."
6617
#~ "Returns the channel associated with this"
6618
#~ " context's command. Shorthand for "
6619
#~ ":attr:`.Message.channel`."
6623
#~ "Returns the author associated with this"
6624
#~ " context's command. Shorthand for "
6625
#~ ":attr:`.Message.author`"
6628
#~ msgid ":exc:`~disnake.NotFound` -- The specified message was not found."
6632
#~ ":exc:`~disnake.Forbidden` -- You do not "
6633
#~ "have the permissions required to get "
6637
#~ msgid ":exc:`~disnake.HTTPException` -- Retrieving the message failed."
6640
#~ msgid "A command or subclass of a command that is going to be called."
6643
#~ msgid ":exc:`~disnake.HTTPException` -- Retrieving the pinned messages failed."
6646
#~ msgid ":exc:`~disnake.HTTPException` -- Sending the message failed."
6650
#~ ":exc:`~disnake.Forbidden` -- You do not "
6651
#~ "have the proper permissions to send "
6656
#~ ":exc:`~disnake.InvalidArgument` -- The ``files`` "
6657
#~ "list is not of the appropriate "
6658
#~ "size or you specified both ``file`` "
6663
#~ "Similar to :attr:`.Guild.me` except it "
6664
#~ "may return the :class:`.ClientUser` in "
6665
#~ "private message contexts."
6669
#~ "Optional[:class:`.VoiceClient`] -- A shortcut "
6670
#~ "to :attr:`.Guild.voice_client`\\, if applicable."
6673
#~ msgid ":class:`bool` -- Whether to clean channel mentions."
6676
#~ msgid ":class:`bool` -- Whether to use nicknames when transforming mentions."
6679
#~ msgid ":class:`bool` -- Whether to also escape special markdown characters."
6682
#~ msgid ":class:`disnake.ext.commands.Converter` -- The converter that failed."
6685
#~ msgid ":class:`inspect.Parameter` -- The argument that is missing."
6689
#~ ":class:`str` -- The quote mark that "
6690
#~ "was found inside the non-quoted "
6694
#~ msgid ":class:`str` -- The character found instead of the expected string."
6697
#~ msgid ":class:`str` -- The quote character expected."
6701
#~ ":class:`inspect.Parameter` -- The parameter "
6702
#~ "that failed being converted."
6706
#~ "*Tuple[Type, ...]* -- A tuple of "
6707
#~ "converters attempted in conversion, in "
6708
#~ "order of failure."
6712
#~ "List[:class:`CommandError`] -- A list of "
6713
#~ "errors that were caught from failing "
6718
#~ "*Cooldown* -- A class with attributes"
6719
#~ " ``rate``, ``per``, and ``type`` similar"
6720
#~ " to the :func:`.cooldown` decorator."
6724
#~ ":class:`float` -- The amount of seconds"
6725
#~ " to wait before you can retry "
6729
#~ msgid ":class:`list` -- The required permissions that are missing."
6733
#~ "Union[:class:`str`, :class:`int`] -- The "
6734
#~ "required role that is missing. This "
6735
#~ "is the parameter passed to "
6736
#~ ":func:`~.commands.has_role`."
6740
#~ "List[Union[:class:`str`, :class:`int`]] -- The "
6741
#~ "roles that the invoker is missing. "
6742
#~ "These are the parameters passed to "
6743
#~ ":func:`~.commands.has_any_role`."
6747
#~ "List[Union[:class:`str`, :class:`int`]] -- The "
6748
#~ "roles that the bot's member is "
6749
#~ "missing. These are the parameters passed"
6750
#~ " to :func:`~.commands.has_any_role`."
6753
#~ msgid ":class:`str` -- The extension that had an error."
6757
#~ "An exception raised when an extension"
6758
#~ " failed to load during execution of"
6759
#~ " the ``setup`` entry point."
6762
#~ msgid ":class:`str` -- The extension that had the error."
6766
#~ ":exc:`Exception` -- The original exception "
6767
#~ "that was raised. You can also get"
6768
#~ " this via the ``__cause__`` attribute."
6771
#~ msgid "An exception raised when an extension failed to be imported."
6775
#~ ":exc:`ImportError` -- The original exception"
6776
#~ " that was raised. You can also "
6777
#~ "get this via the ``__cause__`` "