Skip to content

Commit

Permalink
fix: add proper properties
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Feb 12, 2022
1 parent 12c36a4 commit 6f762fc
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 40 deletions.
24 changes: 14 additions & 10 deletions deno/payloads/v8/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ import type { APIInviteStageInstance } from './stageInstance.ts';
import type { APIUser } from './user.ts';
import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts';

export interface APIInviteGuild
extends Pick<
APIGuild,
'id' | 'name' | 'description' | 'features' | 'verification_level' | 'nsfw_level' | 'premium_subscription_count'
> {
splash: null;
banner: null;
icon: null;
vanity_url_code: null;
}
export type APIInviteGuild = Pick<
APIGuild,
| 'id'
| 'name'
| 'splash'
| 'banner'
| 'icon'
| 'vanity_url_code'
| 'description'
| 'features'
| 'verification_level'
| 'nsfw_level'
| 'premium_subscription_count'
>;

/**
* https://discord.com/developers/docs/resources/invite#invite-object
Expand Down
24 changes: 14 additions & 10 deletions deno/payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ import type { APIInviteStageInstance } from './stageInstance.ts';
import type { APIUser } from './user.ts';
import type { APIGuildScheduledEvent } from './guildScheduledEvent.ts';

export interface APIInviteGuild
extends Pick<
APIGuild,
'id' | 'name' | 'description' | 'features' | 'verification_level' | 'nsfw_level' | 'premium_subscription_count'
> {
splash: null;
banner: null;
icon: null;
vanity_url_code: null;
}
export type APIInviteGuild = Pick<
APIGuild,
| 'id'
| 'name'
| 'splash'
| 'banner'
| 'icon'
| 'vanity_url_code'
| 'description'
| 'features'
| 'verification_level'
| 'nsfw_level'
| 'premium_subscription_count'
>;

/**
* https://discord.com/developers/docs/resources/invite#invite-object
Expand Down
24 changes: 14 additions & 10 deletions payloads/v8/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ import type { APIInviteStageInstance } from './stageInstance';
import type { APIUser } from './user';
import type { APIGuildScheduledEvent } from './guildScheduledEvent';

export interface APIInviteGuild
extends Pick<
APIGuild,
'id' | 'name' | 'description' | 'features' | 'verification_level' | 'nsfw_level' | 'premium_subscription_count'
> {
splash: null;
banner: null;
icon: null;
vanity_url_code: null;
}
export type APIInviteGuild = Pick<
APIGuild,
| 'id'
| 'name'
| 'splash'
| 'banner'
| 'icon'
| 'vanity_url_code'
| 'description'
| 'features'
| 'verification_level'
| 'nsfw_level'
| 'premium_subscription_count'
>;

/**
* https://discord.com/developers/docs/resources/invite#invite-object
Expand Down
24 changes: 14 additions & 10 deletions payloads/v9/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ import type { APIInviteStageInstance } from './stageInstance';
import type { APIUser } from './user';
import type { APIGuildScheduledEvent } from './guildScheduledEvent';

export interface APIInviteGuild
extends Pick<
APIGuild,
'id' | 'name' | 'description' | 'features' | 'verification_level' | 'nsfw_level' | 'premium_subscription_count'
> {
splash: null;
banner: null;
icon: null;
vanity_url_code: null;
}
export type APIInviteGuild = Pick<
APIGuild,
| 'id'
| 'name'
| 'splash'
| 'banner'
| 'icon'
| 'vanity_url_code'
| 'description'
| 'features'
| 'verification_level'
| 'nsfw_level'
| 'premium_subscription_count'
>;

/**
* https://discord.com/developers/docs/resources/invite#invite-object
Expand Down

0 comments on commit 6f762fc

Please sign in to comment.