Browse Source

Fixed EditChannel(Channel) overload

tags/docs-0.9
RogueException 9 years ago
parent
commit
a4f6f0ac32
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/DiscordClient.API.cs

+ 2
- 2
src/Discord.Net/DiscordClient.API.cs View File

@@ -106,8 +106,8 @@ namespace Discord
}

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


Loading…
Cancel
Save