From 6f9793fe5e8090446f7e8fd0d1e0d752cd66fd0f Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 22 Jan 2020 22:55:05 -0600 Subject: 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 --- discord/channel.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'discord/channel.py') 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 -- cgit v1.2.3