Skip to content

Commit

Permalink
feat(APIInvite): add type (#858)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
  • Loading branch information
almeidx and vladfrangu authored Apr 24, 2024
1 parent 02695c5 commit c4ee790
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deno/payloads/v10/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ export interface APIInvite {
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
*/
guild_scheduled_event?: APIGuildScheduledEvent;
/**
* The invite type
*/
type: InviteType;
}

/**
* https://discord.com/developers/docs/resources/invite#invite-object-invite-types
*/
export enum InviteType {
Guild,
GroupDM,
Friend,
}

/**
Expand Down
13 changes: 13 additions & 0 deletions deno/payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ export interface APIInvite {
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
*/
guild_scheduled_event?: APIGuildScheduledEvent;
/**
* The invite type
*/
type: InviteType;
}

/**
* https://discord.com/developers/docs/resources/invite#invite-object-invite-types
*/
export enum InviteType {
Guild,
GroupDM,
Friend,
}

/**
Expand Down
13 changes: 13 additions & 0 deletions payloads/v10/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ export interface APIInvite {
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
*/
guild_scheduled_event?: APIGuildScheduledEvent;
/**
* The invite type
*/
type: InviteType;
}

/**
* https://discord.com/developers/docs/resources/invite#invite-object-invite-types
*/
export enum InviteType {
Guild,
GroupDM,
Friend,
}

/**
Expand Down
13 changes: 13 additions & 0 deletions payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ export interface APIInvite {
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
*/
guild_scheduled_event?: APIGuildScheduledEvent;
/**
* The invite type
*/
type: InviteType;
}

/**
* https://discord.com/developers/docs/resources/invite#invite-object-invite-types
*/
export enum InviteType {
Guild,
GroupDM,
Friend,
}

/**
Expand Down

0 comments on commit c4ee790

Please sign in to comment.