mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
api-docs!: remove GetInvite.withExpiration, remove optional from DiscordInvite.expires_at (#4321)
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user