diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs
index a90898415..5ebd3b0d5 100644
--- a/src/Discord.Net/DiscordClient.API.cs
+++ b/src/Discord.Net/DiscordClient.API.cs
@@ -60,10 +60,10 @@ namespace Discord
//Channels
/// Creates a new channel with the provided name and type (see ChannelTypes).
- public Task CreateChannel(Server server, string name, string type)
+ public Task CreateChannel(Server server, string name, string type = ChannelTypes.Text)
=> CreateChannel(server?.Id, name, type);
/// Creates a new channel with the provided name and type (see ChannelTypes).
- public async Task CreateChannel(string serverId, string name, string type)
+ public async Task CreateChannel(string serverId, string name, string type = ChannelTypes.Text)
{
CheckReady();
if (serverId == null) throw new ArgumentNullException(nameof(serverId));
@@ -183,14 +183,14 @@ namespace Discord
/// If true, a user accepting this invite will be kicked from the server after closing their client.
/// If true, creates a human-readable link. Not supported if maxAge is set to 0.
/// The max amount of times this invite may be used.
- public async Task CreateInvite(string channelId, int maxAge, int maxUses, bool isTemporary, bool hasXkcdPass)
+ public async Task CreateInvite(string serverOrChannelId, int maxAge, int maxUses, bool isTemporary, bool hasXkcdPass)
{
CheckReady();
- if (channelId == null) throw new ArgumentNullException(nameof(channelId));
+ if (serverOrChannelId == null) throw new ArgumentNullException(nameof(serverOrChannelId));
if (maxAge <= 0) throw new ArgumentOutOfRangeException(nameof(maxAge));
if (maxUses <= 0) throw new ArgumentOutOfRangeException(nameof(maxUses));
- var response = await _api.CreateInvite(channelId, maxAge, maxUses, isTemporary, hasXkcdPass).ConfigureAwait(false);
+ var response = await _api.CreateInvite(serverOrChannelId, maxAge, maxUses, isTemporary, hasXkcdPass).ConfigureAwait(false);
var invite = new Invite(this, response.Code, response.XkcdPass, response.Guild.Id);
invite.Update(response);
return invite;