Fixed EditChannel(Channel) overload
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user