discord-typings
Advanced tools
Comparing version 10.0.2 to 10.0.3
@@ -12,4 +12,4 @@ import { Snowflake, Locale } from "../Reference"; | ||
description: string; | ||
name_localizations?: { [locale in Locale]?: string; }; | ||
description_localizations?: { [locale in Locale]?: string; }; | ||
name_localizations?: { [locale in Locale]?: string; } | null; | ||
description_localizations?: { [locale in Locale]?: string; } | null; | ||
/** length of 25 max */ | ||
@@ -52,4 +52,4 @@ options?: Array<ApplicationCommandOption>; | ||
name: string; | ||
name_localizations?: { [locale in Locale]?: string; }; | ||
description_localizations?: { [locale in Locale]?: string; }; | ||
name_localizations?: { [locale in Locale]?: string; } | null; | ||
description_localizations?: { [locale in Locale]?: string; } | null; | ||
/** 1-100 chars */ | ||
@@ -56,0 +56,0 @@ description: string; |
{ | ||
"name": "discord-typings", | ||
"version": "10.0.2", | ||
"version": "10.0.3", | ||
"description": "Typings for data returned by Discord (unofficial)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,13 @@ import { Snowflake } from "../Reference"; | ||
flags?: number; | ||
tags?: Array<string>; | ||
install_params?: InstallParams; | ||
custom_install_url?: string; | ||
} | ||
/** | ||
* https://discord.com/developers/docs/resources/application#install-params-object | ||
*/ | ||
export type InstallParams = { | ||
scopes?: Array<string>; | ||
permissions?: string; | ||
} |
@@ -82,9 +82,2 @@ import { Snowflake } from "../Reference"; | ||
*/ | ||
export interface StoreChannel extends GuildChannel { | ||
type: 6; | ||
} | ||
/** | ||
* https://discord.com/developers/docs/resources/channel#channel-object-channel-structure | ||
*/ | ||
export interface ThreadBasedChannel extends TextBasedChannel, GuildChannel { | ||
@@ -131,2 +124,9 @@ message_count: number; | ||
*/ | ||
export interface DirectoryChannel extends GuildChannel { | ||
type: 14; | ||
} | ||
/** | ||
* https://discord.com/developers/docs/resources/channel#channel-object-channel-structure | ||
*/ | ||
export interface UnknownChannel extends ChannelBase { | ||
@@ -139,3 +139,3 @@ type: ChannelType; | ||
*/ | ||
export type Channel = TextChannel | DMChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | NewsThread | PublicThread | PrivateThread | StageChannel | UnknownChannel; | ||
export type Channel = TextChannel | DMChannel | VoiceChannel | CategoryChannel | NewsChannel | NewsThread | PublicThread | PrivateThread | StageChannel | DirectoryChannel | UnknownChannel; | ||
@@ -145,3 +145,3 @@ /** | ||
*/ | ||
export type ChannelType = 0 | 1 | 2 | 4 | 5 | 6 | 10 | 11 | 12 | 13; | ||
export type ChannelType = 0 | 1 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14; | ||
@@ -148,0 +148,0 @@ /** |
@@ -36,3 +36,3 @@ import { Snowflake } from "../Reference"; | ||
members?: Array<Member>; | ||
channels?: Array<import("./Channel").TextChannel | import("./Channel").VoiceChannel | import("./Channel").CategoryChannel | import("./Channel").NewsChannel | import("./Channel").StoreChannel | import("./Channel").StageChannel>; | ||
channels?: Array<import("./Channel").TextChannel | import("./Channel").VoiceChannel | import("./Channel").CategoryChannel | import("./Channel").NewsChannel | import("./Channel").StageChannel | import("./Channel").DirectoryChannel>; | ||
threads?: Array<import("./Channel").NewsThread | import("./Channel").PublicThread | import("./Channel").PrivateThread>; | ||
@@ -39,0 +39,0 @@ presences?: Array<import("../Topics/Gateway").PresenceUpdate>; |
@@ -7,3 +7,3 @@ /** | ||
guild?: import("./Guild").Guild; | ||
channel: import("./Channel").TextChannel | import("./Channel").VoiceChannel | import("./Channel").CategoryChannel | import("./Channel").NewsChannel | import("./Channel").StoreChannel | import("./Channel").StageChannel; | ||
channel: import("./Channel").TextChannel | import("./Channel").VoiceChannel | import("./Channel").CategoryChannel | import("./Channel").NewsChannel | import("./Channel").StageChannel | import("./Channel").DirectoryChannel; | ||
inviter?: import("./User").User; | ||
@@ -10,0 +10,0 @@ target_type?: InviteTarget; |
@@ -11,3 +11,2 @@ /** | ||
| "applications.entitlements" | ||
| "applications.store.update" | ||
| "bot" | ||
@@ -14,0 +13,0 @@ | "connections" |
@@ -5,2 +5,3 @@ import { Snowflake } from "../Reference"; | ||
id: Snowflake; | ||
/** 1-100 chars */ | ||
name: string; | ||
@@ -7,0 +8,0 @@ color: number; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65451
1885