Fixed EditChannel(Channel) overload

This commit is contained in:
RogueException
2015-10-02 17:29:54 -03:00
parent 27840e39ff
commit a4f6f0ac32

View File

@@ -106,8 +106,8 @@ namespace Discord
} }
/// <summary> Edits the provided channel, changing only non-null attributes. </summary> /// <summary> Edits the provided channel, changing only non-null attributes. </summary>
public Task EditChannel(Channel channel) public Task EditChannel(Channel channel, string name = null, string topic = null)
=> EditChannel(channel?.Id); => EditChannel(channel?.Id, name: name, topic: topic);
/// <summary> Edits the provided channel, changing only non-null attributes. </summary> /// <summary> Edits the provided channel, changing only non-null attributes. </summary>
public Task EditChannel(string channelId, string name = null, string topic = null) public Task EditChannel(string channelId, string name = null, string topic = null)
{ {