Missing invite properties (#2615)
This commit is contained in:
@@ -52,10 +52,9 @@ namespace Discord.Rest
|
||||
return models.Select(model => RestConnection.Create(client, model)).ToImmutableArray();
|
||||
}
|
||||
|
||||
public static async Task<RestInviteMetadata> GetInviteAsync(BaseDiscordClient client,
|
||||
string inviteId, RequestOptions options)
|
||||
public static async Task<RestInviteMetadata> GetInviteAsync(BaseDiscordClient client, string inviteId, RequestOptions options, ulong? scheduledEventId = null)
|
||||
{
|
||||
var model = await client.ApiClient.GetInviteAsync(inviteId, options).ConfigureAwait(false);
|
||||
var model = await client.ApiClient.GetInviteAsync(inviteId, options, scheduledEventId).ConfigureAwait(false);
|
||||
if (model != null)
|
||||
return RestInviteMetadata.Create(client, null, null, model);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user