diff --git a/docs/locale/ja/LC_MESSAGES/api.po b/docs/locale/ja/LC_MESSAGES/api.po index 72f8e0004..cb7664efa 100644 --- a/docs/locale/ja/LC_MESSAGES/api.po +++ b/docs/locale/ja/LC_MESSAGES/api.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: discord.py 1.0.0a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-18 03:50-0500\n" +"POT-Creation-Date: 2019-03-16 05:18-0400\n" "PO-Revision-Date: 2018-08-01 17:00+0000\n" "Last-Translator: Episword , 2018\n" "Language: ja_JP\n" @@ -101,14 +101,15 @@ msgstr "多くのオプションを :class:`Client` に渡すことが可能で #: discord.ClientUser.mentioned_in discord.ClientUser.permissions_in #: discord.DMChannel.get_message discord.DMChannel.history #: discord.DMChannel.permissions_for discord.DMChannel.send -#: discord.Embed.add_field discord.Embed.remove_field discord.Embed.set_author -#: discord.Embed.set_field_at discord.Embed.set_footer discord.Embed.set_image -#: discord.Embed.set_thumbnail discord.Emoji.delete discord.Emoji.edit -#: discord.FFmpegPCMAudio discord.Game discord.GroupCall.voice_state_for -#: discord.GroupChannel.add_recipients discord.GroupChannel.edit -#: discord.GroupChannel.get_message discord.GroupChannel.history -#: discord.GroupChannel.permissions_for discord.GroupChannel.remove_recipients -#: discord.GroupChannel.send discord.Guild.audit_logs discord.Guild.ban +#: discord.Embed.add_field discord.Embed.from_dict discord.Embed.remove_field +#: discord.Embed.set_author discord.Embed.set_field_at discord.Embed.set_footer +#: discord.Embed.set_image discord.Embed.set_thumbnail discord.Emoji.delete +#: discord.Emoji.edit discord.FFmpegPCMAudio discord.Game +#: discord.GroupCall.voice_state_for discord.GroupChannel.add_recipients +#: discord.GroupChannel.edit discord.GroupChannel.get_message +#: discord.GroupChannel.history discord.GroupChannel.permissions_for +#: discord.GroupChannel.remove_recipients discord.GroupChannel.send +#: discord.Guild.audit_logs discord.Guild.ban discord.Guild.banner_url_as #: discord.Guild.create_custom_emoji discord.Guild.create_role #: discord.Guild.create_text_channel discord.Guild.create_voice_channel #: discord.Guild.edit discord.Guild.estimate_pruned_members @@ -367,19 +368,21 @@ msgstr "" msgid "Returns a generator with every :class:`Member` the client can see." msgstr "クライアントが参照可能なすべての :class:`Member` のジェネレータを返します。" -#: ../../api.rst:1390 ../../api.rst:1397 ../../api.rst:1407 ../../api.rst:1426 +#: ../../api.rst:1393 ../../api.rst:1400 ../../api.rst:1410 ../../api.rst:1429 #: discord.Attachment.save:1 discord.AutoShardedClient.change_presence:1 #: discord.AutoShardedClient.close:1 #: discord.AutoShardedClient.request_offline_members:1 -#: discord.CategoryChannel.create_invite:1 discord.CategoryChannel.delete:1 -#: discord.CategoryChannel.edit:1 discord.CategoryChannel.invites:1 -#: discord.CategoryChannel.set_permissions:1 discord.Client.application_info:1 -#: discord.Client.change_presence:1 discord.Client.close:1 -#: discord.Client.connect:1 discord.Client.create_guild:1 -#: discord.Client.delete_invite:1 discord.Client.get_invite:1 -#: discord.Client.get_user_info:1 discord.Client.get_user_profile:1 -#: discord.Client.get_webhook_info:1 discord.Client.login:1 -#: discord.Client.logout:1 discord.Client.on_error:1 +#: discord.CategoryChannel.create_invite:1 +#: discord.CategoryChannel.create_text_channel:1 +#: discord.CategoryChannel.create_voice_channel:1 +#: discord.CategoryChannel.delete:1 discord.CategoryChannel.edit:1 +#: discord.CategoryChannel.invites:1 discord.CategoryChannel.set_permissions:1 +#: discord.Client.application_info:1 discord.Client.change_presence:1 +#: discord.Client.close:1 discord.Client.connect:1 +#: discord.Client.create_guild:1 discord.Client.delete_invite:1 +#: discord.Client.get_invite:1 discord.Client.get_user_info:1 +#: discord.Client.get_user_profile:1 discord.Client.get_webhook_info:1 +#: discord.Client.login:1 discord.Client.logout:1 discord.Client.on_error:1 #: discord.Client.request_offline_members:1 discord.Client.start:1 #: discord.Client.wait_for:1 discord.Client.wait_until_ready:1 #: discord.ClientUser.create_group:1 discord.ClientUser.edit:1 @@ -521,9 +524,9 @@ msgstr "" #: discord.GroupChannel.leave discord.GroupChannel.pins #: discord.GroupChannel.remove_recipients discord.GroupChannel.send #: discord.Guild.ack discord.Guild.audit_logs discord.Guild.ban -#: discord.Guild.bans discord.Guild.create_custom_emoji -#: discord.Guild.create_role discord.Guild.create_text_channel -#: discord.Guild.delete discord.Guild.edit +#: discord.Guild.banner_url_as discord.Guild.bans +#: discord.Guild.create_custom_emoji discord.Guild.create_role +#: discord.Guild.create_text_channel discord.Guild.delete discord.Guild.edit #: discord.Guild.estimate_pruned_members discord.Guild.get_ban #: discord.Guild.icon_url_as discord.Guild.invites discord.Guild.kick #: discord.Guild.leave discord.Guild.prune_members discord.Guild.splash_url_as @@ -582,11 +585,12 @@ msgstr "" #: discord.DMChannel.permissions_for discord.DMChannel.send #: discord.FFmpegPCMAudio.read discord.GroupCall.voice_state_for #: discord.GroupChannel.get_message discord.GroupChannel.permissions_for -#: discord.GroupChannel.send discord.Guild.bans discord.Guild.by_category -#: discord.Guild.create_custom_emoji discord.Guild.create_role -#: discord.Guild.create_text_channel discord.Guild.estimate_pruned_members -#: discord.Guild.get_ban discord.Guild.get_member_named -#: discord.Guild.icon_url_as discord.Guild.invites discord.Guild.prune_members +#: discord.GroupChannel.send discord.Guild.banner_url_as discord.Guild.bans +#: discord.Guild.by_category discord.Guild.create_custom_emoji +#: discord.Guild.create_role discord.Guild.create_text_channel +#: discord.Guild.estimate_pruned_members discord.Guild.get_ban +#: discord.Guild.get_member_named discord.Guild.icon_url_as +#: discord.Guild.invites discord.Guild.prune_members #: discord.Guild.splash_url_as discord.Guild.vanity_invite #: discord.Guild.webhooks discord.Member.avatar_url_as #: discord.Member.get_message discord.Member.mutual_friends @@ -630,11 +634,12 @@ msgstr "" #: discord.DMChannel.permissions_for discord.DMChannel.send #: discord.FFmpegPCMAudio.read discord.GroupCall.voice_state_for #: discord.GroupChannel.get_message discord.GroupChannel.permissions_for -#: discord.GroupChannel.send discord.Guild.bans discord.Guild.by_category -#: discord.Guild.create_custom_emoji discord.Guild.create_role -#: discord.Guild.create_text_channel discord.Guild.estimate_pruned_members -#: discord.Guild.get_ban discord.Guild.get_member_named -#: discord.Guild.icon_url_as discord.Guild.invites discord.Guild.prune_members +#: discord.GroupChannel.send discord.Guild.banner_url_as discord.Guild.bans +#: discord.Guild.by_category discord.Guild.create_custom_emoji +#: discord.Guild.create_role discord.Guild.create_text_channel +#: discord.Guild.estimate_pruned_members discord.Guild.get_ban +#: discord.Guild.get_member_named discord.Guild.icon_url_as +#: discord.Guild.invites discord.Guild.prune_members #: discord.Guild.splash_url_as discord.Guild.vanity_invite #: discord.Guild.webhooks discord.Member.avatar_url_as #: discord.Member.get_message discord.Member.mutual_friends @@ -2518,525 +2523,530 @@ msgstr "" msgid "A private group text channel." msgstr "" -#: ../../api.rst:681 +#: ../../api.rst:680 +#, fuzzy +msgid "A guild news channel." +msgstr "ボイスチャンネル。" + +#: ../../api.rst:684 msgid "" "Specifies the type of :class:`Message`. This is used to denote if a " "message is to be interpreted as a system message or a regular message." msgstr "" -#: ../../api.rst:686 +#: ../../api.rst:689 msgid "The default message type. This is the same as regular messages." msgstr "" -#: ../../api.rst:689 +#: ../../api.rst:692 msgid "" "The system message when a recipient is added to a group private message, " "i.e. a private channel of type :attr:`ChannelType.group`." msgstr "" -#: ../../api.rst:693 +#: ../../api.rst:696 msgid "" "The system message when a recipient is removed from a group private " "message, i.e. a private channel of type :attr:`ChannelType.group`." msgstr "" -#: ../../api.rst:697 +#: ../../api.rst:700 msgid "" "The system message denoting call state, e.g. missed call, started call, " "etc." msgstr "" -#: ../../api.rst:701 +#: ../../api.rst:704 msgid "The system message denoting that a channel's name has been changed." msgstr "" -#: ../../api.rst:704 +#: ../../api.rst:707 msgid "The system message denoting that a channel's icon has been changed." msgstr "" -#: ../../api.rst:707 +#: ../../api.rst:710 msgid "" "The system message denoting that a pinned message has been added to a " "channel." msgstr "" -#: ../../api.rst:710 +#: ../../api.rst:713 msgid "The system message denoting that a new member has joined a Guild." msgstr "" -#: ../../api.rst:714 +#: ../../api.rst:717 msgid "" "Specifies the type of :class:`Activity`. This is used to check how to " "interpret the activity itself." msgstr "" -#: ../../api.rst:719 +#: ../../api.rst:722 msgid "An unknown activity type. This should generally not happen." msgstr "" -#: ../../api.rst:722 +#: ../../api.rst:725 msgid "A \"Playing\" activity type." msgstr "" -#: ../../api.rst:725 +#: ../../api.rst:728 msgid "A \"Streaming\" activity type." msgstr "" -#: ../../api.rst:728 +#: ../../api.rst:731 msgid "A \"Listening\" activity type." msgstr "" -#: ../../api.rst:731 +#: ../../api.rst:734 msgid "A \"Watching\" activity type." msgstr "" -#: ../../api.rst:735 +#: ../../api.rst:738 msgid "Specifies the HypeSquad house a user belongs to." msgstr "" -#: ../../api.rst:739 +#: ../../api.rst:742 msgid "The \"Bravery\" house." msgstr "" -#: ../../api.rst:742 +#: ../../api.rst:745 msgid "The \"Brilliance\" house." msgstr "" -#: ../../api.rst:745 +#: ../../api.rst:748 msgid "The \"Balance\" house." msgstr "" -#: ../../api.rst:749 +#: ../../api.rst:752 msgid "Specifies the region a voice server belongs to." msgstr "" -#: ../../api.rst:753 +#: ../../api.rst:756 msgid "The Amsterdam region." msgstr "" -#: ../../api.rst:756 +#: ../../api.rst:759 msgid "The Brazil region." msgstr "" -#: ../../api.rst:759 +#: ../../api.rst:762 msgid "The EU Central region." msgstr "" -#: ../../api.rst:762 +#: ../../api.rst:765 msgid "The EU West region." msgstr "" -#: ../../api.rst:765 +#: ../../api.rst:768 msgid "The Frankfurt region." msgstr "" -#: ../../api.rst:768 +#: ../../api.rst:771 msgid "The Hong Kong region." msgstr "" -#: ../../api.rst:771 +#: ../../api.rst:774 msgid "The Japan region." msgstr "" -#: ../../api.rst:774 +#: ../../api.rst:777 msgid "The London region." msgstr "" -#: ../../api.rst:777 +#: ../../api.rst:780 msgid "The Russia region." msgstr "" -#: ../../api.rst:780 +#: ../../api.rst:783 msgid "The Singapore region." msgstr "" -#: ../../api.rst:783 +#: ../../api.rst:786 msgid "The South Africa region." msgstr "" -#: ../../api.rst:786 +#: ../../api.rst:789 msgid "The Sydney region." msgstr "" -#: ../../api.rst:789 +#: ../../api.rst:792 msgid "The US Central region." msgstr "" -#: ../../api.rst:792 +#: ../../api.rst:795 msgid "The US East region." msgstr "" -#: ../../api.rst:795 +#: ../../api.rst:798 msgid "The US South region." msgstr "" -#: ../../api.rst:798 +#: ../../api.rst:801 msgid "The US West region." msgstr "" -#: ../../api.rst:801 +#: ../../api.rst:804 msgid "The Amsterdam region for VIP guilds." msgstr "" -#: ../../api.rst:804 +#: ../../api.rst:807 msgid "The US East region for VIP guilds." msgstr "" -#: ../../api.rst:807 +#: ../../api.rst:810 msgid "The US West region for VIP guilds." msgstr "" -#: ../../api.rst:811 +#: ../../api.rst:814 msgid "" "Specifies a :class:`Guild`\\'s verification level, which is the criteria " "in which a member must meet before being able to send messages to the " "guild." msgstr "" -#: ../../api.rst:818 +#: ../../api.rst:821 msgid "Checks if two verification levels are equal." msgstr "" -#: ../../api.rst:821 +#: ../../api.rst:824 msgid "Checks if two verification levels are not equal." msgstr "" -#: ../../api.rst:824 +#: ../../api.rst:827 msgid "Checks if a verification level is higher than another." msgstr "" -#: ../../api.rst:827 +#: ../../api.rst:830 msgid "Checks if a verification level is lower than another." msgstr "" -#: ../../api.rst:830 +#: ../../api.rst:833 msgid "Checks if a verification level is higher or equal to another." msgstr "" -#: ../../api.rst:833 +#: ../../api.rst:836 msgid "Checks if a verification level is lower or equal to another." msgstr "" -#: ../../api.rst:837 +#: ../../api.rst:840 msgid "No criteria set." msgstr "" -#: ../../api.rst:840 +#: ../../api.rst:843 msgid "Member must have a verified email on their Discord account." msgstr "" -#: ../../api.rst:843 +#: ../../api.rst:846 msgid "" "Member must have a verified email and be registered on Discord for more " "than five minutes." msgstr "" -#: ../../api.rst:847 +#: ../../api.rst:850 msgid "" "Member must have a verified email, be registered on Discord for more than" " five minutes, and be a member of the guild itself for more than ten " "minutes." msgstr "" -#: ../../api.rst:852 +#: ../../api.rst:855 msgid "An alias for :attr:`high`." msgstr "" -#: ../../api.rst:855 +#: ../../api.rst:858 msgid "Member must have a verified phone on their Discord account." msgstr "" -#: ../../api.rst:859 +#: ../../api.rst:862 msgid "An alias for :attr:`extreme`." msgstr "" -#: ../../api.rst:863 +#: ../../api.rst:866 msgid "" "Specifies whether a :class:`Guild` has notifications on for all messages " "or mentions only by default." msgstr "" -#: ../../api.rst:867 +#: ../../api.rst:870 msgid "" "Members receive notifications for every message regardless of them being " "mentioned." msgstr "" -#: ../../api.rst:870 +#: ../../api.rst:873 msgid "Members receive notifications for messages they are mentioned in." msgstr "" -#: ../../api.rst:874 +#: ../../api.rst:877 msgid "" "Specifies a :class:`Guild`\\'s explicit content filter, which is the " "machine learning algorithms that Discord uses to detect if an image " "contains pornography or otherwise explicit content." msgstr "" -#: ../../api.rst:882 +#: ../../api.rst:885 msgid "Checks if two content filter levels are equal." msgstr "" -#: ../../api.rst:885 +#: ../../api.rst:888 msgid "Checks if two content filter levels are not equal." msgstr "" -#: ../../api.rst:888 +#: ../../api.rst:891 msgid "Checks if a content filter level is higher than another." msgstr "" -#: ../../api.rst:891 +#: ../../api.rst:894 msgid "Checks if a content filter level is lower than another." msgstr "" -#: ../../api.rst:894 +#: ../../api.rst:897 msgid "Checks if a content filter level is higher or equal to another." msgstr "" -#: ../../api.rst:897 +#: ../../api.rst:900 msgid "Checks if a content filter level is lower or equal to another." msgstr "" -#: ../../api.rst:901 +#: ../../api.rst:904 msgid "The guild does not have the content filter enabled." msgstr "" -#: ../../api.rst:904 +#: ../../api.rst:907 msgid "The guild has the content filter enabled for members without a role." msgstr "" -#: ../../api.rst:907 +#: ../../api.rst:910 msgid "The guild has the content filter enabled for every member." msgstr "" -#: ../../api.rst:911 +#: ../../api.rst:914 msgid "Specifies a :class:`Member` 's status." msgstr "" -#: ../../api.rst:915 +#: ../../api.rst:918 msgid "The member is online." msgstr "" -#: ../../api.rst:918 +#: ../../api.rst:921 msgid "The member is offline." msgstr "" -#: ../../api.rst:921 +#: ../../api.rst:924 msgid "The member is idle." msgstr "" -#: ../../api.rst:924 +#: ../../api.rst:927 msgid "The member is \"Do Not Disturb\"." msgstr "" -#: ../../api.rst:927 +#: ../../api.rst:930 msgid "An alias for :attr:`dnd`." msgstr "" -#: ../../api.rst:930 +#: ../../api.rst:933 msgid "" "The member is \"invisible\". In reality, this is only used in sending a " "presence a la :meth:`Client.change_presence`. When you receive a user's " "presence this will be :attr:`offline` instead." msgstr "" -#: ../../api.rst:936 +#: ../../api.rst:939 msgid "Specifies the type of :class:`Relationship`" msgstr "" -#: ../../api.rst:940 +#: ../../api.rst:943 msgid "You are friends with this user." msgstr "" -#: ../../api.rst:943 +#: ../../api.rst:946 msgid "You have blocked this user." msgstr "" -#: ../../api.rst:946 +#: ../../api.rst:949 msgid "The user has sent you a friend request." msgstr "" -#: ../../api.rst:949 +#: ../../api.rst:952 msgid "You have sent a friend request to this user." msgstr "" -#: ../../api.rst:954 +#: ../../api.rst:957 msgid "" "Represents the type of action being done for a :class:`AuditLogEntry`\\, " "which is retrievable via :meth:`Guild.audit_logs`." msgstr "" -#: ../../api.rst:959 +#: ../../api.rst:962 msgid "The guild has updated. Things that trigger this include:" msgstr "" -#: ../../api.rst:961 +#: ../../api.rst:964 msgid "Changing the guild vanity URL" msgstr "" -#: ../../api.rst:962 +#: ../../api.rst:965 msgid "Changing the guild invite splash" msgstr "" -#: ../../api.rst:963 +#: ../../api.rst:966 msgid "Changing the guild AFK channel or timeout" msgstr "" -#: ../../api.rst:964 +#: ../../api.rst:967 msgid "Changing the guild voice server region" msgstr "" -#: ../../api.rst:965 +#: ../../api.rst:968 msgid "Changing the guild icon" msgstr "" -#: ../../api.rst:966 +#: ../../api.rst:969 msgid "Changing the guild moderation settings" msgstr "" -#: ../../api.rst:967 +#: ../../api.rst:970 msgid "Changing things related to the guild widget" msgstr "" -#: ../../api.rst:969 +#: ../../api.rst:972 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Guild`." msgstr "" -#: ../../api.rst:972 ../../api.rst:995 ../../api.rst:1014 ../../api.rst:1033 -#: ../../api.rst:1052 ../../api.rst:1068 ../../api.rst:1083 ../../api.rst:1142 -#: ../../api.rst:1156 ../../api.rst:1167 ../../api.rst:1187 ../../api.rst:1202 -#: ../../api.rst:1217 ../../api.rst:1241 ../../api.rst:1258 ../../api.rst:1274 -#: ../../api.rst:1286 ../../api.rst:1299 ../../api.rst:1310 ../../api.rst:1321 +#: ../../api.rst:975 ../../api.rst:998 ../../api.rst:1017 ../../api.rst:1036 +#: ../../api.rst:1055 ../../api.rst:1071 ../../api.rst:1086 ../../api.rst:1145 +#: ../../api.rst:1159 ../../api.rst:1170 ../../api.rst:1190 ../../api.rst:1205 +#: ../../api.rst:1220 ../../api.rst:1244 ../../api.rst:1261 ../../api.rst:1277 +#: ../../api.rst:1289 ../../api.rst:1302 ../../api.rst:1313 ../../api.rst:1324 msgid "Possible attributes for :class:`AuditLogDiff`:" msgstr "" -#: ../../api.rst:974 +#: ../../api.rst:977 msgid ":attr:`~AuditLogDiff.afk_channel`" msgstr ":attr:`~AuditLogDiff.afk_channel`" -#: ../../api.rst:975 +#: ../../api.rst:978 msgid ":attr:`~AuditLogDiff.system_channel`" msgstr ":attr:`~AuditLogDiff.system_channel`" -#: ../../api.rst:976 +#: ../../api.rst:979 msgid ":attr:`~AuditLogDiff.afk_timeout`" msgstr ":attr:`~AuditLogDiff.afk_timeout`" -#: ../../api.rst:977 +#: ../../api.rst:980 msgid ":attr:`~AuditLogDiff.default_message_notifications`" msgstr ":attr:`~AuditLogDiff.default_message_notifications`" -#: ../../api.rst:978 +#: ../../api.rst:981 msgid ":attr:`~AuditLogDiff.explicit_content_filter`" msgstr ":attr:`~AuditLogDiff.explicit_content_filter`" -#: ../../api.rst:979 +#: ../../api.rst:982 msgid ":attr:`~AuditLogDiff.mfa_level`" msgstr ":attr:`~AuditLogDiff.mfa_level`" -#: ../../api.rst:980 ../../api.rst:997 ../../api.rst:1016 ../../api.rst:1035 -#: ../../api.rst:1172 ../../api.rst:1192 ../../api.rst:1207 ../../api.rst:1261 -#: ../../api.rst:1277 ../../api.rst:1289 ../../api.rst:1301 ../../api.rst:1312 -#: ../../api.rst:1323 +#: ../../api.rst:983 ../../api.rst:1000 ../../api.rst:1019 ../../api.rst:1038 +#: ../../api.rst:1175 ../../api.rst:1195 ../../api.rst:1210 ../../api.rst:1264 +#: ../../api.rst:1280 ../../api.rst:1292 ../../api.rst:1304 ../../api.rst:1315 +#: ../../api.rst:1326 msgid ":attr:`~AuditLogDiff.name`" msgstr ":attr:`~AuditLogDiff.name`" -#: ../../api.rst:981 +#: ../../api.rst:984 msgid ":attr:`~AuditLogDiff.owner`" msgstr ":attr:`~AuditLogDiff.owner`" -#: ../../api.rst:982 +#: ../../api.rst:985 msgid ":attr:`~AuditLogDiff.splash`" msgstr ":attr:`~AuditLogDiff.splash`" -#: ../../api.rst:983 +#: ../../api.rst:986 msgid ":attr:`~AuditLogDiff.vanity_url_code`" msgstr ":attr:`~AuditLogDiff.vanity_url_code`" -#: ../../api.rst:987 +#: ../../api.rst:990 msgid "A new channel was created." msgstr "" -#: ../../api.rst:989 +#: ../../api.rst:992 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is " "either a :class:`abc.GuildChannel` or :class:`Object` with an ID." msgstr "" -#: ../../api.rst:992 +#: ../../api.rst:995 msgid "" "A more filled out object in the :class:`Object` case can be found by " "using :attr:`~AuditLogEntry.after`." msgstr "" -#: ../../api.rst:998 ../../api.rst:1017 ../../api.rst:1036 ../../api.rst:1057 -#: ../../api.rst:1073 ../../api.rst:1088 +#: ../../api.rst:1001 ../../api.rst:1020 ../../api.rst:1039 ../../api.rst:1060 +#: ../../api.rst:1076 ../../api.rst:1091 msgid ":attr:`~AuditLogDiff.type`" msgstr ":attr:`~AuditLogDiff.type`" -#: ../../api.rst:999 ../../api.rst:1019 ../../api.rst:1037 +#: ../../api.rst:1002 ../../api.rst:1022 ../../api.rst:1040 msgid ":attr:`~AuditLogDiff.overwrites`" msgstr ":attr:`~AuditLogDiff.overwrites`" -#: ../../api.rst:1003 +#: ../../api.rst:1006 msgid "A channel was updated. Things that trigger this include:" msgstr "" -#: ../../api.rst:1005 +#: ../../api.rst:1008 msgid "The channel name or topic was changed" msgstr "" -#: ../../api.rst:1006 +#: ../../api.rst:1009 msgid "The channel bitrate was changed" msgstr "" -#: ../../api.rst:1008 ../../api.rst:1043 +#: ../../api.rst:1011 ../../api.rst:1046 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`abc.GuildChannel` or :class:`Object` with an ID." msgstr "" -#: ../../api.rst:1011 +#: ../../api.rst:1014 msgid "" "A more filled out object in the :class:`Object` case can be found by " "using :attr:`~AuditLogEntry.after` or :attr:`~AuditLogEntry.before`." msgstr "" -#: ../../api.rst:1018 +#: ../../api.rst:1021 msgid ":attr:`~AuditLogDiff.position`" msgstr ":attr:`~AuditLogDiff.position`" -#: ../../api.rst:1020 +#: ../../api.rst:1023 msgid ":attr:`~AuditLogDiff.topic`" msgstr ":attr:`~AuditLogDiff.topic`" -#: ../../api.rst:1021 +#: ../../api.rst:1024 msgid ":attr:`~AuditLogDiff.bitrate`" msgstr ":attr:`~AuditLogDiff.bitrate`" -#: ../../api.rst:1025 +#: ../../api.rst:1028 msgid "A channel was deleted." msgstr "" -#: ../../api.rst:1027 +#: ../../api.rst:1030 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is an " ":class:`Object` with an ID." msgstr "" -#: ../../api.rst:1030 +#: ../../api.rst:1033 msgid "" "A more filled out object can be found by using the " ":attr:`~AuditLogEntry.before` object." msgstr "" -#: ../../api.rst:1041 +#: ../../api.rst:1044 msgid "A channel permission overwrite was created." msgstr "" -#: ../../api.rst:1046 +#: ../../api.rst:1049 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.extra` is " "either a :class:`Role` or :class:`Member`. If the object is not found " @@ -3045,350 +3055,350 @@ msgid "" "dictate what type of ID it is." msgstr "" -#: ../../api.rst:1054 ../../api.rst:1070 ../../api.rst:1085 +#: ../../api.rst:1057 ../../api.rst:1073 ../../api.rst:1088 msgid ":attr:`~AuditLogDiff.deny`" msgstr ":attr:`~AuditLogDiff.deny`" -#: ../../api.rst:1055 ../../api.rst:1071 ../../api.rst:1086 +#: ../../api.rst:1058 ../../api.rst:1074 ../../api.rst:1089 msgid ":attr:`~AuditLogDiff.allow`" msgstr ":attr:`~AuditLogDiff.allow`" -#: ../../api.rst:1056 ../../api.rst:1072 ../../api.rst:1087 +#: ../../api.rst:1059 ../../api.rst:1075 ../../api.rst:1090 msgid ":attr:`~AuditLogDiff.id`" msgstr ":attr:`~AuditLogDiff.id`" -#: ../../api.rst:1061 +#: ../../api.rst:1064 msgid "" "A channel permission overwrite was changed, this is typically when the " "permission values change." msgstr "" -#: ../../api.rst:1064 ../../api.rst:1079 +#: ../../api.rst:1067 ../../api.rst:1082 msgid "" "See :attr:`overwrite_create` for more information on how the " ":attr:`~AuditLogEntry.target` and :attr:`~AuditLogEntry.extra` fields are" " set." msgstr "" -#: ../../api.rst:1077 +#: ../../api.rst:1080 msgid "A channel permission overwrite was deleted." msgstr "" -#: ../../api.rst:1092 +#: ../../api.rst:1095 msgid "A member was kicked." msgstr "" -#: ../../api.rst:1094 +#: ../../api.rst:1097 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`User` who got kicked." msgstr "" -#: ../../api.rst:1097 ../../api.rst:1112 ../../api.rst:1121 ../../api.rst:1130 +#: ../../api.rst:1100 ../../api.rst:1115 ../../api.rst:1124 ../../api.rst:1133 msgid "When this is the action, :attr:`~AuditLogEntry.changes` is empty." msgstr "" -#: ../../api.rst:1101 +#: ../../api.rst:1104 msgid "A member prune was triggered." msgstr "" -#: ../../api.rst:1103 +#: ../../api.rst:1106 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is set" " to `None`." msgstr "" -#: ../../api.rst:1106 ../../api.rst:1334 +#: ../../api.rst:1109 ../../api.rst:1337 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.extra` is set " "to an unspecified proxy object with two attributes:" msgstr "" -#: ../../api.rst:1109 +#: ../../api.rst:1112 msgid "``delete_members_days``: An integer specifying how far the prune was." msgstr "" -#: ../../api.rst:1110 +#: ../../api.rst:1113 msgid "``members_removed``: An integer specifying how many members were removed." msgstr "" -#: ../../api.rst:1116 +#: ../../api.rst:1119 msgid "A member was banned." msgstr "" -#: ../../api.rst:1118 +#: ../../api.rst:1121 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`User` who got banned." msgstr "" -#: ../../api.rst:1125 +#: ../../api.rst:1128 msgid "A member was unbanned." msgstr "" -#: ../../api.rst:1127 +#: ../../api.rst:1130 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`User` who got unbanned." msgstr "" -#: ../../api.rst:1134 +#: ../../api.rst:1137 msgid "A member has updated. This triggers in the following situations:" msgstr "" -#: ../../api.rst:1136 +#: ../../api.rst:1139 msgid "A nickname was changed" msgstr "" -#: ../../api.rst:1137 +#: ../../api.rst:1140 msgid "They were server muted or deafened (or it was undo'd)" msgstr "" -#: ../../api.rst:1139 +#: ../../api.rst:1142 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Member` or :class:`User` who got updated." msgstr "" -#: ../../api.rst:1144 +#: ../../api.rst:1147 msgid ":attr:`~AuditLogDiff.nick`" msgstr ":attr:`~AuditLogDiff.nick`" -#: ../../api.rst:1145 +#: ../../api.rst:1148 msgid ":attr:`~AuditLogDiff.mute`" msgstr ":attr:`~AuditLogDiff.mute`" -#: ../../api.rst:1146 +#: ../../api.rst:1149 msgid ":attr:`~AuditLogDiff.deaf`" msgstr ":attr:`~AuditLogDiff.deaf`" -#: ../../api.rst:1150 +#: ../../api.rst:1153 msgid "" "A member's role has been updated. This triggers when a member either " "gains a role or losses a role." msgstr "" -#: ../../api.rst:1153 +#: ../../api.rst:1156 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Member` or :class:`User` who got the role." msgstr "" -#: ../../api.rst:1158 +#: ../../api.rst:1161 msgid ":attr:`~AuditLogDiff.roles`" msgstr ":attr:`~AuditLogDiff.roles`" -#: ../../api.rst:1162 +#: ../../api.rst:1165 msgid "A new role was created." msgstr "" -#: ../../api.rst:1164 ../../api.rst:1184 ../../api.rst:1199 +#: ../../api.rst:1167 ../../api.rst:1187 ../../api.rst:1202 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Role` or a :class:`Object` with the ID." msgstr "" -#: ../../api.rst:1169 ../../api.rst:1189 ../../api.rst:1204 +#: ../../api.rst:1172 ../../api.rst:1192 ../../api.rst:1207 msgid ":attr:`~AuditLogDiff.colour`" msgstr ":attr:`~AuditLogDiff.colour`" -#: ../../api.rst:1170 ../../api.rst:1190 ../../api.rst:1205 +#: ../../api.rst:1173 ../../api.rst:1193 ../../api.rst:1208 msgid ":attr:`~AuditLogDiff.mentionable`" msgstr ":attr:`~AuditLogDiff.mentionable`" -#: ../../api.rst:1171 ../../api.rst:1191 ../../api.rst:1206 +#: ../../api.rst:1174 ../../api.rst:1194 ../../api.rst:1209 msgid ":attr:`~AuditLogDiff.hoist`" msgstr ":attr:`~AuditLogDiff.hoist`" -#: ../../api.rst:1173 ../../api.rst:1193 ../../api.rst:1208 +#: ../../api.rst:1176 ../../api.rst:1196 ../../api.rst:1211 msgid ":attr:`~AuditLogDiff.permissions`" msgstr ":attr:`~AuditLogDiff.permissions`" -#: ../../api.rst:1177 +#: ../../api.rst:1180 msgid "A role was updated. This triggers in the following situations:" msgstr "" -#: ../../api.rst:1179 +#: ../../api.rst:1182 msgid "The name has changed" msgstr "" -#: ../../api.rst:1180 +#: ../../api.rst:1183 msgid "The permissions have changed" msgstr "" -#: ../../api.rst:1181 +#: ../../api.rst:1184 msgid "The colour has changed" msgstr "" -#: ../../api.rst:1182 +#: ../../api.rst:1185 msgid "Its hoist/mentionable state has changed" msgstr "" -#: ../../api.rst:1197 +#: ../../api.rst:1200 msgid "A role was deleted." msgstr "" -#: ../../api.rst:1212 +#: ../../api.rst:1215 msgid "An invite was created." msgstr "" -#: ../../api.rst:1214 +#: ../../api.rst:1217 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Invite` that was created." msgstr "" -#: ../../api.rst:1219 ../../api.rst:1243 +#: ../../api.rst:1222 ../../api.rst:1246 msgid ":attr:`~AuditLogDiff.max_age`" msgstr ":attr:`~AuditLogDiff.max_age`" -#: ../../api.rst:1220 ../../api.rst:1244 +#: ../../api.rst:1223 ../../api.rst:1247 msgid ":attr:`~AuditLogDiff.code`" msgstr ":attr:`~AuditLogDiff.code`" -#: ../../api.rst:1221 ../../api.rst:1245 +#: ../../api.rst:1224 ../../api.rst:1248 msgid ":attr:`~AuditLogDiff.temporary`" msgstr ":attr:`~AuditLogDiff.temporary`" -#: ../../api.rst:1222 ../../api.rst:1246 +#: ../../api.rst:1225 ../../api.rst:1249 msgid ":attr:`~AuditLogDiff.inviter`" msgstr ":attr:`~AuditLogDiff.inviter`" -#: ../../api.rst:1223 ../../api.rst:1247 ../../api.rst:1260 ../../api.rst:1276 -#: ../../api.rst:1288 +#: ../../api.rst:1226 ../../api.rst:1250 ../../api.rst:1263 ../../api.rst:1279 +#: ../../api.rst:1291 msgid ":attr:`~AuditLogDiff.channel`" msgstr ":attr:`~AuditLogDiff.channel`" -#: ../../api.rst:1224 ../../api.rst:1248 +#: ../../api.rst:1227 ../../api.rst:1251 msgid ":attr:`~AuditLogDiff.uses`" msgstr ":attr:`~AuditLogDiff.uses`" -#: ../../api.rst:1225 ../../api.rst:1249 +#: ../../api.rst:1228 ../../api.rst:1252 msgid ":attr:`~AuditLogDiff.max_uses`" msgstr ":attr:`~AuditLogDiff.max_uses`" -#: ../../api.rst:1229 +#: ../../api.rst:1232 msgid "An invite was updated." msgstr "" -#: ../../api.rst:1231 +#: ../../api.rst:1234 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Invite` that was updated." msgstr "" -#: ../../api.rst:1236 +#: ../../api.rst:1239 msgid "An invite was deleted." msgstr "" -#: ../../api.rst:1238 +#: ../../api.rst:1241 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Invite` that was deleted." msgstr "" -#: ../../api.rst:1253 +#: ../../api.rst:1256 msgid "A webhook was created." msgstr "" -#: ../../api.rst:1255 ../../api.rst:1271 ../../api.rst:1283 +#: ../../api.rst:1258 ../../api.rst:1274 ../../api.rst:1286 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Object` with the webhook ID." msgstr "" -#: ../../api.rst:1262 ../../api.rst:1290 +#: ../../api.rst:1265 ../../api.rst:1293 msgid ":attr:`~AuditLogDiff.type` (always set to ``1`` if so)" msgstr "" -#: ../../api.rst:1266 +#: ../../api.rst:1269 msgid "A webhook was updated. This trigger in the following situations:" msgstr "" -#: ../../api.rst:1268 +#: ../../api.rst:1271 msgid "The webhook name changed" msgstr "" -#: ../../api.rst:1269 +#: ../../api.rst:1272 msgid "The webhook channel changed" msgstr "" -#: ../../api.rst:1281 +#: ../../api.rst:1284 msgid "A webhook was deleted." msgstr "" -#: ../../api.rst:1294 +#: ../../api.rst:1297 msgid "An emoji was created." msgstr "" -#: ../../api.rst:1296 ../../api.rst:1307 +#: ../../api.rst:1299 ../../api.rst:1310 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Emoji` or :class:`Object` with the emoji ID." msgstr "" -#: ../../api.rst:1305 +#: ../../api.rst:1308 msgid "An emoji was updated. This triggers when the name has changed." msgstr "" -#: ../../api.rst:1316 +#: ../../api.rst:1319 msgid "An emoji was deleted." msgstr "" -#: ../../api.rst:1318 +#: ../../api.rst:1321 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Object` with the emoji ID." msgstr "" -#: ../../api.rst:1327 +#: ../../api.rst:1330 msgid "" "A message was deleted by a moderator. Note that this only triggers if the" " message was deleted by either bulk delete or deletion by someone other " "than the author." msgstr "" -#: ../../api.rst:1331 +#: ../../api.rst:1334 msgid "" "When this is the action, the type of :attr:`~AuditLogEntry.target` is the" " :class:`Member` or :class:`User` who had their message deleted." msgstr "" -#: ../../api.rst:1337 +#: ../../api.rst:1340 msgid "``count``: An integer specifying how many messages were deleted." msgstr "" -#: ../../api.rst:1338 +#: ../../api.rst:1341 msgid "" "``channel``: A :class:`TextChannel` or :class:`Object` with the channel " "ID where the message got deleted." msgstr "" -#: ../../api.rst:1343 +#: ../../api.rst:1346 msgid "Represents the category that the :class:`AuditLogAction` belongs to." msgstr "" -#: ../../api.rst:1345 +#: ../../api.rst:1348 msgid "This can be retrieved via :attr:`AuditLogEntry.category`." msgstr "" -#: ../../api.rst:1349 +#: ../../api.rst:1352 msgid "The action is the creation of something." msgstr "" -#: ../../api.rst:1353 +#: ../../api.rst:1356 msgid "The action is the deletion of something." msgstr "" -#: ../../api.rst:1357 +#: ../../api.rst:1360 msgid "The action is the update of something." msgstr "" -#: ../../api.rst:1362 +#: ../../api.rst:1365 msgid "Async Iterator" msgstr "非同期イテレータ" -#: ../../api.rst:1364 +#: ../../api.rst:1367 msgid "" "Some API functions return an \"async iterator\". An async iterator is " "something that is capable of being used in an `async for " @@ -3396,71 +3406,71 @@ msgid "" "statement>`_ statement." msgstr "" -#: ../../api.rst:1368 +#: ../../api.rst:1371 msgid "These async iterators can be used as follows: ::" msgstr "" -#: ../../api.rst:1373 +#: ../../api.rst:1376 msgid "" "Certain utilities make working with async iterators easier, detailed " "below." msgstr "" -#: ../../api.rst:1377 +#: ../../api.rst:1380 msgid "" "Represents the \"AsyncIterator\" concept. Note that no such class exists," " it is purely abstract." msgstr "" -#: ../../api.rst:1384 +#: ../../api.rst:1387 msgid "" "Iterates over the contents of the async iterator. Note that this is only " "available in Python 3.5 or higher." msgstr "" -#: ../../api.rst:1392 +#: ../../api.rst:1395 msgid "" "Advances the iterator by one, if possible. If no more items are found " "then this raises :exc:`NoMoreItems`." msgstr "" -#: ../../api.rst:1399 +#: ../../api.rst:1402 msgid "Similar to :func:`utils.get` except run over the async iterator." msgstr "" -#: ../../api.rst:1401 +#: ../../api.rst:1404 msgid "Getting the last message by a user named 'Dave' or ``None``: ::" msgstr "" -#: ../../api.rst:1409 +#: ../../api.rst:1412 msgid "Similar to :func:`utils.find` except run over the async iterator." msgstr "" -#: ../../api.rst:1411 +#: ../../api.rst:1414 msgid "Unlike :func:`utils.find`\\, the predicate provided can be a coroutine." msgstr "" -#: ../../api.rst:1414 +#: ../../api.rst:1417 msgid "Getting the last audit log with a reason or ``None``: ::" msgstr "" -#: ../../api.rst:1421 +#: ../../api.rst:1424 msgid "The predicate to use. Can be a coroutine." msgstr "" -#: ../../api.rst:1422 +#: ../../api.rst:1425 msgid "The first element that returns ``True`` for the predicate or ``None``." msgstr "" -#: ../../api.rst:1428 +#: ../../api.rst:1431 msgid "Flattens the async iterator into a :class:`list` with all the elements." msgstr "" -#: ../../api.rst:1430 +#: ../../api.rst:1433 msgid "A list of every element in the async iterator." msgstr "" -#: ../../api.rst:1435 +#: ../../api.rst:1438 msgid "" "This is similar to the built-in :func:`map ` function. " "Another :class:`AsyncIterator` is returned that executes the function on " @@ -3468,38 +3478,38 @@ msgid "" " function or a coroutine." msgstr "" -#: ../../api.rst:1440 +#: ../../api.rst:1443 msgid "Creating a content iterator: ::" msgstr "" -#: ../../api.rst:1448 +#: ../../api.rst:1451 msgid "The function to call on every element. Could be a coroutine." msgstr "" -#: ../../api.rst:1449 ../../api.rst:1466 +#: ../../api.rst:1452 ../../api.rst:1469 msgid "An async iterator." msgstr "" -#: ../../api.rst:1453 +#: ../../api.rst:1456 msgid "" "This is similar to the built-in :func:`filter ` function. " "Another :class:`AsyncIterator` is returned that filters over the original" " async iterator. This predicate can be a regular function or a coroutine." msgstr "" -#: ../../api.rst:1457 +#: ../../api.rst:1460 msgid "Getting messages by non-bot accounts: ::" msgstr "" -#: ../../api.rst:1465 +#: ../../api.rst:1468 msgid "The predicate to call on every element. Could be a coroutine." msgstr "" -#: ../../api.rst:1470 +#: ../../api.rst:1473 msgid "Audit Log Data" msgstr "サーバーログデータ" -#: ../../api.rst:1472 +#: ../../api.rst:1475 msgid "" "Working with :meth:`Guild.audit_logs` is a complicated process with a lot" " of machinery involved. The library attempts to make it easy to use and " @@ -3569,91 +3579,91 @@ msgstr "" msgid ":class:`AuditLogDiff` -- The target's subsequent state." msgstr "" -#: ../../api.rst:1481 +#: ../../api.rst:1484 msgid "An audit log change set." msgstr "" -#: ../../api.rst:1485 +#: ../../api.rst:1488 msgid "The old value. The attribute has the type of :class:`AuditLogDiff`." msgstr "" -#: ../../api.rst:1487 ../../api.rst:1507 +#: ../../api.rst:1490 ../../api.rst:1510 msgid "" "Depending on the :class:`AuditLogActionCategory` retrieved by " ":attr:`~AuditLogEntry.category`\\, the data retrieved by this attribute " "differs:" msgstr "" -#: ../../api.rst:1492 ../../api.rst:1512 +#: ../../api.rst:1495 ../../api.rst:1515 msgid "Category" msgstr "" -#: ../../api.rst:1492 ../../api.rst:1512 discord.PermissionOverwrite:15 of +#: ../../api.rst:1495 ../../api.rst:1515 discord.PermissionOverwrite:15 of msgid "Description" msgstr "" -#: ../../api.rst:1494 ../../api.rst:1514 +#: ../../api.rst:1497 ../../api.rst:1517 msgid ":attr:`~AuditLogActionCategory.create`" msgstr ":attr:`~AuditLogActionCategory.create`" -#: ../../api.rst:1494 +#: ../../api.rst:1497 msgid "All attributes are set to ``None``." msgstr "" -#: ../../api.rst:1496 ../../api.rst:1516 +#: ../../api.rst:1499 ../../api.rst:1519 msgid ":attr:`~AuditLogActionCategory.delete`" msgstr ":attr:`~AuditLogActionCategory.delete`" -#: ../../api.rst:1496 +#: ../../api.rst:1499 msgid "All attributes are set the value before deletion." msgstr "" -#: ../../api.rst:1498 ../../api.rst:1518 +#: ../../api.rst:1501 ../../api.rst:1521 msgid ":attr:`~AuditLogActionCategory.update`" msgstr ":attr:`~AuditLogActionCategory.update`" -#: ../../api.rst:1498 +#: ../../api.rst:1501 msgid "All attributes are set the value before updating." msgstr "" -#: ../../api.rst:1500 ../../api.rst:1520 +#: ../../api.rst:1503 ../../api.rst:1523 msgid "``None``" msgstr "``None``" -#: ../../api.rst:1500 ../../api.rst:1520 +#: ../../api.rst:1503 ../../api.rst:1523 msgid "No attributes are set." msgstr "" -#: ../../api.rst:1505 +#: ../../api.rst:1508 msgid "The new value. The attribute has the type of :class:`AuditLogDiff`." msgstr "" -#: ../../api.rst:1514 +#: ../../api.rst:1517 msgid "All attributes are set to the created value" msgstr "" -#: ../../api.rst:1516 +#: ../../api.rst:1519 msgid "All attributes are set to ``None``" msgstr "" -#: ../../api.rst:1518 +#: ../../api.rst:1521 msgid "All attributes are set the value after updating." msgstr "" -#: ../../api.rst:1525 +#: ../../api.rst:1528 msgid "" "Represents an audit log \"change\" object. A change object has dynamic " "attributes that depend on the type of action being done. Certain actions " "map to certain attributes being set." msgstr "" -#: ../../api.rst:1529 +#: ../../api.rst:1532 msgid "" "Note that accessing an attribute that does not match the specified action" " will lead to an attribute error." msgstr "" -#: ../../api.rst:1532 +#: ../../api.rst:1535 msgid "" "To get a list of attributes that have been set, you can iterate over " "them. To see a list of all possible attributes that could be set based on" @@ -3662,166 +3672,166 @@ msgid "" "attributes that are possible." msgstr "" -#: ../../api.rst:1539 +#: ../../api.rst:1542 msgid "Return an iterator over (attribute, value) tuple of this diff." msgstr "" -#: ../../api.rst:1543 +#: ../../api.rst:1546 msgid ":class:`str` – A name of something." msgstr "" -#: ../../api.rst:1547 +#: ../../api.rst:1550 msgid ":class:`str` – A guild's icon hash. See also :attr:`Guild.icon`." msgstr "" -#: ../../api.rst:1551 +#: ../../api.rst:1554 msgid "" ":class:`str` – The guild's invite splash hash. See also " ":attr:`Guild.splash`." msgstr "" -#: ../../api.rst:1555 +#: ../../api.rst:1558 msgid "" "Union[:class:`Member`, :class:`User`] – The guild's owner. See also " ":attr:`Guild.owner`" msgstr "" -#: ../../api.rst:1559 +#: ../../api.rst:1562 msgid "" ":class:`GuildRegion` – The guild's voice region. See also " ":attr:`Guild.region`." msgstr "" -#: ../../api.rst:1563 +#: ../../api.rst:1566 msgid "Union[:class:`VoiceChannel`, :class:`Object`] – The guild's AFK channel." msgstr "" -#: ../../api.rst:1565 ../../api.rst:1574 +#: ../../api.rst:1568 ../../api.rst:1577 msgid "" "If this could not be found, then it falls back to a :class:`Object` with " "the ID being set." msgstr "" -#: ../../api.rst:1568 +#: ../../api.rst:1571 msgid "See :attr:`Guild.afk_channel`." msgstr "" -#: ../../api.rst:1572 +#: ../../api.rst:1575 msgid "Union[:class:`TextChannel`, :class:`Object`] – The guild's system channel." msgstr "" -#: ../../api.rst:1577 +#: ../../api.rst:1580 msgid "See :attr:`Guild.system_channel`." msgstr "" -#: ../../api.rst:1581 +#: ../../api.rst:1584 msgid ":class:`int` – The guild's AFK timeout. See :attr:`Guild.afk_timeout`." msgstr "" -#: ../../api.rst:1585 +#: ../../api.rst:1588 msgid ":class:`int` - The guild's MFA level. See :attr:`Guild.mfa_level`." msgstr "" -#: ../../api.rst:1589 +#: ../../api.rst:1592 msgid ":class:`bool` – The guild's widget has been enabled or disabled." msgstr "" -#: ../../api.rst:1593 +#: ../../api.rst:1596 msgid "Union[:class:`TextChannel`, :class:`Object`] – The widget's channel." msgstr "" -#: ../../api.rst:1595 +#: ../../api.rst:1598 msgid "" "If this could not be found then it falls back to a :class:`Object` with " "the ID being set." msgstr "" -#: ../../api.rst:1600 +#: ../../api.rst:1603 msgid ":class:`VerificationLevel` – The guild's verification level." msgstr "" -#: ../../api.rst:1602 +#: ../../api.rst:1605 msgid "See also :attr:`Guild.verification_level`." msgstr "" -#: ../../api.rst:1606 +#: ../../api.rst:1609 msgid ":class:`NotificationLevel` – The guild's default notification level." msgstr "" -#: ../../api.rst:1608 +#: ../../api.rst:1611 #, fuzzy msgid "See also :attr:`Guild.default_notifications`." msgstr ":attr:`~AuditLogDiff.default_message_notifications`" -#: ../../api.rst:1612 +#: ../../api.rst:1615 msgid ":class:`ContentFilter` – The guild's content filter." msgstr "" -#: ../../api.rst:1614 +#: ../../api.rst:1617 msgid "See also :attr:`Guild.explicit_content_filter`." msgstr "" -#: ../../api.rst:1618 +#: ../../api.rst:1621 msgid ":class:`int` – The guild's default message notification setting." msgstr "" -#: ../../api.rst:1622 +#: ../../api.rst:1625 msgid ":class:`str` – The guild's vanity URL." msgstr "" -#: ../../api.rst:1624 +#: ../../api.rst:1627 msgid "" "See also :meth:`Guild.vanity_invite` and " ":meth:`Guild.change_vanity_invite`." msgstr "" -#: ../../api.rst:1628 +#: ../../api.rst:1631 msgid "" ":class:`int` – The position of a :class:`Role` or " ":class:`abc.GuildChannel`." msgstr "" -#: ../../api.rst:1632 +#: ../../api.rst:1635 msgid "*Union[int, str]* – The type of channel or channel permission overwrite." msgstr "" -#: ../../api.rst:1634 +#: ../../api.rst:1637 msgid "" "If the type is an :class:`int`, then it is a type of channel which can be" " either ``0`` to indicate a text channel or ``1`` to indicate a voice " "channel." msgstr "" -#: ../../api.rst:1637 +#: ../../api.rst:1640 msgid "" "If the type is a :class:`str`, then it is a type of permission overwrite " "which can be either ``'role'`` or ``'member'``." msgstr "" -#: ../../api.rst:1642 +#: ../../api.rst:1645 msgid ":class:`str` – The topic of a :class:`TextChannel`." msgstr ":class:`str` – :class:`TextChannel` のトピック。" -#: ../../api.rst:1644 +#: ../../api.rst:1647 msgid "See also :attr:`TextChannel.topic`." msgstr "" -#: ../../api.rst:1648 +#: ../../api.rst:1651 msgid ":class:`int` – The bitrate of a :class:`VoiceChannel`." msgstr "" -#: ../../api.rst:1650 +#: ../../api.rst:1653 msgid "See also :attr:`VoiceChannel.bitrate`." msgstr "" -#: ../../api.rst:1654 +#: ../../api.rst:1657 msgid "" "List[Tuple[target, :class:`PermissionOverwrite`]] – A list of permission " "overwrite tuples that represents a target and a " ":class:`PermissionOverwrite` for said target." msgstr "" -#: ../../api.rst:1658 +#: ../../api.rst:1661 msgid "" "The first element is the object being targeted, which can either be a " ":class:`Member` or :class:`User` or :class:`Role`. If this object is not " @@ -3830,163 +3840,163 @@ msgid "" "type of ID it is." msgstr "" -#: ../../api.rst:1666 +#: ../../api.rst:1669 msgid "" "List[Union[:class:`Role`, :class:`Object`]] – A list of roles being added" " or removed from a member." msgstr "" -#: ../../api.rst:1669 +#: ../../api.rst:1672 msgid "" "If a role is not found then it is a :class:`Object` with the ID and name " "being filled in." msgstr "" -#: ../../api.rst:1674 +#: ../../api.rst:1677 msgid "*Optional[str]* – The nickname of a member." msgstr "" -#: ../../api.rst:1676 +#: ../../api.rst:1679 msgid "See also :attr:`Member.nick`" msgstr "" -#: ../../api.rst:1680 +#: ../../api.rst:1683 msgid ":class:`bool` – Whether the member is being server deafened." msgstr "" -#: ../../api.rst:1682 +#: ../../api.rst:1685 msgid "See also :attr:`VoiceState.deaf`." msgstr "" -#: ../../api.rst:1686 +#: ../../api.rst:1689 msgid ":class:`bool` – Whether the member is being server muted." msgstr "" -#: ../../api.rst:1688 +#: ../../api.rst:1691 msgid "See also :attr:`VoiceState.mute`." msgstr "" -#: ../../api.rst:1692 +#: ../../api.rst:1695 msgid ":class:`Permissions` – The permissions of a role." msgstr ":class:`Permissions` – 役割の権限。" -#: ../../api.rst:1694 +#: ../../api.rst:1697 msgid "See also :attr:`Role.permissions`." msgstr "" -#: ../../api.rst:1699 +#: ../../api.rst:1702 msgid ":class:`Colour` – The colour of a role." msgstr ":class:`Colour` – 役割の色。" -#: ../../api.rst:1701 +#: ../../api.rst:1704 msgid "See also :attr:`Role.colour`" msgstr "" -#: ../../api.rst:1705 +#: ../../api.rst:1708 msgid ":class:`bool` – Whether the role is being hoisted or not." msgstr "" -#: ../../api.rst:1707 +#: ../../api.rst:1710 msgid "See also :attr:`Role.hoist`" msgstr "" -#: ../../api.rst:1711 +#: ../../api.rst:1714 msgid ":class:`bool` – Whether the role is mentionable or not." msgstr "" -#: ../../api.rst:1713 +#: ../../api.rst:1716 msgid "See also :attr:`Role.mentionable`" msgstr "" -#: ../../api.rst:1717 +#: ../../api.rst:1720 msgid ":class:`str` – The invite's code." msgstr "" -#: ../../api.rst:1719 +#: ../../api.rst:1722 msgid "See also :attr:`Invite.code`" msgstr "" -#: ../../api.rst:1723 +#: ../../api.rst:1726 msgid "Union[:class:`abc.GuildChannel`, :class:`Object`] – A guild channel." msgstr "" -#: ../../api.rst:1725 +#: ../../api.rst:1728 msgid "" "If the channel is not found then it is a :class:`Object` with the ID " "being set. In some cases the channel name is also set." msgstr "" -#: ../../api.rst:1730 +#: ../../api.rst:1733 msgid ":class:`User` – The user who created the invite." msgstr ":class:`User` – 招待を作成したユーザー。" -#: ../../api.rst:1732 +#: ../../api.rst:1735 msgid "See also :attr:`Invite.inviter`." msgstr "" -#: ../../api.rst:1736 +#: ../../api.rst:1739 msgid ":class:`int` – The invite's max uses." msgstr ":class:`int` – 招待の最大使用可能回数。" -#: ../../api.rst:1738 +#: ../../api.rst:1741 msgid "See also :attr:`Invite.max_uses`." msgstr "" -#: ../../api.rst:1742 +#: ../../api.rst:1745 msgid ":class:`int` – The invite's current uses." msgstr ":class:`int` – 招待の現在までの使用回数。" -#: ../../api.rst:1744 +#: ../../api.rst:1747 msgid "See also :attr:`Invite.uses`." msgstr "" -#: ../../api.rst:1748 +#: ../../api.rst:1751 msgid ":class:`int` – The invite's max age in seconds." msgstr "" -#: ../../api.rst:1750 +#: ../../api.rst:1753 msgid "See also :attr:`Invite.max_age`." msgstr "" -#: ../../api.rst:1754 +#: ../../api.rst:1757 msgid ":class:`bool` – If the invite is a temporary invite." msgstr "" -#: ../../api.rst:1756 +#: ../../api.rst:1759 msgid "See also :attr:`Invite.temporary`." msgstr "" -#: ../../api.rst:1761 +#: ../../api.rst:1764 msgid ":class:`Permissions` – The permissions being allowed or denied." msgstr "" -#: ../../api.rst:1765 +#: ../../api.rst:1768 msgid ":class:`int` – The ID of the object being changed." msgstr "" -#: ../../api.rst:1769 +#: ../../api.rst:1772 msgid ":class:`str` – The avatar hash of a member." msgstr "" -#: ../../api.rst:1771 +#: ../../api.rst:1774 msgid "See also :attr:`User.avatar`." msgstr "" -#: ../../api.rst:1775 +#: ../../api.rst:1778 msgid "" ":class:`int` – The number of seconds members have to wait before sending " "another message in the channel." msgstr "" -#: ../../api.rst:1778 +#: ../../api.rst:1781 msgid "See also :attr:`TextChannel.slowmode_delay`." msgstr "" -#: ../../api.rst:1784 +#: ../../api.rst:1787 msgid "Webhook Support" msgstr "Webhookサポート" -#: ../../api.rst:1786 +#: ../../api.rst:1789 msgid "" "discord.py offers support for creating, editing, and executing webhooks " "through the :class:`Webhook` class." @@ -4146,20 +4156,22 @@ msgid "" "``None``, then it is equivalent to png." msgstr "" -#: discord.ClientUser.avatar_url_as:18 discord.Guild.icon_url_as:8 -#: discord.Guild.splash_url_as:8 discord.Member.avatar_url_as:18 -#: discord.User.avatar_url_as:18 discord.Webhook.avatar_url_as:12 of +#: discord.ClientUser.avatar_url_as:18 discord.Guild.banner_url_as:8 +#: discord.Guild.icon_url_as:8 discord.Guild.splash_url_as:8 +#: discord.Member.avatar_url_as:18 discord.User.avatar_url_as:18 +#: discord.Webhook.avatar_url_as:12 of msgid "The size of the image to display." msgstr "" -#: discord.ClientUser.avatar_url_as:21 discord.Guild.icon_url_as:11 -#: discord.Guild.splash_url_as:11 discord.Member.avatar_url_as:21 -#: discord.User.avatar_url_as:21 discord.Webhook.avatar_url_as:15 of +#: discord.ClientUser.avatar_url_as:21 discord.Guild.banner_url_as:11 +#: discord.Guild.icon_url_as:11 discord.Guild.splash_url_as:11 +#: discord.Member.avatar_url_as:21 discord.User.avatar_url_as:21 +#: discord.Webhook.avatar_url_as:15 of msgid "The resulting CDN URL." msgstr "" -#: discord.Guild.icon_url_as:14 discord.Guild.splash_url_as:14 -#: discord.Webhook.avatar_url_as:18 of +#: discord.Guild.banner_url_as:14 discord.Guild.icon_url_as:14 +#: discord.Guild.splash_url_as:14 discord.Webhook.avatar_url_as:18 of msgid "" ":exc:`InvalidArgument` -- Bad image format passed to ``format`` or " "invalid ``size``." @@ -4324,11 +4336,11 @@ msgstr "" msgid "An alias for :meth:`~.Webhook.send`." msgstr "" -#: ../../api.rst:1792 +#: ../../api.rst:1795 msgid "Adapters" msgstr "" -#: ../../api.rst:1794 +#: ../../api.rst:1797 msgid "" "Adapters allow you to change how the request should be handled. They all " "build on a single interface, :meth:`WebhookAdapter.request`." @@ -4436,11 +4448,11 @@ msgid "" "then this will raise an :exc:`HTTPException` instead." msgstr "" -#: ../../api.rst:1809 +#: ../../api.rst:1812 msgid "Abstract Base Classes" msgstr "抽象基底クラス" -#: ../../api.rst:1811 +#: ../../api.rst:1814 msgid "" "An abstract base class (also known as an ``abc``) is a class that models " "can inherit to get their behaviour. The Python implementation of an `abc " @@ -4450,7 +4462,7 @@ msgid "" "``issubclass``\\." msgstr "" -#: ../../api.rst:1816 +#: ../../api.rst:1819 msgid "" "This library has a module related to abstract base classes, some of which" " are actually from the ``abc`` standard module, others which are not." @@ -5296,23 +5308,23 @@ msgid "" "to a voice server." msgstr "" -#: ../../api.rst:1846 +#: ../../api.rst:1849 msgid "Discord Models" msgstr "Discordモデル" -#: ../../api.rst:1848 +#: ../../api.rst:1851 msgid "" "Models are classes that are received from Discord and are not meant to be" " created by the user of the library." msgstr "モデルはDiscordから受け取るクラスであり、ユーザーによって作成されることを想定していません。" -#: ../../api.rst:1853 +#: ../../api.rst:1856 msgid "" "The classes listed below are **not intended to be created by users** and " "are also **read-only**." msgstr "下記のクラスは、 **ユーザーによって作成されることを想定しておらず** 、中には **読み取り専用** のものもあります。" -#: ../../api.rst:1856 +#: ../../api.rst:1859 msgid "" "For example, this means that you should not make your own :class:`User` " "instances nor should you modify the :class:`User` instance yourself." @@ -5320,7 +5332,7 @@ msgstr "" "つまり、独自の :class:`User` を作成は行うべきではなく、また、 :class:`User` " "インスタンスの値の変更もするべきではありません。" -#: ../../api.rst:1859 +#: ../../api.rst:1862 msgid "" "If you want to get one of these model classes instances they'd have to be" " through the cache, and a common way of doing so is through the " @@ -5331,13 +5343,13 @@ msgstr "" ":func:`utils.find` 関数を用いるか、 :ref:`discord-api-events` " "の特定のイベントから受け取る方法が挙げられます。" -#: ../../api.rst:1866 ../../api.rst:2103 +#: ../../api.rst:1869 ../../api.rst:2106 msgid "" "Nearly all classes here have ``__slots__`` defined which means that it is" " impossible to have dynamic attributes to the data classes." msgstr "ほぼすべてのクラスに ``__slots__`` が定義されています。つまり、データクラスに動的に変数を追加することは不可能です。" -#: ../../api.rst:1869 ../../api.rst:2109 +#: ../../api.rst:1872 ../../api.rst:2112 msgid "" "More information about ``__slots__`` can be found `in the official python" " documentation " @@ -5347,7 +5359,7 @@ msgstr "" "`_ " "を参照してください。" -#: ../../api.rst:1874 +#: ../../api.rst:1877 msgid "ClientUser" msgstr "クライアントユーザー" @@ -5663,7 +5675,7 @@ msgstr "" msgid "The channel to check your permissions for." msgstr "" -#: ../../api.rst:1881 +#: ../../api.rst:1884 msgid "Relationship" msgstr "リレーションシップ" @@ -5701,7 +5713,7 @@ msgstr "" msgid ":exc:`HTTPException` -- Deleting the relationship failed." msgstr "" -#: ../../api.rst:1887 +#: ../../api.rst:1890 msgid "User" msgstr "ユーザー" @@ -5820,7 +5832,7 @@ msgstr "" msgid ":exc:`HTTPException` -- Unblocking the user failed." msgstr "" -#: ../../api.rst:1901 +#: ../../api.rst:1904 msgid "Attachment" msgstr "アタッチメント" @@ -5886,19 +5898,28 @@ msgid "" " done." msgstr "" -#: discord.Attachment.save:13 of +#: discord.Attachment.save:12 of +msgid "" +"Whether to use :attr:`proxy_url` rather than :attr:`url` when downloading" +" the attachment. This will allow attachments to be saved after deletion " +"more often, which is generally deleted right after the message is " +"deleted. Note that this can still fail to download deleted attachments if" +" too much time has passed." +msgstr "" + +#: discord.Attachment.save:19 of msgid ":exc:`HTTPException` -- Saving the attachment failed." msgstr "" -#: discord.Attachment.save:14 of +#: discord.Attachment.save:20 of msgid ":exc:`NotFound` -- The attachment was deleted." msgstr "" -#: discord.Attachment.save:16 of +#: discord.Attachment.save:22 of msgid "The number of bytes written." msgstr "" -#: ../../api.rst:1907 +#: ../../api.rst:1910 msgid "Message" msgstr "メッセージ" @@ -6139,22 +6160,6 @@ msgid "" "message denoting the contents of the system message." msgstr "" -#: discord.Message.ack:3 of -msgid "Marks this message as read." -msgstr "" - -#: discord.Guild.ack:5 discord.Message.ack:5 of -msgid "The user must not be a bot user." -msgstr "" - -#: discord.Guild.ack:7 discord.Message.ack:7 of -msgid ":exc:`HTTPException` -- Acking failed." -msgstr "" - -#: discord.Guild.ack:8 discord.Message.ack:8 of -msgid ":exc:`ClientException` -- You must not be a bot user." -msgstr "" - #: discord.Message.add_reaction:3 of msgid "Add a reaction to the message." msgstr "" @@ -6341,7 +6346,23 @@ msgstr "" msgid ":exc:`HTTPException` -- Unpinning the message failed." msgstr "" -#: ../../api.rst:1913 +#: discord.Message.ack:3 of +msgid "Marks this message as read." +msgstr "" + +#: discord.Guild.ack:5 discord.Message.ack:5 of +msgid "The user must not be a bot user." +msgstr "" + +#: discord.Guild.ack:7 discord.Message.ack:7 of +msgid ":exc:`HTTPException` -- Acking failed." +msgstr "" + +#: discord.Guild.ack:8 discord.Message.ack:8 of +msgid ":exc:`ClientException` -- You must not be a bot user." +msgstr "" + +#: ../../api.rst:1916 msgid "Reaction" msgstr "リアクション" @@ -6457,7 +6478,7 @@ msgid "" "not found." msgstr "" -#: ../../api.rst:1923 +#: ../../api.rst:1926 msgid "CallMessage" msgstr "コールメッセージ" @@ -6509,7 +6530,7 @@ msgstr "" msgid "The timedelta object representing the duration." msgstr "" -#: ../../api.rst:1929 +#: ../../api.rst:1932 msgid "GroupCall" msgstr "グループコール" @@ -6573,7 +6594,7 @@ msgstr "" msgid "Optional[:class:`VoiceState`]" msgstr "Optional[:class:`VoiceState`]" -#: ../../api.rst:1935 +#: ../../api.rst:1938 msgid "Guild" msgstr "ギルド" @@ -6654,54 +6675,64 @@ msgid "" msgstr "" #: discord.Guild:66 of +#, fuzzy +msgid "Optional[:class:`str`] -- The guild's banner." +msgstr ":class:`str` -- ギルドのアイコン。" + +#: discord.Guild:70 of +#, fuzzy +msgid "Optional[:class:`str`] -- The guild's description." +msgstr ":class:`str` -- ギルドのアイコン。" + +#: discord.Guild:74 of msgid "" ":class:`int` -- Indicates the guild's two factor authorisation level. If " "this value is 0 then the guild does not require 2FA for their " "administrative members. If the value is 1 then they do." msgstr "" -#: discord.Guild:72 of +#: discord.Guild:80 of msgid ":class:`VerificationLevel` -- The guild's verification level." msgstr "" -#: discord.Guild:76 of +#: discord.Guild:84 of msgid ":class:`ContentFilter` -- The guild's explicit content filter." msgstr "" -#: discord.Guild:80 of +#: discord.Guild:88 of #, fuzzy msgid ":class:`NotificationLevel` -- The guild's notification settings." msgstr ":class:`str` -- ギルドのアイコン。" -#: discord.Guild:84 of +#: discord.Guild:92 of msgid "" "List[:class:`str`] -- A list of features that the guild has. They are " "currently as follows:" msgstr "" -#: discord.Guild:86 of +#: discord.Guild:94 of msgid "``VIP_REGIONS``: Guild has VIP voice regions" msgstr "" -#: discord.Guild:87 of +#: discord.Guild:95 of msgid "" "``VANITY_URL``: Guild has a vanity invite URL (e.g. discord.gg/discord-" "api)" msgstr "" -#: discord.Guild:88 of +#: discord.Guild:96 of msgid "``INVITE_SPLASH``: Guild's invite page has a special splash." msgstr "" -#: discord.Guild:89 of +#: discord.Guild:97 of msgid "``VERIFIED``: Guild is a \"verified\" server." msgstr "" -#: discord.Guild:90 of +#: discord.Guild:98 of msgid "``MORE_EMOJI``: Guild is allowed to have more than 50 custom emoji." msgstr "" -#: discord.Guild:94 of +#: discord.Guild:102 of #, fuzzy msgid "Optional[:class:`str`] -- The guild's invite splash." msgstr ":class:`str` -- ギルドのアイコン。" @@ -6890,13 +6921,36 @@ msgstr "" #, fuzzy msgid "" "The format must be one of 'webp', 'jpeg', 'jpg', or 'png'. The size must " -"be a power of 2 between 16 and 2048." +"be a power of 2 between 16 and 4096." msgstr "フォーマットは「webp」「jpeg」「jpg」「png」または「gif」である必要があり、「gif」はアニメーションアバターにのみ使用可能です。サイズは2の累乗値かつ16以上1024以下である必要があります。" #: discord.Guild.icon_url_as:6 of msgid "The format to attempt to convert the icon to." msgstr "" +#: discord.Guild.banner_url:1 discord.PartialInviteGuild.banner_url:1 of +msgid "" +"Returns the URL version of the guild's banner. Returns an empty string if" +" it has no banner." +msgstr "" + +#: discord.Guild.banner_url_as:1 of +msgid "" +"Returns a friendly URL version of the guild's banner. Returns an empty " +"string if it has no banner." +msgstr "" + +#: discord.Guild.banner_url_as:3 of +#, fuzzy +msgid "" +"The format must be one of 'webp', 'jpeg', or 'png'. The size must be a " +"power of 2 between 16 and 4096." +msgstr "フォーマットは「webp」「jpeg」「jpg」「png」または「gif」である必要があり、「gif」はアニメーションアバターにのみ使用可能です。サイズは2の累乗値かつ16以上1024以下である必要があります。" + +#: discord.Guild.banner_url_as:6 of +msgid "The format to attempt to convert the banner to." +msgstr "" + #: discord.Guild.splash_url:1 discord.PartialInviteGuild.splash_url:1 of msgid "" "Returns the URL version of the guild's invite splash. Returns an empty " @@ -7156,9 +7210,10 @@ msgstr "" msgid ":class:`Role`" msgstr ":class:`Role`" -#: discord.Guild.create_role:29 discord.Role.edit:26 of -msgid ":exc:`Forbidden` -- You do not have permissions to change the role." -msgstr "" +#: discord.Guild.create_role:29 of +#, fuzzy +msgid ":exc:`Forbidden` -- You do not have permissions to create the role." +msgstr ":exc:`Forbidden` -- カテゴリの編集に必要な権限を持っていない。" #: discord.Guild.create_role:30 discord.Role.edit:27 of msgid ":exc:`HTTPException` -- Editing the role failed." @@ -7306,72 +7361,84 @@ msgstr "" #: discord.Guild.edit:10 of msgid "" +"The new description of the guild. This is only available to guilds that " +"contain `VERIFIED` in :attr:`Guild.features`." +msgstr "" + +#: discord.Guild.edit:13 of +msgid "" "A :term:`py:bytes-like object` representing the icon. Only PNG/JPEG " "supported. Could be ``None`` to denote removal of the icon." msgstr "" -#: discord.Guild.edit:13 of +#: discord.Guild.edit:16 of +msgid "" +"A :term:`py:bytes-like object` representing the banner. Could be ``None``" +" to denote removal of the banner." +msgstr "" + +#: discord.Guild.edit:19 of msgid "" "A :term:`py:bytes-like object` representing the invite splash. Only " "PNG/JPEG supported. Could be ``None`` to denote removing the splash. Only" " available for partnered guilds with ``INVITE_SPLASH`` feature." msgstr "" -#: discord.Guild.edit:18 of +#: discord.Guild.edit:24 of msgid "The new region for the guild's voice communication." msgstr "" -#: discord.Guild.edit:20 of +#: discord.Guild.edit:26 of msgid "" "The new channel that is the AFK channel. Could be ``None`` for no AFK " "channel." msgstr "" -#: discord.Guild.edit:22 of +#: discord.Guild.edit:28 of msgid "The number of seconds until someone is moved to the AFK channel." msgstr "" -#: discord.Guild.edit:24 of +#: discord.Guild.edit:30 of msgid "" "The new owner of the guild to transfer ownership to. Note that you must " "be owner of the guild to do this." msgstr "" -#: discord.Guild.edit:27 of +#: discord.Guild.edit:33 of msgid "The new verification level for the guild." msgstr "" -#: discord.Guild.edit:29 of +#: discord.Guild.edit:35 of msgid "The new default notification level for the guild." msgstr "" -#: discord.Guild.edit:31 of +#: discord.Guild.edit:37 of msgid "The new explicit content filter for the guild." msgstr "" -#: discord.Guild.edit:33 of +#: discord.Guild.edit:39 of msgid "The new vanity code for the guild." msgstr "" -#: discord.Guild.edit:35 of +#: discord.Guild.edit:41 of msgid "" "The new channel that is used for the system channel. Could be ``None`` " "for no system channel." msgstr "" -#: discord.Guild.edit:37 of +#: discord.Guild.edit:43 of msgid "The reason for editing this guild. Shows up on the audit log." msgstr "" -#: discord.Guild.edit:40 of +#: discord.Guild.edit:46 of msgid ":exc:`Forbidden` -- You do not have permissions to edit the guild." msgstr "" -#: discord.Guild.edit:41 of +#: discord.Guild.edit:47 of msgid ":exc:`HTTPException` -- Editing the guild failed." msgstr "" -#: discord.Guild.edit:42 of +#: discord.Guild.edit:48 of msgid "" ":exc:`InvalidArgument` -- The image format passed in to ``icon`` is " "invalid. It must be PNG or JPG. This is also raised if you are not the " @@ -7580,7 +7647,7 @@ msgstr "" msgid "Marks every message in this guild as read." msgstr "" -#: ../../api.rst:1945 +#: ../../api.rst:1948 msgid "Member" msgstr "メンバー" @@ -7614,8 +7681,9 @@ msgstr "" #: discord.Member:27 of msgid "" -"`datetime.datetime` -- A datetime object that specifies the date and time" -" in UTC that the member joined the guild for the first time." +"Optional[:class:`datetime.datetime`] -- A datetime object that specifies " +"the date and time in UTC that the member joined the guild for the first " +"time. In certain cases, this can be ``None``." msgstr "" #: discord.Member:32 of @@ -7948,7 +8016,7 @@ msgstr "" msgid "Unbans this member. Equivalent to :meth:`Guild.unban`" msgstr "" -#: ../../api.rst:1959 +#: ../../api.rst:1962 msgid "Spotify" msgstr "Spotify" @@ -8051,7 +8119,7 @@ msgstr "" msgid ":class:`str` -- The party ID of the listening party." msgstr "" -#: ../../api.rst:1965 +#: ../../api.rst:1968 msgid "VoiceState" msgstr "ボイスステート" @@ -8096,7 +8164,7 @@ msgid "" "connected to. None if the user is not currently in a voice channel." msgstr "" -#: ../../api.rst:1971 +#: ../../api.rst:1974 msgid "Emoji" msgstr "絵文字" @@ -8214,7 +8282,7 @@ msgstr "" msgid "If roles is empty, the emoji is unrestricted." msgstr "" -#: ../../api.rst:1977 +#: ../../api.rst:1980 msgid "PartialEmoji" msgstr "" @@ -8260,7 +8328,7 @@ msgstr "" msgid "Returns a URL version of the emoji, if it is custom." msgstr "" -#: ../../api.rst:1983 +#: ../../api.rst:1986 msgid "Role" msgstr "役割" @@ -8410,13 +8478,17 @@ msgstr "" msgid "The reason for editing this role. Shows up on the audit log." msgstr "" +#: discord.Role.edit:26 of +msgid ":exc:`Forbidden` -- You do not have permissions to change the role." +msgstr "" + #: discord.Role.edit:28 of msgid "" ":exc:`InvalidArgument` -- An invalid position was given or the default " "role was asked to be moved." msgstr "" -#: ../../api.rst:1989 +#: ../../api.rst:1992 msgid "TextChannel" msgstr "テキストチャンネル" @@ -8471,6 +8543,11 @@ msgstr "" msgid "Checks if the channel is NSFW." msgstr "" +#: discord.TextChannel.is_news:1 of +#, fuzzy +msgid "Checks if the channel is a news channel." +msgstr "二つのユーザーが等しいかを比較します。" + #: discord.TextChannel.create_webhook:3 of msgid "Creates a webhook for this channel." msgstr "" @@ -8687,7 +8764,7 @@ msgstr "" msgid "The webhooks for this channel." msgstr "" -#: ../../api.rst:2003 +#: ../../api.rst:2006 msgid "VoiceChannel" msgstr "ボイスチャンネル" @@ -8761,7 +8838,7 @@ msgstr "チャンネルのビットレート。" msgid "The new channel's user limit." msgstr "チャンネルのユーザー人数制限。" -#: ../../api.rst:2010 +#: ../../api.rst:2013 msgid "CategoryChannel" msgstr "カテゴリチャンネル" @@ -8828,6 +8905,18 @@ msgid "" "this category." msgstr "" +#: discord.CategoryChannel.create_text_channel:3 of +msgid "" +"A shortcut method to :meth:`Guild.create_text_channel` to create a " +":class:`TextChannel` in the category." +msgstr "" + +#: discord.CategoryChannel.create_voice_channel:3 of +msgid "" +"A shortcut method to :meth:`Guild.create_voice_channel` to create a " +":class:`VoiceChannel` in the category." +msgstr "" + #: discord.CategoryChannel.edit:8 of msgid "The new category's name." msgstr "カテゴリの名前。" @@ -8858,7 +8947,7 @@ msgstr ":exc:`Forbidden` -- カテゴリの編集に必要な権限を持って msgid ":exc:`HTTPException` -- Editing the category failed." msgstr ":exc:`HTTPException` -- カテゴリの編集に失敗した。" -#: ../../api.rst:2017 +#: ../../api.rst:2020 msgid "DMChannel" msgstr "" @@ -8924,7 +9013,7 @@ msgstr "" msgid "The resolved permissions." msgstr "" -#: ../../api.rst:2031 +#: ../../api.rst:2034 msgid "GroupChannel" msgstr "" @@ -9031,7 +9120,7 @@ msgstr "" msgid "The resolved permissions for the user." msgstr "" -#: ../../api.rst:2045 +#: ../../api.rst:2048 msgid "PartialInviteGuild" msgstr "" @@ -9092,18 +9181,32 @@ msgstr ":class:`str` -- ギルドのアイコン。" #: discord.PartialInviteGuild:46 of #, fuzzy +msgid "Optional[:class:`str`] -- The partial guild's banner." +msgstr ":class:`str` -- ギルドのアイコン。" + +#: discord.PartialInviteGuild:50 of +#, fuzzy msgid "Optional[:class:`str`] -- The partial guild's invite splash." msgstr ":class:`str` -- ギルドのアイコン。" +#: discord.PartialInviteGuild:54 of +#, fuzzy +msgid "Optional[:class:`str`] -- The partial guild's description." +msgstr ":class:`str` -- ギルドのアイコン。" + #: discord.PartialInviteGuild.icon_url_as:1 of msgid ":class:`str`: The same operation as :meth:`Guild.icon_url_as`." msgstr "" +#: discord.PartialInviteGuild.banner_url_as:1 of +msgid ":class:`str`: The same operation as :meth:`Guild.banner_url_as`." +msgstr "" + #: discord.PartialInviteGuild.splash_url_as:1 of msgid ":class:`str`: The same operation as :meth:`Guild.splash_url_as`." msgstr "" -#: ../../api.rst:2051 +#: ../../api.rst:2054 msgid "PartialInviteChannel" msgstr "" @@ -9147,7 +9250,7 @@ msgstr ":class:`int` -- チャンネルのID。" msgid ":class:`ChannelType` -- The partial channel's type." msgstr ":class:`int` -- カテゴリチャンネルのID。" -#: ../../api.rst:2057 +#: ../../api.rst:2060 msgid "Invite" msgstr "" @@ -9258,7 +9361,7 @@ msgstr "" msgid "The reason for deleting this invite. Shows up on the audit log." msgstr "" -#: ../../api.rst:2063 +#: ../../api.rst:2066 msgid "RawMessageDeleteEvent" msgstr "" @@ -9280,7 +9383,7 @@ msgstr "" msgid ":class:`int` -- The message ID that got deleted." msgstr "" -#: ../../api.rst:2069 +#: ../../api.rst:2072 msgid "RawBulkMessageDeleteEvent" msgstr "" @@ -9304,7 +9407,7 @@ msgid "" "applicable." msgstr "" -#: ../../api.rst:2075 +#: ../../api.rst:2078 msgid "RawMessageUpdateEvent" msgstr "" @@ -9322,7 +9425,7 @@ msgid "" "`_" msgstr "" -#: ../../api.rst:2081 +#: ../../api.rst:2084 msgid "RawReactionActionEvent" msgstr "" @@ -9356,7 +9459,7 @@ msgstr "" msgid ":class:`PartialEmoji` -- The custom or unicode emoji being used." msgstr "" -#: ../../api.rst:2087 +#: ../../api.rst:2090 msgid "RawReactionClearEvent" msgstr "" @@ -9376,27 +9479,27 @@ msgstr "" msgid "Optional[:class:`int`] -- The guild ID where the reactions got cleared." msgstr "" -#: ../../api.rst:2096 +#: ../../api.rst:2099 msgid "Data Classes" msgstr "データクラス" -#: ../../api.rst:2098 +#: ../../api.rst:2101 msgid "Some classes are just there to be data containers, this lists them." msgstr "" -#: ../../api.rst:2100 +#: ../../api.rst:2103 msgid "" "Unlike :ref:`models ` you are allowed to create these" " yourself, even if they can also be used to hold attributes." msgstr "" -#: ../../api.rst:2106 +#: ../../api.rst:2109 msgid "" "The only exception to this rule is :class:`Object`, which is made with " "dynamic attributes in mind." msgstr "" -#: ../../api.rst:2114 +#: ../../api.rst:2117 msgid "Object" msgstr "Object" @@ -9441,7 +9544,7 @@ msgstr ":class:`str` -- オブジェクトのID。" msgid "Returns the snowflake's creation time in UTC." msgstr "" -#: ../../api.rst:2120 +#: ../../api.rst:2123 msgid "Embed" msgstr "Embed" @@ -9449,11 +9552,17 @@ msgstr "Embed" msgid "Represents a Discord embed." msgstr "Discordの埋め込みを表します。" -#: discord.Embed:3 of +#: discord.Embed:7 of +msgid "" +"Returns the total size of the embed. Useful for checking if it's within " +"the 6000 character limit." +msgstr "" + +#: discord.Embed:10 of msgid "The following attributes can be set during creation of the object:" msgstr "オブジェクトの作成時、次の属性を設定することができます。" -#: discord.Embed:6 of +#: discord.Embed:13 of msgid "" "Certain properties return an ``EmbedProxy``. Which is a type that acts " "similar to a regular :class:`dict` except access the attributes via " @@ -9465,46 +9574,66 @@ msgstr "" "と同様の働きをする型です。例えば、 ``embed.author.icon_url`` " "のようになります。属性が無効または空の場合、特別なセンチネル値、 :attr:`Embed.Empty` が返ります。" -#: discord.Embed:12 of +#: discord.Embed:19 of msgid "" "For ease of use, all parameters that expect a :class:`str` are implicitly" " casted to :class:`str` for you." msgstr "使いやすさを考慮して、strが渡されることを想定されたすべてのパラメータは、暗黙的にstrにキャストされます。" -#: discord.Embed:17 of +#: discord.Embed:24 of msgid ":class:`str` -- The title of the embed." msgstr ":class:`str` -- 埋め込みのタイトル。" -#: discord.Embed:21 of +#: discord.Embed:28 of msgid ":class:`str` -- The type of embed. Usually \"rich\"." msgstr ":class:`str` -- 埋め込みのタイプ。通常は「rich」。" -#: discord.Embed:25 of +#: discord.Embed:32 of msgid ":class:`str` -- The description of the embed." msgstr ":class:`str` -- 埋め込みの説明。" -#: discord.Embed:29 of +#: discord.Embed:36 of msgid ":class:`str` -- The URL of the embed." msgstr ":class:`str` -- 埋め込みのURL。" -#: discord.Embed:33 of +#: discord.Embed:40 of msgid "" "`datetime.datetime` -- The timestamp of the embed content. This could be " "a naive or aware datetime." msgstr "" -#: discord.Embed:37 of +#: discord.Embed:44 of msgid "" ":class:`Colour` or :class:`int` -- The colour code of the embed. Aliased " "to ``color`` as well." msgstr ":class:`Colour` または :class:`int` -- 埋め込みのカラーコード。 ``color`` にもエイリアスがあります。" -#: discord.Embed:41 of +#: discord.Embed:48 of msgid "" "A special sentinel value used by ``EmbedProxy`` and this class to denote " "that the value or attribute is empty." msgstr "" +#: discord.Embed.from_dict:1 of +msgid "" +"Converts a :class:`dict` to a :class:`Embed` provided it is in the format" +" that Discord expects it to be in." +msgstr "" + +#: discord.Embed.from_dict:4 of +msgid "" +"You can find out about this format in the `official Discord " +"documentation`__." +msgstr "" + +#: discord.Embed.from_dict:10 of +msgid "The dictionary to convert into an embed." +msgstr "" + +#: discord.Embed.copy:1 of +msgid "Returns a shallow copy of the embed." +msgstr "" + #: discord.Embed.footer:1 of msgid "Returns an ``EmbedProxy`` denoting the footer contents." msgstr "" @@ -9703,7 +9832,7 @@ msgstr ":exc:`IndexError` -- 無効なindexが渡された。" msgid "Converts this embed object into a dict." msgstr "" -#: ../../api.rst:2126 +#: ../../api.rst:2129 msgid "File" msgstr "File" @@ -9743,7 +9872,7 @@ msgstr "" msgid ":class:`bool` -- Whether the attachment is a spoiler." msgstr ":class:`bool` -- ユーザーがBotであるかどうかを表します。" -#: ../../api.rst:2132 +#: ../../api.rst:2135 msgid "Colour" msgstr "" @@ -9937,7 +10066,7 @@ msgid "" "``0x99aab5``." msgstr "" -#: ../../api.rst:2138 +#: ../../api.rst:2141 msgid "Activity" msgstr "" @@ -10086,7 +10215,7 @@ msgid "" "this activity if applicable." msgstr "" -#: ../../api.rst:2144 +#: ../../api.rst:2147 msgid "Game" msgstr "" @@ -10158,7 +10287,7 @@ msgid "" "this game in UTC, if applicable." msgstr "" -#: ../../api.rst:2150 +#: ../../api.rst:2153 msgid "Streaming" msgstr "" @@ -10229,7 +10358,7 @@ msgid "" "Typically set by the Discord client." msgstr "" -#: ../../api.rst:2156 +#: ../../api.rst:2159 msgid "Permissions" msgstr "" @@ -10527,7 +10656,7 @@ msgstr "" msgid "Returns True if a user can create, edit, or delete emojis." msgstr "" -#: ../../api.rst:2162 +#: ../../api.rst:2165 msgid "PermissionOverwrite" msgstr "" @@ -10619,11 +10748,11 @@ msgstr "" msgid "A list of key/value pairs to bulk update with." msgstr "" -#: ../../api.rst:2168 +#: ../../api.rst:2171 msgid "Exceptions" msgstr "例外" -#: ../../api.rst:2170 +#: ../../api.rst:2173 msgid "The following exceptions are thrown by the library." msgstr "" @@ -10741,6 +10870,55 @@ msgstr "" msgid "An exception that is thrown for when libopus is not loaded." msgstr "" +#: ../../api.rst:2201 +msgid "Exception Hierarchy" +msgstr "" + +#: ../../api.rst:2214 +#, fuzzy +msgid ":exc:`Exception`" +msgstr ":exc:`HTTPException` のサブクラス" + +#: ../../api.rst:2214 +msgid ":exc:`DiscordException`" +msgstr "" + +#: ../../api.rst:2207 +msgid ":exc:`ClientException`" +msgstr "" + +#: ../../api.rst:2208 +msgid ":exc:`NoMoreItems`" +msgstr "" + +#: ../../api.rst:2209 +msgid ":exc:`GatewayNotFound`" +msgstr "" + +#: ../../api.rst:2211 +msgid ":exc:`HTTPException`" +msgstr "" + +#: ../../api.rst:2211 +msgid ":exc:`Forbidden`" +msgstr "" + +#: ../../api.rst:2212 +msgid ":exc:`NotFound`" +msgstr "" + +#: ../../api.rst:2213 +msgid ":exc:`InvalidArgument`" +msgstr "" + +#: ../../api.rst:2214 +msgid ":exc:`LoginFailure`" +msgstr "" + +#: ../../api.rst:2215 +msgid ":exc:`ConnectionClosed`" +msgstr "" + #~ msgid "" #~ "The *bytes-like* object representing the" #~ " icon. See :meth:`~ClientUser.edit` for " @@ -11010,3 +11188,10 @@ msgstr "" #~ "channel." #~ msgstr "" +#~ msgid "" +#~ "`datetime.datetime` -- A datetime object " +#~ "that specifies the date and time " +#~ "in UTC that the member joined the" +#~ " guild for the first time." +#~ msgstr "" + diff --git a/docs/locale/ja/LC_MESSAGES/ext/commands/api.po b/docs/locale/ja/LC_MESSAGES/ext/commands/api.po index 3f8b29ae0..471c96ba6 100644 --- a/docs/locale/ja/LC_MESSAGES/ext/commands/api.po +++ b/docs/locale/ja/LC_MESSAGES/ext/commands/api.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: discord.py 1.0.0a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-24 04:09-0500\n" +"POT-Creation-Date: 2019-03-16 05:18-0400\n" "PO-Revision-Date: 2019-02-18 15:00+0000\n" "Last-Translator: cod , 2019\n" "Language: ja_JP\n" @@ -122,51 +122,13 @@ msgstr "" #: discord.ext.commands.Bot:62 of msgid "" -":class:`.HelpFormatter` -- The formatter used to format the help message." -" By default, it uses the :class:`.HelpFormatter`. Check it for more info " -"on how to override it. If you want to change the help command completely " -"(add aliases, etc) then a call to :meth:`~.Bot.remove_command` with " -"'help' as the argument would do the trick." +"Optional[:class:`.HelpCommand`] -- The help command implementation to " +"use. This can be dynamically set at runtime. To remove the help command " +"pass ``None``. For more information on implementing a help command, see " +":ref:`ext_commands_help_command`." msgstr "" -#: discord.ext.commands.Bot:70 of -msgid "" -"Optional[:class:`bool`] -- A tribool that indicates if the help command " -"should PM the user instead of sending it to the channel it received it " -"from. If the boolean is set to ``True``, then all help output is PM'd. If" -" ``False``, none of the help output is PM'd. If ``None``, then the bot " -"will only PM when the help message becomes too long (dictated by more " -"than 1000 characters). Defaults to ``False``." -msgstr "" - -#: discord.ext.commands.Bot:79 of -msgid "" -":class:`dict` -- A dictionary of options to pass in for the construction " -"of the help command. This allows you to change the command behaviour " -"without actually changing the implementation of the command. The " -"attributes will be the same as the ones passed in the :class:`.Command` " -"constructor. Note that ``pass_context`` will always be set to ``True`` " -"regardless of what you pass in." -msgstr "" - -#: discord.ext.commands.Bot:87 of -msgid "" -":class:`str` -- The format string used when the help command is invoked " -"with a command that is not found. Useful for i18n. Defaults to ``\"No " -"command called {} found.\"``. The only format argument is the name of the" -" command passed." -msgstr "" - -#: discord.ext.commands.Bot:93 of -msgid "" -":class:`str` -- The format string used when the help command is invoked " -"with requests for a subcommand but the command does not have any " -"subcommands. Defaults to ``\"Command {0.name} has no subcommands.\"``. " -"The first format argument is the :class:`.Command` attempted to get a " -"subcommand and the second is the name." -msgstr "" - -#: discord.ext.commands.Bot:100 of +#: discord.ext.commands.Bot:68 of msgid "" "Optional[:class:`int`] -- The ID that owns the bot. If this is not set " "and is then queried via :meth:`.is_owner` then it is fetched " @@ -220,6 +182,8 @@ msgstr "" #: discord.ext.commands.Context.history discord.ext.commands.Context.invoke #: discord.ext.commands.Context.reinvoke discord.ext.commands.Context.send #: discord.ext.commands.Converter.convert +#: discord.ext.commands.DefaultHelpCommand.add_command_formatting +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands #: discord.ext.commands.EmojiConverter.convert #: discord.ext.commands.GameConverter.convert #: discord.ext.commands.Group.add_command @@ -232,9 +196,25 @@ msgstr "" #: discord.ext.commands.GroupMixin.add_command #: discord.ext.commands.GroupMixin.get_command #: discord.ext.commands.GroupMixin.remove_command -#: discord.ext.commands.HelpFormatter.format_help_for +#: discord.ext.commands.HelpCommand.command_not_found +#: discord.ext.commands.HelpCommand.filter_commands +#: discord.ext.commands.HelpCommand.get_command_signature +#: discord.ext.commands.HelpCommand.get_max_size +#: discord.ext.commands.HelpCommand.on_help_command_error +#: discord.ext.commands.HelpCommand.prepare_help_command +#: discord.ext.commands.HelpCommand.send_bot_help +#: discord.ext.commands.HelpCommand.send_cog_help +#: discord.ext.commands.HelpCommand.send_command_help +#: discord.ext.commands.HelpCommand.send_error_message +#: discord.ext.commands.HelpCommand.send_group_help +#: discord.ext.commands.HelpCommand.subcommand_not_found #: discord.ext.commands.InviteConverter.convert #: discord.ext.commands.MemberConverter.convert +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting +#: discord.ext.commands.MinimalHelpCommand.add_command_formatting +#: discord.ext.commands.MinimalHelpCommand.add_subcommand_formatting +#: discord.ext.commands.MinimalHelpCommand.get_command_signature #: discord.ext.commands.Paginator.add_line #: discord.ext.commands.PartialEmojiConverter.convert #: discord.ext.commands.RoleConverter.convert @@ -433,6 +413,15 @@ msgstr "" #: discord.ext.commands.EmojiConverter.convert:1 #: discord.ext.commands.GameConverter.convert:1 #: discord.ext.commands.Group.can_run:1 +#: discord.ext.commands.HelpCommand.command_callback:1 +#: discord.ext.commands.HelpCommand.filter_commands:1 +#: discord.ext.commands.HelpCommand.on_help_command_error:1 +#: discord.ext.commands.HelpCommand.prepare_help_command:1 +#: discord.ext.commands.HelpCommand.send_bot_help:1 +#: discord.ext.commands.HelpCommand.send_cog_help:1 +#: discord.ext.commands.HelpCommand.send_command_help:1 +#: discord.ext.commands.HelpCommand.send_error_message:1 +#: discord.ext.commands.HelpCommand.send_group_help:1 #: discord.ext.commands.InviteConverter.convert:1 #: discord.ext.commands.MemberConverter.convert:1 #: discord.ext.commands.PartialEmojiConverter.convert:1 @@ -463,9 +452,13 @@ msgstr "" #: discord.ext.commands.Group.remove_command #: discord.ext.commands.GroupMixin.get_command #: discord.ext.commands.GroupMixin.remove_command -#: discord.ext.commands.HelpFormatter.filter_command_list -#: discord.ext.commands.HelpFormatter.format -#: discord.ext.commands.HelpFormatter.format_help_for of +#: discord.ext.commands.HelpCommand.cog +#: discord.ext.commands.HelpCommand.command_not_found +#: discord.ext.commands.HelpCommand.filter_commands +#: discord.ext.commands.HelpCommand.get_command_signature +#: discord.ext.commands.HelpCommand.get_max_size +#: discord.ext.commands.HelpCommand.subcommand_not_found +#: discord.ext.commands.MinimalHelpCommand.get_command_signature of msgid "Returns" msgstr "" @@ -488,9 +481,13 @@ msgstr "" #: discord.ext.commands.Group.remove_command #: discord.ext.commands.GroupMixin.get_command #: discord.ext.commands.GroupMixin.remove_command -#: discord.ext.commands.HelpFormatter.filter_command_list -#: discord.ext.commands.HelpFormatter.format -#: discord.ext.commands.HelpFormatter.format_help_for of +#: discord.ext.commands.HelpCommand.cog +#: discord.ext.commands.HelpCommand.command_not_found +#: discord.ext.commands.HelpCommand.filter_commands +#: discord.ext.commands.HelpCommand.get_command_signature +#: discord.ext.commands.HelpCommand.get_max_size +#: discord.ext.commands.HelpCommand.subcommand_not_found +#: discord.ext.commands.MinimalHelpCommand.get_command_signature of msgid "Return type" msgstr "" @@ -1543,11 +1540,14 @@ msgstr "" #: ../../ext/commands/api.rst:40 ../../ext/commands/api.rst:52 #: ../../ext/commands/api.rst:62 discord.ext.commands.Cog.cog_after_invoke:7 -#: discord.ext.commands.Cog.cog_before_invoke:7 of +#: discord.ext.commands.Cog.cog_before_invoke:7 +#: discord.ext.commands.HelpCommand.on_help_command_error:11 +#: discord.ext.commands.HelpCommand.prepare_help_command:15 of msgid "The invocation context." msgstr "" #: ../../ext/commands/api.rst:42 +#: discord.ext.commands.HelpCommand.on_help_command_error:13 of msgid "The error that was raised." msgstr "" @@ -1974,6 +1974,16 @@ msgstr "" msgid "This does not include subcommands." msgstr "" +#: discord.ext.commands.Cog.qualified_name:1 of +msgid ":class:`str` -- Returns the cog's specified name, not the class name." +msgstr "" + +#: discord.ext.commands.Cog.description:1 of +msgid "" +":class:`str` -- Returns the cog's description, typically the cleaned " +"docstring." +msgstr "" + #: discord.ext.commands.Cog.walk_commands:1 of msgid "" "An iterator that recursively walks through this cog's commands and " @@ -2002,7 +2012,9 @@ msgid "" msgstr "使用するコマンドのデフォルトの名前は ``func.__name__`` です。" #: discord.ext.commands.Cog.listener:9 of -msgid ":exc:`TypeError` -- The function is not a coroutine function." +msgid "" +":exc:`TypeError` -- The function is not a coroutine function or a string " +"was not passed as the name." msgstr "" #: discord.ext.commands.Cog.cog_unload:1 of @@ -2125,374 +2137,968 @@ msgid "" msgstr "" #: ../../ext/commands/api.rst:98 -msgid "Formatters" +msgid "Help Commands" msgstr "" -#: discord.ext.commands.Paginator:1 of -msgid "A class that aids in paginating code blocks for Discord messages." +#: discord.ext.commands.HelpCommand:1 of +#, fuzzy +msgid "The base implementation for help command formatting." +msgstr "helpコマンドの出力フォーマットに関する実装のデフォルトで、ベースクラスです。" + +#: discord.ext.commands.HelpCommand:5 of +msgid "" +"Optional[:class:`Context`] -- The context that invoked this help " +"formatter. This is generally set after the help command assigned, " +":func:`command_callback`\\, has been called." msgstr "" -#: discord.ext.commands.Paginator:5 of -msgid ":class:`str` -- The prefix inserted to every page. e.g. three backticks." +#: discord.ext.commands.HelpCommand:10 of +#, fuzzy +msgid "" +":class:`bool` -- Specifies if hidden commands should be shown in the " +"output. Defaults to ``False``." +msgstr ":class:`bool` -- 隠しコマンドを表示するかどうかを指定します。デフォルトでは ``False`` です。" + +#: discord.ext.commands.HelpCommand:15 of +#, fuzzy +msgid "" +":class:`bool` -- Specifies if commands should have their " +":attr:`.Command.checks` called and verified. Defaults to ``True``." msgstr "" +":class:`bool` -- :attr:`.Command.checks` が失敗したコマンドを表示するかどうかを指定します。デフォルトでは" +" ``False`` です。" -#: discord.ext.commands.Paginator:9 of +#: discord.ext.commands.HelpCommand:20 of msgid "" -":class:`str` -- The suffix appended at the end of every page. e.g. three " -"backticks." +":class:`dict` -- A dictionary of options to pass in for the construction " +"of the help command. This allows you to change the command behaviour " +"without actually changing the implementation of the command. The " +"attributes will be the same as the ones passed in the :class:`.Command` " +"constructor." msgstr "" -#: discord.ext.commands.Paginator:13 of -msgid ":class:`int` -- The maximum amount of codepoints allowed in a page." +#: discord.ext.commands.HelpCommand.clean_prefix:1 of +msgid "" +"The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of " +"``<@id>``." +msgstr "「クリーンアップ」されたプレフィックスを返します。たとえば、メンションは ``<@id>`` のかわりに ``@name`` となります。" + +#: discord.ext.commands.HelpCommand.get_command_signature:1 +#: discord.ext.commands.MinimalHelpCommand.get_command_signature:1 of +msgid "Retrieves the signature portion of the help page." +msgstr "ヘルプページに表示される、コマンドの使用方法を示す文字列を返します。" + +#: discord.ext.commands.HelpCommand.get_command_signature:3 +#: discord.ext.commands.MinimalHelpCommand.get_command_signature:3 of +msgid "The command to get the signature of." msgstr "" -#: discord.ext.commands.Paginator.add_line:1 of -msgid "Adds a line to the current page." +#: discord.ext.commands.HelpCommand.get_command_signature:6 +#: discord.ext.commands.MinimalHelpCommand.get_command_signature:6 of +#, fuzzy +msgid "The signature for the command." +msgstr "ページ区切りされたhelpコマンドの出力。" + +#: discord.ext.commands.HelpCommand.command_not_found:13 +#: discord.ext.commands.HelpCommand.get_command_signature:7 +#: discord.ext.commands.HelpCommand.subcommand_not_found:20 +#: discord.ext.commands.MinimalHelpCommand.get_command_signature:7 of +#, fuzzy +msgid ":class:`str`" +msgstr ":class:`User`" + +#: discord.ext.commands.HelpCommand.remove_mentions:1 of +msgid "Removes mentions from the string to prevent abuse." msgstr "" -#: discord.ext.commands.Paginator.add_line:3 of -msgid "If the line exceeds the :attr:`max_size` then an exception is raised." +#: discord.ext.commands.HelpCommand.remove_mentions:3 of +msgid "This includes ``@everyone``, ``@here``, member mentions and role mentions." msgstr "" -#: discord.ext.commands.Paginator.add_line:6 of -msgid "The line to add." +#: discord.ext.commands.HelpCommand.command_not_found:1 +#: discord.ext.commands.HelpCommand.subcommand_not_found:1 of +#, fuzzy +msgid "|maybecoro|" +msgstr "|coro|" + +#: discord.ext.commands.HelpCommand.command_not_found:3 of +msgid "" +"A method called when a command is not found in the help command. This is " +"useful to override for i18n." msgstr "" -#: discord.ext.commands.Paginator.add_line:8 of -msgid "Indicates if another empty line should be added." +#: discord.ext.commands.HelpCommand.command_not_found:6 of +msgid "Defaults to ``No command called {0} found.``" msgstr "" -#: discord.ext.commands.Paginator.add_line:11 of +#: discord.ext.commands.HelpCommand.command_not_found:8 of msgid "" -":exc:`RuntimeError` -- The line was too big for the current " -":attr:`max_size`." +"The string that contains the invalid command. Note that this has had " +"mentions removed to prevent abuse." msgstr "" -#: discord.ext.commands.Paginator.close_page:1 of -msgid "Prematurely terminate a page." +#: discord.ext.commands.HelpCommand.command_not_found:12 of +msgid "The string to use when a command has not been found." msgstr "" -#: discord.ext.commands.Paginator.pages:1 of -msgid "Returns the rendered list of pages." +#: discord.ext.commands.HelpCommand.subcommand_not_found:3 of +msgid "" +"A method called when a command did not have a subcommand requested in the" +" help command. This is useful to override for i18n." msgstr "" -#: discord.ext.commands.HelpFormatter:1 of -msgid "" -"The default base implementation that handles formatting of the help " -"command." -msgstr "helpコマンドの出力フォーマットに関する実装のデフォルトで、ベースクラスです。" +#: discord.ext.commands.HelpCommand.subcommand_not_found:6 of +msgid "Defaults to either:" +msgstr "" -#: discord.ext.commands.HelpFormatter:4 of -msgid "" -"To override the behaviour of the formatter, " -":meth:`~.HelpFormatter.format` should be overridden. A number of utility " -"functions are provided for use inside that method." +#: discord.ext.commands.HelpCommand.subcommand_not_found:8 of +msgid "``'Command \"{command.qualified_name}\" has no subcommands.'``" msgstr "" -"このクラスのフォーマット動作を上書きするには、:meth:`~.HelpFormatter.format` " -"関数をオーバーライドする必要があります。本クラスでは、この関数内で使うことが出来るユーティリティ関数が数多く提供されています。" -#: discord.ext.commands.HelpFormatter:10 of -msgid "" -":class:`bool` -- Dictates if hidden commands should be shown in the " -"output. Defaults to ``False``." -msgstr ":class:`bool` -- 隠しコマンドを表示するかどうかを指定します。デフォルトでは ``False`` です。" +#: discord.ext.commands.HelpCommand.subcommand_not_found:9 of +msgid "If there is no subcommand in the ``command`` parameter." +msgstr "" -#: discord.ext.commands.HelpFormatter:15 of +#: discord.ext.commands.HelpCommand.subcommand_not_found:11 of msgid "" -":class:`bool` -- Dictates if commands that have their " -":attr:`.Command.checks` failed shown. Defaults to ``False``." +"``'Command \"{command.qualified_name}\" has no subcommand named " +"{string}'``" msgstr "" -":class:`bool` -- :attr:`.Command.checks` が失敗したコマンドを表示するかどうかを指定します。デフォルトでは" -" ``False`` です。" -#: discord.ext.commands.HelpFormatter:20 of -msgid "" -":class:`int` -- The maximum number of characters that fit in a line. " -"Defaults to 80." -msgstr ":class:`int` -- 1行に収める最大の文字数を指定します。デフォルトでは80です。" +#: discord.ext.commands.HelpCommand.subcommand_not_found:11 of +msgid "If the ``command`` parameter has subcommands but not one named ``string``." +msgstr "" -#: discord.ext.commands.HelpFormatter:25 of -msgid "" -":class:`str` -- The command list's heading string used when the help " -"command is invoked with a category name. Useful for i18n. Defaults to " -"``\"Commands:\"``" +#: discord.ext.commands.HelpCommand.subcommand_not_found:13 of +msgid "The command that did not have the subcommand requested." msgstr "" -":class:`str` -- help " -"コマンドがカテゴリ名を伴って起動された際に、コマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" -" ``\"Commands:\"`` です。" -#: discord.ext.commands.HelpFormatter:30 of +#: discord.ext.commands.HelpCommand.subcommand_not_found:15 of msgid "" -":class:`str` -- The string used when there is a command which does not " -"belong to any category(cog). Useful for i18n. Defaults to ``\"No " -"Category\"``" +"The string that contains the invalid subcommand. Note that this has had " +"mentions removed to prevent abuse." msgstr "" -":class:`str` -- help " -"コマンドが起動された際に、いずれのカテゴリ(cog)にも属さないコマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" -" ``\"No Category\"`` です。" -#: discord.ext.commands.HelpFormatter.has_subcommands:1 of -msgid ":class:`bool`: Specifies if the command has subcommands." -msgstr ":class:`bool`: コマンドがサブコマンドを持つかを表します。" +#: discord.ext.commands.HelpCommand.subcommand_not_found:19 of +msgid "The string to use when the command did not have the subcommand requested." +msgstr "" -#: discord.ext.commands.HelpFormatter.is_bot:1 of -msgid ":class:`bool`: Specifies if the command being formatted is the bot itself." -msgstr ":class:`bool`: フォーマット対象のコマンドが、bot自体であるかを表します。" +#: discord.ext.commands.HelpCommand.get_max_size:1 of +msgid "Returns the largest name length of the specified command list." +msgstr "" -#: discord.ext.commands.HelpFormatter.is_cog:1 of -msgid ":class:`bool`: Specifies if the command being formatted is actually a cog." -msgstr ":class:`bool`: フォーマット対象のコマンドが、cogであるかを表します。" +#: discord.ext.commands.HelpCommand.get_max_size:3 of +msgid "A sequence of commands to check for the largest size." +msgstr "" -#: discord.ext.commands.HelpFormatter.shorten:1 of -msgid "Shortens text to fit into the :attr:`width`." -msgstr "渡された文字列を、 :attr:`width` に収まるよう省略します。" +#: discord.ext.commands.HelpCommand.get_max_size:6 of +msgid "The maximum width of the commands." +msgstr "" -#: discord.ext.commands.HelpFormatter.max_name_size:1 of -msgid "" -":class:`int` -- Returns the largest name length of a command or if it has" -" subcommands the largest subcommand name." -msgstr "コマンドまたはサブコマンドのうち、最も長い名前の文字数を返します。" +#: discord.ext.commands.HelpCommand.get_max_size:7 of +#, fuzzy +msgid ":class:`int`" +msgstr ":class:`Invite`" -#: discord.ext.commands.HelpFormatter.clean_prefix:1 of +#: discord.ext.commands.DefaultHelpCommand.get_destination:1 +#: discord.ext.commands.HelpCommand.get_destination:1 +#: discord.ext.commands.MinimalHelpCommand.get_destination:1 of msgid "" -"The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of " -"``<@id>``." -msgstr "「クリーンアップ」されたプレフィックスを返します。たとえば、メンションは ``<@id>`` のかわりに ``@name`` となります。" +"Returns the :class:`abc.Messageable` where the help command will be " +"output." +msgstr "" -#: discord.ext.commands.HelpFormatter.get_command_signature:1 of -msgid "Retrieves the signature portion of the help page." -msgstr "ヘルプページに表示される、コマンドの使用方法を示す文字列を返します。" +#: discord.ext.commands.DefaultHelpCommand.get_destination:3 +#: discord.ext.commands.HelpCommand.get_destination:3 +#: discord.ext.commands.HelpCommand.send_bot_help:11 +#: discord.ext.commands.HelpCommand.send_cog_help:11 +#: discord.ext.commands.HelpCommand.send_command_help:10 +#: discord.ext.commands.HelpCommand.send_error_message:7 +#: discord.ext.commands.HelpCommand.send_group_help:11 +#: discord.ext.commands.MinimalHelpCommand.get_destination:3 of +msgid "You can override this method to customise the behaviour." +msgstr "" -#: discord.ext.commands.HelpFormatter.get_ending_note:1 of -msgid "" -"Returns help command's ending note. This is mainly useful to override for" -" i18n purposes." +#: discord.ext.commands.DefaultHelpCommand.get_destination:5 +#: discord.ext.commands.HelpCommand.get_destination:5 +#: discord.ext.commands.MinimalHelpCommand.get_destination:5 of +msgid "By default this returns the context's channel." msgstr "" -#: discord.ext.commands.HelpFormatter.filter_command_list:1 of -msgid "" -"Returns a filtered list of commands based on the two attributes provided," -" :attr:`show_check_failure` and :attr:`show_hidden`. Also filters based " -"on if :meth:`~.HelpFormatter.is_cog` is valid." +#: discord.ext.commands.HelpCommand.cog:1 of +msgid "A property for retrieving or setting the cog for the help command." msgstr "" -":attr:`show_check_failure` と :attr:`show_hidden` " -"に基づき、フィルタリングされたコマンドのリストを返します。また、 :meth:`~.HelpFormatter.is_cog` " -"が有効かどうかにも基づいてフィルタリングします。" -#: discord.ext.commands.HelpFormatter.filter_command_list:5 of +#: discord.ext.commands.HelpCommand.cog:3 of msgid "" -"An iterable with the filter being applied. The resulting value is a (key," -" value) :class:`tuple` of the command name and the command itself." -msgstr "フィルタリングされたイテラブル。結果は、コマンド名とコマンド自身の、 (key, value) :class:`tuple` 形式で返されます。。" +"When a cog is set for the help command, it is as-if the help command " +"belongs to that cog. All cog special methods will apply to the help " +"command and it will be automatically unset on unload." +msgstr "" -#: discord.ext.commands.HelpFormatter.format:1 of -msgid "Handles the actual behaviour involved with formatting." -msgstr "フォーマットに関わる実際の挙動を扱う関数です。" +#: discord.ext.commands.HelpCommand.cog:7 of +msgid "To unbind the cog from the help command, you can set it to ``None``." +msgstr "" -#: discord.ext.commands.HelpFormatter.format:3 of -msgid "To change the behaviour, this method should be overridden." -msgstr "フォーマットに関する挙動を変更したい場合、このメソッドをオーバーライドする必要があります。" +#: discord.ext.commands.HelpCommand.cog:9 of +#, fuzzy +msgid "The cog that is currently set for the help command." +msgstr "helpコマンドを起動したコンテキスト。" -#: discord.ext.commands.HelpFormatter.format:5 -#: discord.ext.commands.HelpFormatter.format_help_for:10 of -msgid "A paginated output of the help command." -msgstr "ページ区切りされたhelpコマンドの出力。" +#: discord.ext.commands.HelpCommand.cog:10 of +msgid "Optional[:class:`Cog`]" +msgstr "" + +#: discord.ext.commands.HelpCommand.command_callback:3 of +#, fuzzy +msgid "The actual implementation of the help command." +msgstr "helpコマンドの出力フォーマットに関する実装のデフォルトで、ベースクラスです。" -#: discord.ext.commands.HelpFormatter.format_help_for:1 of +#: discord.ext.commands.HelpCommand.command_callback:5 of msgid "" -"Formats the help page and handles the actual heavy lifting of how the " -"help command looks like. To change the behaviour, override the " -":meth:`~.HelpFormatter.format` method." +"It is not recommended to override this method and instead change the " +"behaviour through the methods that actually get dispatched." msgstr "" -"helpページをフォーマットし、helpコマンドがどう見えるかのもっとも重要な処理を行います。この挙動を変更したい場合、:meth:`~.HelpFormatter.format`" -" をオーバーライドして下さい。" -#: discord.ext.commands.HelpFormatter.format_help_for:5 of -msgid "The context of the invoked help command." -msgstr "helpコマンドを起動したコンテキスト。" +#: discord.ext.commands.HelpCommand.command_callback:8 of +msgid ":meth:`send_bot_help`" +msgstr "" -#: discord.ext.commands.HelpFormatter.format_help_for:7 of -msgid "The bot or command that we are getting the help of." -msgstr "ヘルプを取得する対象のBot、またはcommand。" +#: discord.ext.commands.HelpCommand.command_callback:9 of +msgid ":meth:`send_cog_help`" +msgstr "" -#: ../../ext/commands/api.rst:109 -msgid "Checks" +#: discord.ext.commands.HelpCommand.command_callback:10 of +msgid ":meth:`send_group_help`" msgstr "" -#: discord.ext.commands.check:1 of -msgid "" -"A decorator that adds a check to the :class:`.Command` or its subclasses." -" These checks could be accessed via :attr:`.Command.checks`." +#: discord.ext.commands.HelpCommand.command_callback:11 of +msgid ":meth:`send_command_help`" msgstr "" -#: discord.ext.commands.check:4 of -msgid "" -"These checks should be predicates that take in a single parameter taking " -"a :class:`.Context`. If the check returns a ``False``\\-like value then " -"during invocation a :exc:`.CheckFailure` exception is raised and sent to " -"the :func:`.on_command_error` event." +#: discord.ext.commands.HelpCommand.command_callback:12 of +msgid ":meth:`get_destination`" msgstr "" -#: discord.ext.commands.check:9 of -msgid "" -"If an exception should be thrown in the predicate then it should be a " -"subclass of :exc:`.CommandError`. Any exception not subclassed from it " -"will be propagated while those subclassed will be sent to " -":func:`.on_command_error`." +#: discord.ext.commands.HelpCommand.command_callback:13 of +msgid ":meth:`command_not_found`" msgstr "" -#: discord.ext.commands.check:16 of -msgid "These functions can either be regular functions or coroutines." +#: discord.ext.commands.HelpCommand.command_callback:14 of +msgid ":meth:`subcommand_not_found`" msgstr "" -#: discord.ext.commands.check:18 of -msgid "The predicate to check if the command should be invoked." +#: discord.ext.commands.HelpCommand.command_callback:15 of +msgid ":meth:`send_error_message`" msgstr "" -#: discord.ext.commands.check:22 of -msgid "Creating a basic check to see if the command invoker is you." +#: discord.ext.commands.HelpCommand.command_callback:16 of +msgid ":meth:`on_help_command_error`" msgstr "" -#: discord.ext.commands.check:34 of -msgid "Transforming common checks into its own decorator:" +#: discord.ext.commands.HelpCommand.command_callback:17 of +msgid ":meth:`prepare_help_command`" msgstr "" -#: discord.ext.commands.has_role:1 of -msgid "" -"A :func:`.check` that is added that checks if the member invoking the " -"command has the role specified via the name or ID specified." +#: discord.ext.commands.HelpCommand.filter_commands:3 of +msgid "Returns a filtered list of commands and optionally sorts them." msgstr "" -#: discord.ext.commands.has_role:4 of +#: discord.ext.commands.HelpCommand.filter_commands:5 of msgid "" -"If a string is specified, you must give the exact name of the role, " -"including caps and spelling." +"This takes into account the :attr:`verify_checks` and :attr:`show_hidden`" +" attributes." msgstr "" -#: discord.ext.commands.has_role:7 of -msgid "" -"If an integer is specified, you must give the exact snowflake ID of the " -"role." +#: discord.ext.commands.HelpCommand.filter_commands:8 of +#, fuzzy +msgid "An iterable of commands that are getting filtered." +msgstr "ヘルプを取得する対象のBot、またはcommand。" + +#: discord.ext.commands.HelpCommand.filter_commands:10 of +msgid "Whether to sort the result." msgstr "" -#: discord.ext.commands.has_role:9 of +#: discord.ext.commands.HelpCommand.filter_commands:12 of msgid "" -"If the message is invoked in a private message context then the check " -"will return ``False``." +"An optional key function to pass to :func:`py:sorted` that takes a " +":class:`Command` as its sole parameter. If ``sort`` is passed as ``True``" +" then this will default as the command name." msgstr "" -#: discord.ext.commands.has_role:12 of -msgid "The name or ID of the role to check." +#: discord.ext.commands.HelpCommand.filter_commands:17 of +msgid "A list of commands that passed the filter." msgstr "" -#: discord.ext.commands.has_permissions:1 of -msgid "" -"A :func:`.check` that is added that checks if the member has any of the " -"permissions necessary." +#: discord.ext.commands.HelpCommand.filter_commands:18 of +msgid "List[:class:`Command`]" msgstr "" -#: discord.ext.commands.has_permissions:4 of +#: discord.ext.commands.HelpCommand.on_help_command_error:3 of msgid "" -"The permissions passed in must be exactly like the properties shown under" -" :class:`.discord.Permissions`." +"The help command's error handler, as specified by " +":ref:`ext_commands_error_handler`." msgstr "" -#: discord.ext.commands.has_permissions:7 of +#: discord.ext.commands.HelpCommand.on_help_command_error:5 of msgid "" -"This check raises a special exception, :exc:`.MissingPermissions` that is" -" derived from :exc:`.CheckFailure`." +"Useful to override if you need some specific behaviour when the error " +"handler is called." msgstr "" -#: discord.ext.commands.has_permissions:10 of -msgid "An argument list of permissions to check for." +#: discord.ext.commands.HelpCommand.on_help_command_error:8 of +msgid "" +"By default this method does nothing and just propagates to the default " +"error handlers." msgstr "" -#: discord.ext.commands.has_any_role:1 of +#: discord.ext.commands.HelpCommand.prepare_help_command:3 of msgid "" -"A :func:`.check` that is added that checks if the member invoking the " -"command has **any** of the roles specified. This means that if they have " -"one out of the three roles specified, then this check will return `True`." +"A low level method that can be used to prepare the help command before it" +" does anything. For example, if you need to prepare some state in your " +"subclass before the command does its processing then this would be the " +"place to do it." msgstr "" -#: discord.ext.commands.has_any_role:5 of -msgid "Similar to :func:`.has_role`\\, the names or IDs passed in must be exact." +#: discord.ext.commands.HelpCommand.prepare_help_command:8 of +msgid "The default implementation is empty." msgstr "" -#: discord.ext.commands.has_any_role:7 of -msgid "An argument list of names or IDs to check that the member has roles wise." +#: discord.ext.commands.HelpCommand.prepare_help_command:12 of +msgid "" +"This is called *inside* the help command callback body. So all the usual " +"rules that happen inside apply here as well." msgstr "" -#: discord.ext.commands.bot_has_role:1 of -msgid "Similar to :func:`.has_role` except checks if the bot itself has the role." +#: discord.ext.commands.HelpCommand.prepare_help_command:17 of +#, fuzzy +msgid "The argument passed to the help command." +msgstr "helpコマンドを起動したコンテキスト。" + +#: discord.ext.commands.HelpCommand.send_bot_help:3 of +msgid "" +"Handles the implementation of the bot command page in the help command. " +"This function is called when the help command is called with no " +"arguments." msgstr "" -#: discord.ext.commands.bot_has_permissions:1 of +#: discord.ext.commands.HelpCommand.send_bot_help:6 +#: discord.ext.commands.HelpCommand.send_cog_help:6 +#: discord.ext.commands.HelpCommand.send_command_help:5 +#: discord.ext.commands.HelpCommand.send_group_help:6 of msgid "" -"Similar to :func:`.has_permissions` except checks if the bot itself has " -"the permissions listed." +"It should be noted that this method does not return anything -- rather " +"the actual message sending should be done inside this method. Well " +"behaved subclasses should use :meth:`get_destination` to know where to " +"send, as this is a customisation point for other users." msgstr "" -#: discord.ext.commands.bot_has_permissions:4 of +#: discord.ext.commands.HelpCommand.send_bot_help:15 +#: discord.ext.commands.HelpCommand.send_cog_help:15 +#: discord.ext.commands.HelpCommand.send_command_help:14 +#: discord.ext.commands.HelpCommand.send_error_message:14 +#: discord.ext.commands.HelpCommand.send_group_help:15 of +msgid "You can access the invocation context with :attr:`HelpCommand.context`." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_bot_help:17 of msgid "" -"This check raises a special exception, :exc:`.BotMissingPermissions` that" -" is derived from :exc:`.CheckFailure`." +"Also, the commands in the mapping are not filtered. To do the filtering " +"you will have to call :meth:`filter_commands` yourself." msgstr "" -#: discord.ext.commands.bot_has_any_role:1 of +#: discord.ext.commands.HelpCommand.send_bot_help:20 of msgid "" -"Similar to :func:`.has_any_role` except checks if the bot itself has any " -"of the roles listed." +"A mapping of cogs to commands that have been requested by the user for " +"help. The key of the mapping is the :class:`~.commands.Cog` that the " +"command belongs to, or ``None`` if there isn't one, and the value is a " +"list of commands that belongs to that cog." msgstr "" -#: discord.ext.commands.cooldown:1 of -msgid "A decorator that adds a cooldown to a :class:`.Command` or its subclasses." +#: discord.ext.commands.HelpCommand.send_cog_help:3 of +msgid "" +"Handles the implementation of the cog page in the help command. This " +"function is called when the help command is called with a cog as the " +"argument." msgstr "" -#: discord.ext.commands.cooldown:4 of +#: discord.ext.commands.HelpCommand.send_cog_help:17 of msgid "" -"A cooldown allows a command to only be used a specific amount of times in" -" a specific time frame. These cooldowns can be based either on a per-" -"guild, per-channel, per-user, or global basis. Denoted by the third " -"argument of ``type`` which must be of enum type ``BucketType`` which " -"could be either:" +"To get the commands that belong to this cog see :meth:`Cog.get_commands`." +" The commands returned not filtered. To do the filtering you will have to" +" call :meth:`filter_commands` yourself." msgstr "" -#: discord.ext.commands.cooldown:10 of -msgid "``BucketType.default`` for a global basis." +#: discord.ext.commands.HelpCommand.send_cog_help:21 of +msgid "The cog that was requested for help." msgstr "" -#: discord.ext.commands.cooldown:11 of -msgid "``BucketType.user`` for a per-user basis." +#: discord.ext.commands.HelpCommand.send_command_help:3 of +#, fuzzy +msgid "Handles the implementation of the single command page in the help command." +msgstr "helpコマンドの出力フォーマットに関する実装のデフォルトで、ベースクラスです。" + +#: discord.ext.commands.HelpCommand.send_command_help:16 of +msgid "Showing Help" msgstr "" -#: discord.ext.commands.cooldown:12 of -msgid "``BucketType.guild`` for a per-guild basis." +#: discord.ext.commands.HelpCommand.send_command_help:19 of +msgid "" +"There are certain attributes and methods that are helpful for a help " +"command to show such as the following:" msgstr "" -#: discord.ext.commands.cooldown:13 of -msgid "``BucketType.channel`` for a per-channel basis." +#: discord.ext.commands.HelpCommand.send_command_help:22 of +msgid ":attr:`Command.help`" msgstr "" -#: discord.ext.commands.cooldown:14 of -msgid "``BucketType.member`` for a per-member basis." +#: discord.ext.commands.HelpCommand.send_command_help:23 of +msgid ":attr:`Command.brief`" msgstr "" -#: discord.ext.commands.cooldown:15 of -msgid "``BucketType.category`` for a per-category basis." +#: discord.ext.commands.HelpCommand.send_command_help:24 of +msgid ":attr:`Command.short_doc`" msgstr "" -#: discord.ext.commands.cooldown:17 of -msgid "" -"If a cooldown is triggered, then :exc:`.CommandOnCooldown` is triggered " -"in :func:`.on_command_error` and the local error handler." +#: discord.ext.commands.HelpCommand.send_command_help:25 of +msgid ":attr:`Command.description`" msgstr "" -#: discord.ext.commands.cooldown:20 of -msgid "A command can only have a single cooldown." +#: discord.ext.commands.HelpCommand.send_command_help:26 of +msgid ":meth:`get_command_signature`" msgstr "" -#: discord.ext.commands.cooldown:22 of -msgid "The number of times a command can be used before triggering a cooldown." +#: discord.ext.commands.HelpCommand.send_command_help:28 of +msgid "" +"There are more than just these attributes but feel free to play around " +"with these to help you get started to get the output that you want." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_command_help:31 of +msgid "The command that was requested for help." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_error_message:3 of +msgid "" +"Handles the implementation when an error happens in the help command. For" +" example, the result of :meth:`command_not_found` or " +":meth:`command_has_no_subcommand_found` will be passed here." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_error_message:9 of +msgid "" +"By default, this sends the error message to the destination specified by " +":meth:`get_destination`." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_error_message:16 of +msgid "" +"The error message to display to the user. Note that this has had mentions" +" removed to prevent abuse." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_group_help:3 of +msgid "" +"Handles the implementation of the group page in the help command. This " +"function is called when the help command is called with a group as the " +"argument." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_group_help:17 of +msgid "" +"To get the commands that belong to this group without aliases see " +":attr:`Group.commands`. The commands returned not filtered. To do the " +"filtering you will have to call :meth:`filter_commands` yourself." +msgstr "" + +#: discord.ext.commands.HelpCommand.send_group_help:21 of +msgid "The group that was requested for help." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:1 of +#, fuzzy +msgid "The implementation of the default help command." +msgstr "helpコマンドを起動したコンテキスト。" + +#: discord.ext.commands.DefaultHelpCommand:3 +#: discord.ext.commands.MinimalHelpCommand:3 of +msgid "This derives from :class:`HelpCommand`." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:5 of +msgid "It extends it with the following attributes." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:9 of +msgid "" +":class:`int` -- The maximum number of characters that fit in a line. " +"Defaults to 80." +msgstr ":class:`int` -- 1行に収める最大の文字数を指定します。デフォルトでは80です。" + +#: discord.ext.commands.DefaultHelpCommand:14 +#: discord.ext.commands.MinimalHelpCommand:7 of +#, fuzzy +msgid "" +":class:`bool` -- Whether to sort the commands in the output " +"alphabetically. Defaults to ``True``." +msgstr ":class:`bool` -- 隠しコマンドを表示するかどうかを指定します。デフォルトでは ``False`` です。" + +#: discord.ext.commands.DefaultHelpCommand:18 +#: discord.ext.commands.MinimalHelpCommand:21 of +msgid "" +"Optional[:class:`bool`] -- A tribool that indicates if the help command " +"should DM the user instead of sending it to the channel it received it " +"from. If the boolean is set to ``True``, then all help output is DM'd. If" +" ``False``, none of the help output is DM'd. If ``None``, then the bot " +"will only DM when the help message becomes too long (dictated by more " +"than :attr:`dm_help_threshold` characters). Defaults to ``False``." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:27 +#: discord.ext.commands.MinimalHelpCommand:30 of +msgid "" +"Optional[:class:`int`] -- The number of characters the paginator must " +"accumulate before getting DM'd to the user if :attr:`dm_help` is set to " +"``None``. Defaults to 1000." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:32 of +msgid "" +":class:`int` -- How much to intend the commands from a heading. Defaults " +"to ``2``." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand:36 of +msgid "" +":class:`str` -- The command list's heading string used when the help " +"command is invoked with a category name. Useful for i18n. Defaults to " +"``\"Commands:\"``" +msgstr "" +":class:`str` -- help " +"コマンドがカテゴリ名を伴って起動された際に、コマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" +" ``\"Commands:\"`` です。" + +#: discord.ext.commands.DefaultHelpCommand:41 +#: discord.ext.commands.MinimalHelpCommand:35 of +msgid "" +":class:`str` -- The string used when there is a command which does not " +"belong to any category(cog). Useful for i18n. Defaults to ``\"No " +"Category\"``" +msgstr "" +":class:`str` -- help " +"コマンドが起動された際に、いずれのカテゴリ(cog)にも属さないコマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" +" ``\"No Category\"`` です。" + +#: discord.ext.commands.DefaultHelpCommand:46 +#: discord.ext.commands.MinimalHelpCommand:40 of +msgid "" +":class:`Paginator` -- The paginator used to paginate the help command " +"output." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.shorten_text:1 of +msgid "Shortens text to fit into the :attr:`width`." +msgstr "渡された文字列を、 :attr:`width` に収まるよう省略します。" + +#: discord.ext.commands.DefaultHelpCommand.get_ending_note:1 of +msgid "" +"Returns help command's ending note. This is mainly useful to override for" +" i18n purposes." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:1 of +msgid "Indents a list of commands after the specified heading." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:3 of +msgid "The formatting is added to the :attr:`paginator`." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:5 of +msgid "" +"The default implementation is the command name indented by :attr:`indent`" +" spaces, padded to ``max_size`` followed by the command's " +":attr:`Command.short_doc` and then shortened to fit into the " +":attr:`width`." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:10 of +msgid "A list of commands to indent for output." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:12 of +msgid "" +"The heading to add to the output. This is only added if the list of " +"commands is greater than 0." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_indented_commands:15 of +msgid "" +"The max size to use for the gap between indents. If unspecified, calls " +":meth:`get_max_size` on the commands parameter." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_command_formatting:1 of +msgid "" +"A utility function to format the non-indented block of commands and " +"groups." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.add_command_formatting:3 +#: discord.ext.commands.MinimalHelpCommand.add_command_formatting:3 of +msgid "The command to format." +msgstr "" + +#: discord.ext.commands.DefaultHelpCommand.send_pages:1 +#: discord.ext.commands.MinimalHelpCommand.send_pages:1 of +msgid "" +"A helper utility to send the page output from :attr:`paginator` to the " +"destination." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand:1 of +msgid "An implementation of a help command with minimal output." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand:11 of +#, fuzzy +msgid "" +":class:`str` -- The command list's heading string used when the help " +"command is invoked with a category name. Useful for i18n. Defaults to " +"``\"Commands\"``" +msgstr "" +":class:`str` -- help " +"コマンドがカテゴリ名を伴って起動された際に、コマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" +" ``\"Commands:\"`` です。" + +#: discord.ext.commands.MinimalHelpCommand:16 of +#, fuzzy +msgid "" +":class:`str` -- The alias list's heading string used to list the aliases " +"of the command. Useful for i18n. Defaults to ``\"Aliases:\"``." +msgstr "" +":class:`str` -- help " +"コマンドがカテゴリ名を伴って起動された際に、コマンドの表題として表示される文字列を示します。Botを翻訳する際に使うことができます。デフォルトでは" +" ``\"Commands:\"`` です。" + +#: discord.ext.commands.MinimalHelpCommand.get_opening_note:1 of +msgid "" +"Returns help command's opening note. This is mainly useful to override " +"for i18n purposes." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.get_opening_note:3 of +msgid "The default implementation returns ::" +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.get_ending_note:1 of +msgid "" +"Return the help command's ending note. This is mainly useful to override " +"for i18n purposes." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.get_ending_note:3 of +#, fuzzy +msgid "The default implementation does nothing." +msgstr "helpコマンドの出力フォーマットに関する実装のデフォルトで、ベースクラスです。" + +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:1 of +msgid "Adds the minified bot heading with commands to the output." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting:3 +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:3 +#: discord.ext.commands.MinimalHelpCommand.add_subcommand_formatting:3 of +msgid "The formatting should be added to the :attr:`paginator`." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:5 of +msgid "" +"The default implementation is a bold underline heading followed by " +"commands separated by an EN SPACE (U+2002) in the next line." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:8 of +msgid "A list of commands that belong to the heading." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_bot_commands_formatting:10 of +msgid "The heading to add to the line." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_subcommand_formatting:1 of +msgid "Adds formatting information on a subcommand." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_subcommand_formatting:5 of +msgid "" +"The default implementation is the prefix and the " +":attr:`Command.qualified_name` optionally followed by an En dash and the " +"command's :attr:`Command.short_doc`." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_subcommand_formatting:8 of +msgid "The command to show information of." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting:1 of +msgid "Adds the formatting information on a command's aliases." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting:5 of +msgid "" +"The default implementation is the :attr:`aliases_heading` bolded followed" +" by a comma separated list of aliases." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting:8 of +msgid "This is not called if there are no aliases to format." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_aliases_formatting:10 of +msgid "A list of aliases to format." +msgstr "" + +#: discord.ext.commands.MinimalHelpCommand.add_command_formatting:1 of +msgid "A utility function to format commands and groups." +msgstr "" + +#: discord.ext.commands.Paginator:1 of +msgid "A class that aids in paginating code blocks for Discord messages." +msgstr "" + +#: discord.ext.commands.Paginator:7 of +msgid "Returns the total number of characters in the paginator." +msgstr "" + +#: discord.ext.commands.Paginator:11 of +msgid "" +"Optional[:class:`str`] -- The prefix inserted to every page. e.g. three " +"backticks." +msgstr "" + +#: discord.ext.commands.Paginator:15 of +msgid "" +"Optional[:class:`str`] -- The suffix appended at the end of every page. " +"e.g. three backticks." +msgstr "" + +#: discord.ext.commands.Paginator:19 of +msgid ":class:`int` -- The maximum amount of codepoints allowed in a page." +msgstr "" + +#: discord.ext.commands.Paginator.clear:1 of +msgid "Clears the paginator to have no pages." +msgstr "" + +#: discord.ext.commands.Paginator.add_line:1 of +msgid "Adds a line to the current page." +msgstr "" + +#: discord.ext.commands.Paginator.add_line:3 of +msgid "If the line exceeds the :attr:`max_size` then an exception is raised." +msgstr "" + +#: discord.ext.commands.Paginator.add_line:6 of +msgid "The line to add." +msgstr "" + +#: discord.ext.commands.Paginator.add_line:8 of +msgid "Indicates if another empty line should be added." +msgstr "" + +#: discord.ext.commands.Paginator.add_line:11 of +msgid "" +":exc:`RuntimeError` -- The line was too big for the current " +":attr:`max_size`." +msgstr "" + +#: discord.ext.commands.Paginator.close_page:1 of +msgid "Prematurely terminate a page." +msgstr "" + +#: discord.ext.commands.Paginator.pages:1 of +msgid "Returns the rendered list of pages." +msgstr "" + +#: ../../ext/commands/api.rst:117 +msgid "Checks" +msgstr "" + +#: discord.ext.commands.check:1 of +msgid "" +"A decorator that adds a check to the :class:`.Command` or its subclasses." +" These checks could be accessed via :attr:`.Command.checks`." +msgstr "" + +#: discord.ext.commands.check:4 of +msgid "" +"These checks should be predicates that take in a single parameter taking " +"a :class:`.Context`. If the check returns a ``False``\\-like value then " +"during invocation a :exc:`.CheckFailure` exception is raised and sent to " +"the :func:`.on_command_error` event." +msgstr "" + +#: discord.ext.commands.check:9 of +msgid "" +"If an exception should be thrown in the predicate then it should be a " +"subclass of :exc:`.CommandError`. Any exception not subclassed from it " +"will be propagated while those subclassed will be sent to " +":func:`.on_command_error`." +msgstr "" + +#: discord.ext.commands.check:16 of +msgid "These functions can either be regular functions or coroutines." +msgstr "" + +#: discord.ext.commands.check:18 of +msgid "The predicate to check if the command should be invoked." +msgstr "" + +#: discord.ext.commands.check:22 of +msgid "Creating a basic check to see if the command invoker is you." +msgstr "" + +#: discord.ext.commands.check:34 of +msgid "Transforming common checks into its own decorator:" +msgstr "" + +#: discord.ext.commands.has_role:1 of +msgid "" +"A :func:`.check` that is added that checks if the member invoking the " +"command has the role specified via the name or ID specified." +msgstr "" + +#: discord.ext.commands.has_role:4 of +msgid "" +"If a string is specified, you must give the exact name of the role, " +"including caps and spelling." +msgstr "" + +#: discord.ext.commands.has_role:7 of +msgid "" +"If an integer is specified, you must give the exact snowflake ID of the " +"role." +msgstr "" + +#: discord.ext.commands.has_role:9 of +msgid "" +"If the message is invoked in a private message context then the check " +"will return ``False``." +msgstr "" + +#: discord.ext.commands.has_role:12 of +msgid "The name or ID of the role to check." +msgstr "" + +#: discord.ext.commands.has_permissions:1 of +msgid "" +"A :func:`.check` that is added that checks if the member has all of the " +"permissions necessary." +msgstr "" + +#: discord.ext.commands.has_permissions:4 of +msgid "" +"The permissions passed in must be exactly like the properties shown under" +" :class:`.discord.Permissions`." +msgstr "" + +#: discord.ext.commands.has_permissions:7 of +msgid "" +"This check raises a special exception, :exc:`.MissingPermissions` that is" +" derived from :exc:`.CheckFailure`." +msgstr "" + +#: discord.ext.commands.has_permissions:10 of +msgid "An argument list of permissions to check for." +msgstr "" + +#: discord.ext.commands.has_any_role:1 of +msgid "" +"A :func:`.check` that is added that checks if the member invoking the " +"command has **any** of the roles specified. This means that if they have " +"one out of the three roles specified, then this check will return `True`." +msgstr "" + +#: discord.ext.commands.has_any_role:5 of +msgid "Similar to :func:`.has_role`\\, the names or IDs passed in must be exact." +msgstr "" + +#: discord.ext.commands.has_any_role:7 of +msgid "An argument list of names or IDs to check that the member has roles wise." +msgstr "" + +#: discord.ext.commands.bot_has_role:1 of +msgid "Similar to :func:`.has_role` except checks if the bot itself has the role." +msgstr "" + +#: discord.ext.commands.bot_has_permissions:1 of +msgid "" +"Similar to :func:`.has_permissions` except checks if the bot itself has " +"the permissions listed." +msgstr "" + +#: discord.ext.commands.bot_has_permissions:4 of +msgid "" +"This check raises a special exception, :exc:`.BotMissingPermissions` that" +" is derived from :exc:`.CheckFailure`." +msgstr "" + +#: discord.ext.commands.bot_has_any_role:1 of +msgid "" +"Similar to :func:`.has_any_role` except checks if the bot itself has any " +"of the roles listed." +msgstr "" + +#: discord.ext.commands.cooldown:1 of +msgid "A decorator that adds a cooldown to a :class:`.Command` or its subclasses." +msgstr "" + +#: discord.ext.commands.cooldown:4 of +msgid "" +"A cooldown allows a command to only be used a specific amount of times in" +" a specific time frame. These cooldowns can be based either on a per-" +"guild, per-channel, per-user, or global basis. Denoted by the third " +"argument of ``type`` which must be of enum type ``BucketType`` which " +"could be either:" +msgstr "" + +#: discord.ext.commands.cooldown:10 of +msgid "``BucketType.default`` for a global basis." +msgstr "" + +#: discord.ext.commands.cooldown:11 of +msgid "``BucketType.user`` for a per-user basis." +msgstr "" + +#: discord.ext.commands.cooldown:12 of +msgid "``BucketType.guild`` for a per-guild basis." +msgstr "" + +#: discord.ext.commands.cooldown:13 of +msgid "``BucketType.channel`` for a per-channel basis." +msgstr "" + +#: discord.ext.commands.cooldown:14 of +msgid "``BucketType.member`` for a per-member basis." +msgstr "" + +#: discord.ext.commands.cooldown:15 of +msgid "``BucketType.category`` for a per-category basis." +msgstr "" + +#: discord.ext.commands.cooldown:17 of +msgid "" +"If a cooldown is triggered, then :exc:`.CommandOnCooldown` is triggered " +"in :func:`.on_command_error` and the local error handler." +msgstr "" + +#: discord.ext.commands.cooldown:20 of +msgid "A command can only have a single cooldown." +msgstr "" + +#: discord.ext.commands.cooldown:22 of +msgid "The number of times a command can be used before triggering a cooldown." msgstr "" #: discord.ext.commands.cooldown:24 of @@ -2536,7 +3142,7 @@ msgstr "" msgid "A :func:`.check` that checks if the channel is a NSFW channel." msgstr "" -#: ../../ext/commands/api.rst:136 +#: ../../ext/commands/api.rst:144 msgid "Context" msgstr "" @@ -2941,7 +3547,7 @@ msgid "" ":attr:`Guild.voice_client`\\, if applicable." msgstr "" -#: ../../ext/commands/api.rst:152 +#: ../../ext/commands/api.rst:160 msgid "Converters" msgstr "" @@ -3195,36 +3801,36 @@ msgstr "" msgid ":obj:`bool` -- Whether to also escape special markdown characters." msgstr "" -#: ../../ext/commands/api.rst:195 +#: ../../ext/commands/api.rst:203 msgid "" "A special converter that greedily consumes arguments until it can't. As a" " consequence of this behaviour, most input errors are silently discarded," " since it is used as an indicator of when to stop parsing." msgstr "" -#: ../../ext/commands/api.rst:199 +#: ../../ext/commands/api.rst:207 msgid "" "When a parser error is met the greedy converter stops converting, undoes " "the internal string parsing routine, and continues parsing regularly." msgstr "" -#: ../../ext/commands/api.rst:202 +#: ../../ext/commands/api.rst:210 msgid "For example, in the following code:" msgstr "" -#: ../../ext/commands/api.rst:210 +#: ../../ext/commands/api.rst:218 msgid "" "An invocation of ``[p]test 1 2 3 4 5 6 hello`` would pass ``numbers`` " "with ``[1, 2, 3, 4, 5, 6]`` and ``reason`` with ``hello``\\." msgstr "" -#: ../../ext/commands/api.rst:213 +#: ../../ext/commands/api.rst:221 msgid "For more information, check :ref:`ext_commands_special_converters`." msgstr "" -#: ../../ext/commands/api.rst:218 -msgid "Errors" -msgstr "エラー" +#: ../../ext/commands/api.rst:226 +msgid "Exceptions" +msgstr "" #: discord.ext.commands.CommandError:1 of msgid "The base exception type for all command related errors." @@ -3273,6 +3879,53 @@ msgstr "コマンドのパラメータ解析の際、要求されたパラメー msgid ":class:`inspect.Parameter` -- The argument that is missing." msgstr ":class:`inspect.Parameter` -- 値が渡されなかった引数。" +#: discord.ext.commands.ArgumentParsingError:1 of +msgid "An exception raised when the parser fails to parse a user's input." +msgstr "" + +#: discord.ext.commands.ArgumentParsingError:3 of +msgid "" +"This derives from :exc:`UserInputError`. There are child classes that " +"implement more granular parsing errors for i18n purposes." +msgstr "" + +#: discord.ext.commands.UnexpectedQuoteError:1 of +msgid "" +"An exception raised when the parser encounters a quote mark inside a non-" +"quoted string." +msgstr "" + +#: discord.ext.commands.ExpectedClosingQuoteError:3 +#: discord.ext.commands.InvalidEndOfQuotedStringError:4 +#: discord.ext.commands.UnexpectedQuoteError:3 of +msgid "This derives from :exc:`ArgumentParsingError`." +msgstr "" + +#: discord.ext.commands.UnexpectedQuoteError:7 of +msgid "" +":class:`str` -- The quote mark that was found inside the non-quoted " +"string." +msgstr "" + +#: discord.ext.commands.InvalidEndOfQuotedStringError:1 of +msgid "" +"An exception raised when a space is expected after the closing quote in a" +" string but a different character is found." +msgstr "" + +#: discord.ext.commands.InvalidEndOfQuotedStringError:8 of +msgid ":class:`str` -- The character found instead of the expected string." +msgstr "" + +#: discord.ext.commands.ExpectedClosingQuoteError:1 of +#, fuzzy +msgid "An exception raised when a quote character is expected but not found." +msgstr "Converter クラスで、CommandErrorではない例外が発生した際に、発生する例外。" + +#: discord.ext.commands.ExpectedClosingQuoteError:7 of +msgid ":class:`str` -- The quote character expected." +msgstr "" + #: discord.ext.commands.BadArgument:1 of msgid "" "Exception raised when a parsing or conversion failure is encountered on " @@ -3380,6 +4033,94 @@ msgstr "" msgid "Exception raised when the bot lacks permissions to run command." msgstr "" +#: ../../ext/commands/api.rst:289 +msgid "Exception Hierarchy" +msgstr "" + +#: ../../ext/commands/api.rst:312 +msgid ":exc:`~.DiscordException`" +msgstr "" + +#: ../../ext/commands/api.rst:312 +msgid ":exc:`~.commands.CommandError`" +msgstr "" + +#: ../../ext/commands/api.rst:295 +msgid ":exc:`~.commands.ConversionError`" +msgstr "" + +#: ../../ext/commands/api.rst:303 +msgid ":exc:`~.commands.UserInputError`" +msgstr "" + +#: ../../ext/commands/api.rst:297 +msgid ":exc:`~.commands.MissingRequiredArgument`" +msgstr "" + +#: ../../ext/commands/api.rst:298 +msgid ":exc:`~.commands.TooManyArguments`" +msgstr "" + +#: ../../ext/commands/api.rst:299 +msgid ":exc:`~.commands.BadArgument`" +msgstr "" + +#: ../../ext/commands/api.rst:300 +msgid ":exc:`~.commands.BadUnionArgument`" +msgstr "" + +#: ../../ext/commands/api.rst:303 +msgid ":exc:`~.commands.ArgumentParsingError`" +msgstr "" + +#: ../../ext/commands/api.rst:302 +msgid ":exc:`~.commands.UnexpectedQuoteError`" +msgstr "" + +#: ../../ext/commands/api.rst:303 +msgid ":exc:`~.commands.InvalidEndOfQuotedStringError`" +msgstr "" + +#: ../../ext/commands/api.rst:304 +msgid ":exc:`~.commands.ExpectedClosingQuoteError`" +msgstr "" + +#: ../../ext/commands/api.rst:305 +msgid ":exc:`~.commands.CommandNotFound`" +msgstr "" + +#: ../../ext/commands/api.rst:309 +msgid ":exc:`~.commands.CheckFailure`" +msgstr "" + +#: ../../ext/commands/api.rst:307 +msgid ":exc:`~.commands.NoPrivateMessage`" +msgstr "" + +#: ../../ext/commands/api.rst:308 +msgid ":exc:`~.commands.NotOwner`" +msgstr "" + +#: ../../ext/commands/api.rst:309 +msgid ":exc:`~.commands.MissingPermissions`" +msgstr "" + +#: ../../ext/commands/api.rst:310 +msgid ":exc:`~.commands.BotMissingPermissions`" +msgstr "" + +#: ../../ext/commands/api.rst:311 +msgid ":exc:`~.commands.DisabledCommand`" +msgstr "" + +#: ../../ext/commands/api.rst:312 +msgid ":exc:`~.commands.CommandInvokeError`" +msgstr "" + +#: ../../ext/commands/api.rst:313 +msgid ":exc:`~.commands.CommandOnCooldown`" +msgstr "" + #~ msgid "" #~ "The *bytes-like* object representing the" #~ " icon. See :meth:`~ClientUser.edit` for " @@ -3481,3 +4222,158 @@ msgstr "" #~ "function." #~ msgstr "" +#~ msgid "" +#~ ":class:`.HelpFormatter` -- The formatter used" +#~ " to format the help message. By " +#~ "default, it uses the :class:`.HelpFormatter`." +#~ " Check it for more info on how" +#~ " to override it. If you want to" +#~ " change the help command completely " +#~ "(add aliases, etc) then a call to" +#~ " :meth:`~.Bot.remove_command` with 'help' as " +#~ "the argument would do the trick." +#~ msgstr "" + +#~ msgid "" +#~ "Optional[:class:`bool`] -- A tribool that " +#~ "indicates if the help command should " +#~ "PM the user instead of sending it" +#~ " to the channel it received it " +#~ "from. If the boolean is set to " +#~ "``True``, then all help output is " +#~ "PM'd. If ``False``, none of the " +#~ "help output is PM'd. If ``None``, " +#~ "then the bot will only PM when " +#~ "the help message becomes too long " +#~ "(dictated by more than 1000 characters)." +#~ " Defaults to ``False``." +#~ msgstr "" + +#~ msgid "" +#~ ":class:`dict` -- A dictionary of options" +#~ " to pass in for the construction " +#~ "of the help command. This allows " +#~ "you to change the command behaviour " +#~ "without actually changing the implementation" +#~ " of the command. The attributes will" +#~ " be the same as the ones passed" +#~ " in the :class:`.Command` constructor. Note" +#~ " that ``pass_context`` will always be " +#~ "set to ``True`` regardless of what " +#~ "you pass in." +#~ msgstr "" + +#~ msgid "" +#~ ":class:`str` -- The format string used" +#~ " when the help command is invoked " +#~ "with a command that is not found." +#~ " Useful for i18n. Defaults to ``\"No" +#~ " command called {} found.\"``. The " +#~ "only format argument is the name " +#~ "of the command passed." +#~ msgstr "" + +#~ msgid "" +#~ ":class:`str` -- The format string used" +#~ " when the help command is invoked " +#~ "with requests for a subcommand but " +#~ "the command does not have any " +#~ "subcommands. Defaults to ``\"Command {0.name}" +#~ " has no subcommands.\"``. The first " +#~ "format argument is the :class:`.Command` " +#~ "attempted to get a subcommand and " +#~ "the second is the name." +#~ msgstr "" + +#~ msgid ":exc:`TypeError` -- The function is not a coroutine function." +#~ msgstr "" + +#~ msgid "Formatters" +#~ msgstr "" + +#~ msgid "" +#~ ":class:`str` -- The prefix inserted to" +#~ " every page. e.g. three backticks." +#~ msgstr "" + +#~ msgid "" +#~ ":class:`str` -- The suffix appended at" +#~ " the end of every page. e.g. " +#~ "three backticks." +#~ msgstr "" + +#~ msgid "" +#~ "To override the behaviour of the " +#~ "formatter, :meth:`~.HelpFormatter.format` should be" +#~ " overridden. A number of utility " +#~ "functions are provided for use inside" +#~ " that method." +#~ msgstr "" +#~ "このクラスのフォーマット動作を上書きするには、:meth:`~.HelpFormatter.format` " +#~ "関数をオーバーライドする必要があります。本クラスでは、この関数内で使うことが出来るユーティリティ関数が数多く提供されています。" + +#~ msgid ":class:`bool`: Specifies if the command has subcommands." +#~ msgstr ":class:`bool`: コマンドがサブコマンドを持つかを表します。" + +#~ msgid "" +#~ ":class:`bool`: Specifies if the command " +#~ "being formatted is the bot itself." +#~ msgstr ":class:`bool`: フォーマット対象のコマンドが、bot自体であるかを表します。" + +#~ msgid "" +#~ ":class:`bool`: Specifies if the command " +#~ "being formatted is actually a cog." +#~ msgstr ":class:`bool`: フォーマット対象のコマンドが、cogであるかを表します。" + +#~ msgid "" +#~ ":class:`int` -- Returns the largest name" +#~ " length of a command or if it" +#~ " has subcommands the largest subcommand " +#~ "name." +#~ msgstr "コマンドまたはサブコマンドのうち、最も長い名前の文字数を返します。" + +#~ msgid "" +#~ "Returns a filtered list of commands " +#~ "based on the two attributes provided," +#~ " :attr:`show_check_failure` and :attr:`show_hidden`." +#~ " Also filters based on if " +#~ ":meth:`~.HelpFormatter.is_cog` is valid." +#~ msgstr "" +#~ ":attr:`show_check_failure` と :attr:`show_hidden` " +#~ "に基づき、フィルタリングされたコマンドのリストを返します。また、 :meth:`~.HelpFormatter.is_cog`" +#~ " が有効かどうかにも基づいてフィルタリングします。" + +#~ msgid "" +#~ "An iterable with the filter being " +#~ "applied. The resulting value is a " +#~ "(key, value) :class:`tuple` of the " +#~ "command name and the command itself." +#~ msgstr "" +#~ "フィルタリングされたイテラブル。結果は、コマンド名とコマンド自身の、 (key, value) " +#~ ":class:`tuple` 形式で返されます。。" + +#~ msgid "Handles the actual behaviour involved with formatting." +#~ msgstr "フォーマットに関わる実際の挙動を扱う関数です。" + +#~ msgid "To change the behaviour, this method should be overridden." +#~ msgstr "フォーマットに関する挙動を変更したい場合、このメソッドをオーバーライドする必要があります。" + +#~ msgid "" +#~ "Formats the help page and handles " +#~ "the actual heavy lifting of how " +#~ "the help command looks like. To " +#~ "change the behaviour, override the " +#~ ":meth:`~.HelpFormatter.format` method." +#~ msgstr "" +#~ "helpページをフォーマットし、helpコマンドがどう見えるかのもっとも重要な処理を行います。この挙動を変更したい場合、:meth:`~.HelpFormatter.format`" +#~ " をオーバーライドして下さい。" + +#~ msgid "" +#~ "A :func:`.check` that is added that " +#~ "checks if the member has any of" +#~ " the permissions necessary." +#~ msgstr "" + +#~ msgid "Errors" +#~ msgstr "エラー" + diff --git a/docs/locale/ja/LC_MESSAGES/migrating.po b/docs/locale/ja/LC_MESSAGES/migrating.po index 7e8fb0e9b..0ba47257f 100644 --- a/docs/locale/ja/LC_MESSAGES/migrating.po +++ b/docs/locale/ja/LC_MESSAGES/migrating.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-02-24 04:09-0500\n" +"POT-Creation-Date: 2019-03-16 05:18-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Episword , 2018\n" "Language: ja_JP\n" @@ -1158,7 +1158,7 @@ msgstr "" "変更点の一つは、以前の ``Client.send_message`` と ``Client.send_file`` の機能を単一のメソッド " ":meth:`~abc.Messageable.send` に統合したことです。" -#: ../../migrating.rst:417 ../../migrating.rst:1009 +#: ../../migrating.rst:417 ../../migrating.rst:1067 msgid "Basically: ::" msgstr "基本形" @@ -1344,7 +1344,7 @@ msgid "Before: ::" msgstr "更新前" #: ../../migrating.rst:529 ../../migrating.rst:541 ../../migrating.rst:553 -#: ../../migrating.rst:621 ../../migrating.rst:924 ../../migrating.rst:1091 +#: ../../migrating.rst:621 ../../migrating.rst:924 ../../migrating.rst:1149 msgid "After: ::" msgstr "更新後" @@ -2079,84 +2079,250 @@ msgstr "" ":class:`~ext.commands.Context` を使用するよう変更されました。" #: ../../migrating.rst:940 +msgid "HelpFormatter and Help Command Changes" +msgstr "" + +#: ../../migrating.rst:942 +msgid "" +"The :class:`~.commands.HelpFormatter` class has been removed. It has been" +" replaced with a :class:`~.commands.HelpCommand` class. This class now " +"stores all the command handling and processing of the help command." +msgstr "" + +#: ../../migrating.rst:944 +msgid "" +"The help command is now stored in the :attr:`.Bot.help_command` " +"attribute. As an added extension, you can disable the help command " +"completely by assigning the attribute to ``None`` or passing it at " +"``__init__`` as ``help_command=None``." +msgstr "" + +#: ../../migrating.rst:946 +msgid "" +"The new interface allows the help command to be customised through " +"special methods that can be overridden." +msgstr "" + +#: ../../migrating.rst:948 +msgid ":meth:`.HelpCommand.send_bot_help`" +msgstr "" + +#: ../../migrating.rst:949 +msgid "Called when the user requested for help with the entire bot." +msgstr "" + +#: ../../migrating.rst:950 +msgid ":meth:`.HelpCommand.send_cog_help`" +msgstr "" + +#: ../../migrating.rst:951 +msgid "Called when the user requested for help with a specific cog." +msgstr "" + +#: ../../migrating.rst:952 +msgid ":meth:`.HelpCommand.send_group_help`" +msgstr "" + +#: ../../migrating.rst:953 +msgid "Called when the user requested for help with a :class:`~.commands.Group`" +msgstr "" + +#: ../../migrating.rst:954 +msgid ":meth:`.HelpCommand.send_command_help`" +msgstr "" + +#: ../../migrating.rst:955 +msgid "Called when the user requested for help with a :class:`~.commands.Command`" +msgstr "" + +#: ../../migrating.rst:956 +msgid ":meth:`.HelpCommand.get_destination`" +msgstr "" + +#: ../../migrating.rst:957 +msgid "" +"Called to know where to send the help messages. Useful for deciding " +"whether to DM or not." +msgstr "" + +#: ../../migrating.rst:958 +msgid ":meth:`.HelpCommand.command_not_found`" +msgstr "" + +#: ../../migrating.rst:959 +msgid "" +"A function (or coroutine) that returns a presentable no command found " +"string." +msgstr "" + +#: ../../migrating.rst:960 +msgid ":meth:`.HelpCommand.subcommand_not_found`" +msgstr "" + +#: ../../migrating.rst:961 +msgid "" +"A function (or coroutine) that returns a string when a subcommand is not " +"found." +msgstr "" + +#: ../../migrating.rst:963 +msgid ":meth:`.HelpCommand.send_error_message`" +msgstr "" + +#: ../../migrating.rst:963 +msgid "" +"A coroutine that gets passed the result of " +":meth:`.HelpCommand.command_not_found` and " +":meth:`.HelpCommand.subcommand_not_found`." +msgstr "" + +#: ../../migrating.rst:964 +msgid "" +"By default it just sends the message. But you can, for example, override " +"it to put it in an embed." +msgstr "" + +#: ../../migrating.rst:965 +msgid ":meth:`.HelpCommand.on_help_command_error`" +msgstr "" + +#: ../../migrating.rst:966 +msgid "" +"The :ref:`error handler ` for the help " +"command if you want to add one." +msgstr "" + +#: ../../migrating.rst:968 +msgid ":meth:`.HelpCommand.prepare_help_command`" +msgstr "" + +#: ../../migrating.rst:968 +msgid "" +"A coroutine that is called right before the help command processing is " +"done." +msgstr "" + +#: ../../migrating.rst:970 +msgid "Certain subclasses can implement more customisable methods." +msgstr "" + +#: ../../migrating.rst:972 +msgid "" +"The old ``HelpFormatter`` was replaced with " +":class:`~.commands.DefaultHelpCommand`\\, which implements all of the " +"logic of the old help command. The customisable methods can be found in " +"the accompanying documentation." +msgstr "" + +#: ../../migrating.rst:974 +msgid "" +"The library now provides a new more minimalistic " +":class:`~.commands.HelpCommand` implementation that doesn't take as much " +"space, :class:`~.commands.MinimalHelpCommand`. The customisable methods " +"can also be found in the accompanying documentation." +msgstr "" + +#: ../../migrating.rst:976 +msgid "" +"A frequent request was if you could associate a help command with a cog. " +"The new design allows for dynamically changing of cog through binding it " +"to the :attr:`.HelpCommand.cog` attribute. After this assignment the help" +" command will pretend to be part of the cog and everything should work as" +" expected. When the cog is unloaded then the help command will be " +"\"unbound\" from the cog." +msgstr "" + +#: ../../migrating.rst:978 +msgid "" +"For example, to implement a :class:`~.commands.HelpCommand` in a cog, the" +" following snippet can be used." +msgstr "" + +#: ../../migrating.rst:995 +msgid "" +"For more information, check out the relevant :ref:`documentation " +"`." +msgstr "" + +#: ../../migrating.rst:998 msgid "Cog Changes" msgstr "コグの変更" -#: ../../migrating.rst:942 +#: ../../migrating.rst:1000 msgid "" "Cogs have completely been revamped. They are documented in " ":ref:`ext_commands_cogs` as well." msgstr "" -#: ../../migrating.rst:944 +#: ../../migrating.rst:1002 msgid "" "Cogs are now required to have a base class, :class:`~.commands.Cog` for " "future proofing purposes. This comes with special methods to customise " "some behaviour." msgstr "" -#: ../../migrating.rst:946 +#: ../../migrating.rst:1004 msgid ":meth:`.Cog.cog_unload`" msgstr "" -#: ../../migrating.rst:947 +#: ../../migrating.rst:1005 msgid "" "This is called when a cog needs to do some cleanup, such as cancelling a " "task." msgstr "" -#: ../../migrating.rst:948 +#: ../../migrating.rst:1006 msgid ":meth:`.Cog.bot_check_once`" msgstr "" -#: ../../migrating.rst:949 +#: ../../migrating.rst:1007 msgid "This registers a :meth:`.Bot.check_once` check." msgstr "" -#: ../../migrating.rst:950 +#: ../../migrating.rst:1008 msgid ":meth:`.Cog.bot_check`" msgstr "" -#: ../../migrating.rst:951 +#: ../../migrating.rst:1009 msgid "This registers a regular :meth:`.Bot.check` check." msgstr "" -#: ../../migrating.rst:952 +#: ../../migrating.rst:1010 msgid ":meth:`.Cog.cog_check`" msgstr "" -#: ../../migrating.rst:953 +#: ../../migrating.rst:1011 msgid "This registers a check that applies to every command in the cog." msgstr "" -#: ../../migrating.rst:954 +#: ../../migrating.rst:1012 msgid ":meth:`.Cog.cog_command_error`" msgstr "" -#: ../../migrating.rst:955 +#: ../../migrating.rst:1013 msgid "" "This is a special error handler that is called whenever an error happens " "inside the cog." msgstr "" -#: ../../migrating.rst:957 +#: ../../migrating.rst:1015 msgid ":meth:`.Cog.cog_before_invoke` and :meth:`.Cog.cog_after_invoke`" msgstr "" -#: ../../migrating.rst:957 +#: ../../migrating.rst:1015 msgid "" "A special method that registers a cog before and after invoke hook. More " "information can be found in :ref:`migrating_1_0_before_after_hook`." msgstr "" -#: ../../migrating.rst:959 +#: ../../migrating.rst:1017 msgid "" "Those that were using listeners, such as ``on_message`` inside a cog will" " now have to explicitly mark them as such using the " ":meth:`.commands.Cog.listener` decorator." msgstr "" -#: ../../migrating.rst:961 +#: ../../migrating.rst:1019 msgid "" "Along with that, cogs have gained the ability to have custom names " "through specifying it in the class definition line. More options can be " @@ -2164,33 +2330,33 @@ msgid "" ":class:`.commands.CogMeta`." msgstr "" -#: ../../migrating.rst:963 +#: ../../migrating.rst:1021 msgid "" "An example cog with every special method registered and a custom name is " "as follows:" msgstr "" -#: ../../migrating.rst:1000 +#: ../../migrating.rst:1058 msgid "Before and After Invocation Hooks" msgstr "前後処理のフック" -#: ../../migrating.rst:1002 +#: ../../migrating.rst:1060 msgid "" "Commands have gained new before and after invocation hooks that allow you" " to do an action before and after a command is run." msgstr "コマンドに、コマンドの実行前および実行後に処理が行えるようにするフックが新たに追加されました。" -#: ../../migrating.rst:1005 +#: ../../migrating.rst:1063 msgid "" "They take a single parameter, :class:`~ext.commands.Context` and they " "must be a coroutine." msgstr "これは単一のパラメータとして :class:`~ext.commands.Context` を受け取り、かつコルーチンである必要があります。" -#: ../../migrating.rst:1007 +#: ../../migrating.rst:1065 msgid "They are on a global, per-cog, or per-command basis." msgstr "また、このフックは全体、コグごと、あるいはコマンドごとに設定することが可能です。" -#: ../../migrating.rst:1024 +#: ../../migrating.rst:1082 msgid "" "The after invocation is hook always called, **regardless of an error in " "the command**. This makes it ideal for some error handling or clean up of" @@ -2199,67 +2365,67 @@ msgstr "" "後処理のフックは **コマンドのエラー発生に関わらず** " "必ず呼び出されます。そのため、データベース接続のようなリソースのクリーンアップやエラー処理に最適です。" -#: ../../migrating.rst:1027 +#: ../../migrating.rst:1085 msgid "The per-command registration is as follows: ::" msgstr "コマンドごとに設定する方法は以下のとおりです。" -#: ../../migrating.rst:1043 +#: ../../migrating.rst:1101 #, fuzzy msgid "" "The special cog method for these is :meth:`.Cog.cog_before_invoke` and " ":meth:`.Cog.cog_after_invoke`, e.g.:" msgstr "特定のコグへの実装は以下の例のように ``__before_invoke`` と ``__after_invoke`` メソッドを用いてください。" -#: ../../migrating.rst:1058 +#: ../../migrating.rst:1116 msgid "" "To check if a command failed in the after invocation hook, you can use " ":attr:`.Context.command_failed`." msgstr ":attr:`.Context.command_failed` を使うことで、後処理でコマンドがエラーになったかを確認する事ができます。" -#: ../../migrating.rst:1061 +#: ../../migrating.rst:1119 msgid "The invocation order is as follows:" msgstr "呼び出される順序は以下のとおりです。" -#: ../../migrating.rst:1063 +#: ../../migrating.rst:1121 msgid "Command local before invocation hook" msgstr "コマンドごとの前処理。" -#: ../../migrating.rst:1064 +#: ../../migrating.rst:1122 msgid "Cog local before invocation hook" msgstr "コグごとの前処理。" -#: ../../migrating.rst:1065 +#: ../../migrating.rst:1123 msgid "Global before invocation hook" msgstr "全体での前処理。" -#: ../../migrating.rst:1066 +#: ../../migrating.rst:1124 msgid "The actual command" msgstr "実行されたコマンド。" -#: ../../migrating.rst:1067 +#: ../../migrating.rst:1125 msgid "Command local after invocation hook" msgstr "コマンドごとの後処理。" -#: ../../migrating.rst:1068 +#: ../../migrating.rst:1126 msgid "Cog local after invocation hook" msgstr "コグごとの後処理。" -#: ../../migrating.rst:1069 +#: ../../migrating.rst:1127 msgid "Global after invocation hook" msgstr "全体での後処理。" -#: ../../migrating.rst:1072 +#: ../../migrating.rst:1130 msgid "Converter Changes" msgstr "コンバーターの変更" -#: ../../migrating.rst:1074 +#: ../../migrating.rst:1132 msgid "" "Prior to v1.0, a converter was a type hint that could be a callable that " "could be invoked with a singular argument denoting the argument passed by" " the user as a string." msgstr "" -#: ../../migrating.rst:1077 +#: ../../migrating.rst:1135 msgid "" "This system was eventually expanded to support a " ":class:`~ext.commands.Converter` system to allow plugging in the " @@ -2267,7 +2433,7 @@ msgid "" "as the built-in \"discord\" converters." msgstr "" -#: ../../migrating.rst:1081 +#: ../../migrating.rst:1139 msgid "" "In v1.0 this converter system was revamped to allow instances of " ":class:`~ext.commands.Converter` derived classes to be passed. For " @@ -2276,35 +2442,35 @@ msgid "" "parameters." msgstr "" -#: ../../migrating.rst:1085 +#: ../../migrating.rst:1143 msgid "Essentially, before: ::" msgstr "" -#: ../../migrating.rst:1097 +#: ../../migrating.rst:1155 msgid "The command framework also got a couple new converters:" msgstr "コマンドフレームワークにも二つのコンバーターが追加されました。" -#: ../../migrating.rst:1099 +#: ../../migrating.rst:1157 msgid "" ":class:`~ext.commands.clean_content` this is akin to " ":attr:`Message.clean_content` which scrubs mentions." msgstr "" -#: ../../migrating.rst:1100 +#: ../../migrating.rst:1158 msgid "" ":class:`~ext.commands.UserConverter` will now appropriately convert " ":class:`User` only." msgstr "" -#: ../../migrating.rst:1101 +#: ../../migrating.rst:1159 msgid "``ChannelConverter`` is now split into two different converters." msgstr "``ChannelConverter`` は二つのコンバーターに分離されました。" -#: ../../migrating.rst:1103 +#: ../../migrating.rst:1161 msgid ":class:`~ext.commands.TextChannelConverter` for :class:`TextChannel`." msgstr ":class:`TextChannel` 用の :class:`~ext.commands.TextChannelConverter` 。" -#: ../../migrating.rst:1104 +#: ../../migrating.rst:1162 msgid ":class:`~ext.commands.VoiceChannelConverter` for :class:`VoiceChannel`." msgstr ":class:`VoiceChannel` 用の :class:`~ext.commands.VoiceChannelConverter` 。"