mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-03 14:02:19 +00:00
Change wording of InvalidArgument removal in docs
This commit is contained in:
committed by
GitHub
parent
124a3ee42a
commit
095aaa9ad1
@@ -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
|
||||
----------
|
||||
|
||||
Reference in New Issue
Block a user