mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 00:13:01 +00:00
Change wording of InvalidArgument removal in docs
This commit is contained in:
committed by
GitHub
parent
124a3ee42a
commit
095aaa9ad1
@@ -1207,8 +1207,8 @@ class Guild(Hashable):
|
||||
will be required to update the position of the channel in the channel list.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Examples
|
||||
----------
|
||||
@@ -1310,8 +1310,8 @@ class Guild(Hashable):
|
||||
This is similar to :meth:`create_text_channel` except makes a :class:`VoiceChannel` instead.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@@ -1400,8 +1400,8 @@ class Guild(Hashable):
|
||||
.. versionadded:: 1.7
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@@ -1471,8 +1471,8 @@ class Guild(Hashable):
|
||||
cannot have categories.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Raises
|
||||
------
|
||||
@@ -1581,8 +1581,8 @@ class Guild(Hashable):
|
||||
The ``region`` keyword parameter has been removed.
|
||||
|
||||
.. 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``.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
The ``preferred_locale`` keyword parameter now accepts an enum instead of :class:`str`.
|
||||
@@ -2086,8 +2086,8 @@ class Guild(Hashable):
|
||||
The ``roles`` keyword-only parameter was added.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@@ -2191,8 +2191,8 @@ class Guild(Hashable):
|
||||
The returned value can be ``None``.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@@ -2889,8 +2889,8 @@ class Guild(Hashable):
|
||||
The ``display_icon`` keyword-only parameter was added.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Parameters
|
||||
-----------
|
||||
@@ -2973,8 +2973,8 @@ class Guild(Hashable):
|
||||
.. versionadded:: 1.4
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`TypeError`.
|
||||
This function will now raise :exc:`TypeError` instead of
|
||||
``InvalidArgument``.
|
||||
|
||||
Example
|
||||
----------
|
||||
|
Reference in New Issue
Block a user