Change wording of InvalidArgument removal in docs

This commit is contained in:
chromacoat dreamkey
2022-03-12 12:25:43 +08:00
committed by GitHub
parent 124a3ee42a
commit 095aaa9ad1
14 changed files with 84 additions and 84 deletions

View File

@@ -301,8 +301,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
Edits are no longer in-place, the newly edited channel is returned instead.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`ValueError` or :exc:`TypeError` in various cases.
This function will now raise :exc:`TypeError` or
:exc:`ValueError` instead of ``InvalidArgument``.
Parameters
----------
@@ -619,8 +619,8 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
.. versionadded:: 1.3
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`TypeError`.
This function will now raise :exc:`TypeError` instead of
``InvalidArgument``.
Parameters
-----------
@@ -1094,8 +1094,8 @@ class VoiceChannel(VocalGuildChannel):
The ``region`` parameter now accepts :class:`str` instead of an enum.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`TypeError`.
This function will now raise :exc:`TypeError` instead of
``InvalidArgument``.
Parameters
----------
@@ -1379,8 +1379,8 @@ class StageChannel(VocalGuildChannel):
The ``region`` parameter now accepts :class:`str` instead of an enum.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`TypeError`.
This function will now raise :exc:`TypeError` instead of
``InvalidArgument``.
Parameters
----------
@@ -1537,8 +1537,8 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
Edits are no longer in-place, the newly edited channel is returned instead.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`ValueError` or :exc:`TypeError` in various cases.
This function will now raise :exc:`TypeError` or
:exc:`ValueError` instead of ``InvalidArgument``.
Parameters
----------
@@ -1784,8 +1784,8 @@ class StoreChannel(discord.abc.GuildChannel, Hashable):
Edits are no longer in-place, the newly edited channel is returned instead.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`ValueError` or :exc:`TypeError` in various cases.
This function will now raise :exc:`TypeError` or
:exc:`ValueError` instead of ``InvalidArgument``.
Parameters
----------