aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorHarmon <[email protected]>2020-01-22 22:55:05 -0600
committerDanny <[email protected]>2020-01-22 23:55:05 -0500
commit6f9793fe5e8090446f7e8fd0d1e0d752cd66fd0f (patch)
tree8df53b1ae373eb4dc0e05c3df4f2c388497e5499 /discord/channel.py
parent1.3.0 changelog: fetch_roles fetches roles, not members (diff)
downloaddiscord.py-6f9793fe5e8090446f7e8fd0d1e0d752cd66fd0f.tar.xz
discord.py-6f9793fe5e8090446f7e8fd0d1e0d752cd66fd0f.zip
Fixes and improvements for v1.3 documentation
* Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/discord/channel.py b/discord/channel.py
index 2bd5c31c..1879a974 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -194,6 +194,9 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
You must have the :attr:`~Permissions.manage_channels` permission to
use this.
+ .. versionchanged:: 1.3
+ The ``overwrites`` keyword-only parameter was added.
+
Parameters
----------
name: :class:`str`
@@ -219,8 +222,6 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
A :class:`dict` of target (either a role or a member) to
:class:`PermissionOverwrite` to apply to the channel.
- .. versionadded:: 1.3
-
Raises
------
InvalidArgument
@@ -644,6 +645,9 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable):
You must have the :attr:`~Permissions.manage_channels` permission to
use this.
+ .. versionchanged:: 1.3
+ The ``overwrites`` keyword-only parameter was added.
+
Parameters
----------
name: :class:`str`
@@ -666,8 +670,6 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable):
A :class:`dict` of target (either a role or a member) to
:class:`PermissionOverwrite` to apply to the channel.
- .. versionadded:: 1.3
-
Raises
------
InvalidArgument
@@ -762,6 +764,9 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
You must have the :attr:`~Permissions.manage_channels` permission to
use this.
+ .. versionchanged:: 1.3
+ The ``overwrites`` keyword-only parameter was added.
+
Parameters
----------
name: :class:`str`
@@ -776,8 +781,6 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
A :class:`dict` of target (either a role or a member) to
:class:`PermissionOverwrite` to apply to the channel.
- .. versionadded:: 1.3
-
Raises
------
InvalidArgument