mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
feat(Client): make use of with_expiration in #fetchInvite (#5764)
This commit is contained in:
@@ -255,7 +255,7 @@ class Client extends BaseClient {
|
||||
const code = DataResolver.resolveInviteCode(invite);
|
||||
return this.api
|
||||
.invites(code)
|
||||
.get({ query: { with_counts: true } })
|
||||
.get({ query: { with_counts: true, with_expiration: true } })
|
||||
.then(data => new Invite(this, data));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user