Change default InviteAge to 24 hours

Resolves #859
This commit is contained in:
Christopher F
2017-11-10 15:39:33 -05:00
parent 8d533930fa
commit 9979a027d5
4 changed files with 4 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ namespace Discord.WebSocket
public async Task<IReadOnlyCollection<RestInviteMetadata>> GetInvitesAsync(RequestOptions options = null)
=> await ChannelHelper.GetInvitesAsync(this, Discord, options).ConfigureAwait(false);
public async Task<RestInviteMetadata> CreateInviteAsync(int? maxAge = 3600, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
public async Task<RestInviteMetadata> CreateInviteAsync(int? maxAge = 86400, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
=> await ChannelHelper.CreateInviteAsync(this, Discord, maxAge, maxUses, isTemporary, isUnique, options).ConfigureAwait(false);
public new virtual SocketGuildUser GetUser(ulong id) => null;