diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs
index 5ebd3b0d5..1f8a271df 100644
--- a/src/Discord.Net/DiscordClient.API.cs
+++ b/src/Discord.Net/DiscordClient.API.cs
@@ -166,31 +166,31 @@ namespace Discord
//Invites
/// Creates a new invite to the default channel of the provided server.
/// Time (in seconds) until the invite expires. Set to 0 to never expire.
- /// 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 Task CreateInvite(Server server, int maxAge, int maxUses, bool isTemporary, bool hasXkcdPass)
- => CreateInvite(server?.DefaultChannelId, maxAge, maxUses, isTemporary, hasXkcdPass);
+ /// 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. Set to 0 to have unlimited uses.
+ public Task CreateInvite(Server server, int maxAge = 1800, int maxUses = 0, bool tempMembership = false, bool hasXkcd = false)
+ => CreateInvite(server?.DefaultChannelId, maxAge, maxUses, tempMembership, hasXkcd);
/// Creates a new invite to the provided channel.
/// Time (in seconds) until the invite expires. Set to 0 to never expire.
- /// 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 Task CreateInvite(Channel channel, int maxAge, int maxUses, bool isTemporary, bool hasXkcdPass)
- => CreateInvite(channel?.Id, maxAge, maxUses, isTemporary, hasXkcdPass);
+ /// 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. Set to 0 to have unlimited uses.
+ public Task CreateInvite(Channel channel, int maxAge = 1800, int maxUses = 0, bool tempMembership = false, bool hasXkcd = false)
+ => CreateInvite(channel?.Id, maxAge, maxUses, tempMembership, hasXkcd);
/// Creates a new invite to the provided channel.
/// Time (in seconds) until the invite expires. Set to 0 to never expire.
- /// 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 serverOrChannelId, int maxAge, int maxUses, bool isTemporary, bool hasXkcdPass)
+ /// 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. Set to 0 to have unlimited uses.
+ public async Task CreateInvite(string serverOrChannelId, int maxAge = 1800, int maxUses = 0, bool tempMembership = false, bool hasXkcd = false)
{
CheckReady();
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(serverOrChannelId, maxAge, maxUses, isTemporary, hasXkcdPass).ConfigureAwait(false);
+ var response = await _api.CreateInvite(serverOrChannelId, maxAge, maxUses, tempMembership, hasXkcd).ConfigureAwait(false);
var invite = new Invite(this, response.Code, response.XkcdPass, response.Guild.Id);
invite.Update(response);
return invite;