valkyrie-api-types/rest/v9/invite.ts

28 lines
704 B
TypeScript
Raw Normal View History

2024-09-11 23:00:57 -07:00
import type { Snowflake } from '../../globals';
import type { APIInvite } from '../../payloads/v9/index';
/**
* https://discord.com/developers/docs/resources/invite#get-invite
*/
export interface RESTGetAPIInviteQuery {
/**
* Whether the invite should contain approximate member counts
*/
with_counts?: boolean;
/**
* Whether the invite should contain the expiration date
*/
with_expiration?: boolean;
/**
* The guild scheduled event to include with the invite
*/
guild_scheduled_event_id?: Snowflake;
}
export type RESTGetAPIInviteResult = APIInvite;
/**
* https://discord.com/developers/docs/resources/invite#delete-invite
*/
2024-09-12 00:14:45 -07:00
export type RESTDeleteAPIInviteResult = APIInvite;