api-docs!: remove GetInvite.withExpiration, remove optional from DiscordInvite.expires_at (#4321)

This commit is contained in:
Fleny
2025-08-13 11:09:39 +02:00
committed by GitHub
parent a5a3e412ac
commit 51158071ad
3 changed files with 2 additions and 7 deletions
-3
View File
@@ -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}`
}
+2 -2
View File
@@ -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/<code>` 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
*
-2
View File
@@ -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
}