refactor(Client): Remove with_expiration query parameter
backport #10800 djs
This commit is contained in:
@@ -380,7 +380,7 @@ class Client extends BaseClient {
|
|||||||
async fetchInvite(invite, options) {
|
async fetchInvite(invite, options) {
|
||||||
const code = DataResolver.resolveInviteCode(invite);
|
const code = DataResolver.resolveInviteCode(invite);
|
||||||
const data = await this.api.invites(code).get({
|
const data = await this.api.invites(code).get({
|
||||||
query: { with_counts: true, with_expiration: true, guild_scheduled_event_id: options?.guildScheduledEventId },
|
query: { with_counts: true, guild_scheduled_event_id: options?.guildScheduledEventId },
|
||||||
});
|
});
|
||||||
return new Invite(this, data);
|
return new Invite(this, data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user