diff --git a/packages/rest/src/routes.ts b/packages/rest/src/routes.ts index 4918f99cc..fcaae3378 100644 --- a/packages/rest/src/routes.ts +++ b/packages/rest/src/routes.ts @@ -357,9 +357,6 @@ export function createRoutes(): RestRoutes { if (options.withCounts !== undefined) { url += `with_counts=${options.withCounts.toString()}` } - if (options.withExpiration !== undefined) { - url += `&with_expiration=${options.withExpiration.toString()}` - } if (options.scheduledEventId) { url += `&guild_scheduled_event_id=${options.scheduledEventId}` } diff --git a/packages/types/src/discord/invite.ts b/packages/types/src/discord/invite.ts index 0460ecb78..143642800 100644 --- a/packages/types/src/discord/invite.ts +++ b/packages/types/src/discord/invite.ts @@ -28,8 +28,8 @@ export interface DiscordInvite { approximate_presence_count?: number /** Approximate count of total members */ approximate_member_count?: number - /** The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` */ - expires_at?: string | null + /** The expiration date of this invite */ + expires_at: string | null /** * Stage instance data if there is a public Stage instance in the Stage channel this invite is for * diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 9b1f5bcba..84dfafb5d 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -580,8 +580,6 @@ export interface GetScheduledEventUsers { export interface GetInvite { /** Whether the invite should contain approximate member counts */ withCounts?: boolean - /** Whether the invite should contain the expiration date */ - withExpiration?: boolean /** the guild scheduled event to include with the invite */ scheduledEventId?: BigString }