feat(Client): make use of with_expiration in #fetchInvite (#5764)

This commit is contained in:
Souji
2021-06-07 10:58:26 +02:00
committed by GitHub
parent 4567cd4ca2
commit bf191df9c0
2 changed files with 7 additions and 2 deletions

View File

@@ -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));
}