@@ -1108,29 +1108,27 @@ public bool TryGetGuildWidget(ulong id, [NotNullWhen(true)] out DiscordWidget? w
1108
1108
/// </summary>
1109
1109
/// <param name="code">The invite code.</param>
1110
1110
/// <param name="withCounts">Whether to include presence and total member counts in the returned invite.</param>
1111
- /// <param name="withExpiration">Whether to include the expiration date in the returned invite.</param>
1112
1111
/// <param name="scheduledEventId">The scheduled event id.</param>
1113
1112
/// <returns>The requested invite.</returns>
1114
- /// <exception cref="NotFoundException">Thrown when the invite does not exists .</exception>
1113
+ /// <exception cref="NotFoundException">Thrown when the invite does not exist .</exception>
1115
1114
/// <exception cref="BadRequestException">Thrown when an invalid parameter was provided.</exception>
1116
1115
/// <exception cref="ServerErrorException">Thrown when Discord is unable to process the request.</exception>
1117
- public Task < DiscordInvite > GetInviteByCodeAsync ( string code , bool ? withCounts = null , bool ? withExpiration = null , ulong ? scheduledEventId = null )
1118
- => this . ApiClient . GetInviteAsync ( code , withCounts , withExpiration , scheduledEventId ) ;
1116
+ public Task < DiscordInvite > GetInviteByCodeAsync ( string code , bool ? withCounts = null , ulong ? scheduledEventId = null )
1117
+ => this . ApiClient . GetInviteAsync ( code , withCounts , scheduledEventId ) ;
1119
1118
1120
1119
/// <summary>
1121
1120
/// Tries to get an invite.
1122
1121
/// </summary>
1123
1122
/// <param name="code">The invite code.</param>
1124
1123
/// <param name="invite">The invite, if found.</param>
1125
1124
/// <param name="withCounts">Whether to include presence and total member counts in the returned invite.</param>
1126
- /// <param name="withExpiration">Whether to include the expiration date in the returned invite.</param>
1127
1125
/// <param name="scheduledEventId">The scheduled event id.</param>
1128
1126
/// <returns>True if the invite was found, otherwise false.</returns>
1129
- public bool TryGetInviteByCode ( string code , [ NotNullWhen ( true ) ] out DiscordInvite ? invite , bool ? withCounts = null , bool ? withExpiration = null , ulong ? scheduledEventId = null )
1127
+ public bool TryGetInviteByCode ( string code , [ NotNullWhen ( true ) ] out DiscordInvite ? invite , bool ? withCounts = null , ulong ? scheduledEventId = null )
1130
1128
{
1131
1129
try
1132
1130
{
1133
- invite = this . GetInviteByCodeAsync ( code , withCounts , withExpiration , scheduledEventId ) . ConfigureAwait ( false ) . GetAwaiter ( ) . GetResult ( ) ;
1131
+ invite = this . GetInviteByCodeAsync ( code , withCounts , scheduledEventId ) . ConfigureAwait ( false ) . GetAwaiter ( ) . GetResult ( ) ;
1134
1132
return true ;
1135
1133
}
1136
1134
catch ( NotFoundException )
0 commit comments