Socket
Socket
Sign inDemoInstall

discord-slim

Package Overview
Dependencies
4
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.5.3 to 2.6.0

18

dist/actions.d.ts

@@ -430,3 +430,8 @@ /// <reference types="node" />

export declare const Application: {
GetGlobalCommands: (application_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand[]>;
GetGlobalCommands: (application_id: string, params?: {
with_localizations?: boolean | undefined;
} | undefined, requestOptions?: RequestOptions | undefined) => Promise<(types.ApplicationCommand & {
name_localized?: string;
description_localized?: string;
})[]>;
CreateGlobalCommand: (application_id: string, params: {

@@ -447,3 +452,8 @@ name: string;

DeleteGlobalCommand: (application_id: string, command_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;
GetGuildCommands: (application_id: string, guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.ApplicationCommand[]>;
GetGuildCommands: (application_id: string, guild_id: string, params?: {
with_localizations?: boolean | undefined;
} | undefined, requestOptions?: RequestOptions | undefined) => Promise<(types.ApplicationCommand & {
name_localized?: string;
description_localized?: string;
})[]>;
BulkOverwriteGlobalCommands: (application_id: string, params: {

@@ -604,3 +614,3 @@ name: string;

name: string;
privacy_level: helpers.ScheduledEventPrivacyLevels;
privacy_level: helpers.PrivacyLevels;
scheduled_start_time: string;

@@ -619,3 +629,3 @@ scheduled_end_time?: string;

name?: string;
privacy_level?: helpers.ScheduledEventPrivacyLevels;
privacy_level?: helpers.PrivacyLevels;
scheduled_start_time?: string;

@@ -622,0 +632,0 @@ scheduled_end_time?: string;

@@ -152,3 +152,3 @@ import { URLSearchParams } from 'url';

export const Application = {
GetGlobalCommands: (application_id, requestOptions) => Request("GET", Path("applications", application_id, "commands"), requestOptions),
GetGlobalCommands: (application_id, params, requestOptions) => Request("GET", Path("applications", application_id, "commands") + Query(params), requestOptions),
CreateGlobalCommand: (application_id, params, requestOptions) => Request("POST", Path("applications", application_id, "commands"), requestOptions, params),

@@ -158,3 +158,3 @@ GetGlobalCommand: (application_id, command_id, requestOptions) => Request("GET", Path("applications", application_id, "commands", command_id), requestOptions),

DeleteGlobalCommand: (application_id, command_id, requestOptions) => Request("DELETE", Path("applications", application_id, "commands", command_id), requestOptions),
GetGuildCommands: (application_id, guild_id, requestOptions) => Request("GET", Path("applications", application_id, "guilds", guild_id, "commands"), requestOptions),
GetGuildCommands: (application_id, guild_id, params, requestOptions) => Request("GET", Path("applications", application_id, "guilds", guild_id, "commands") + Query(params), requestOptions),
BulkOverwriteGlobalCommands: (application_id, params, requestOptions) => Request("PUT", Path("applications", application_id, "commands"), requestOptions, params),

@@ -161,0 +161,0 @@ CreateGuildCommand: (application_id, guild_id, params, requestOptions) => Request("POST", Path("applications", application_id, "guilds", guild_id, "commands"), requestOptions, params),

@@ -458,5 +458,2 @@ export declare const HOST = "https://discord.com", API: "https://discord.com/api", API_VERSION = 9, API_PATH: "https://discord.com/api/v9", CDN = "https://cdn.discordapp.com";

}
export declare enum ScheduledEventPrivacyLevels {
GUILD_ONLY = 2
}
export declare enum ScheduledEventEntityTypes {

@@ -477,1 +474,33 @@ STAGE_INSTANCE = 1,

}
export declare enum Locales {
DANISH = "da",
GERMAN = "de",
ENGLISH_UK = "en-GB",
ENGLISH_US = "en-US",
SPANISH = "es-ES",
FRENCH = "fr",
CROATIAN = "hr",
ITALIAN = "it",
LITHUANIAN = "lt",
HUNGARIAN = "hu",
DUTCH = "nl",
NORWEGIAN = "no",
POLISH = "pl",
PORTUGUESE_BRAZILIAN = "pt-BR",
ROMANIAN_ROMANIA = "ro",
FINNISH = "fi",
SWEDISH = "sv-SE",
VIETNAMESE = "vi",
TURKISH = "tr",
CZECH = "cs",
GREEK = "el",
BULGARIAN = "bg",
RUSSIAN = "ru",
UKRAINIAN = "uk",
HINDI = "hi",
THAI = "th",
CHINESE_CHINA = "zh-CN",
JAPANESE = "ja",
CHINESE_TAIWAN = "zh-TW",
KOREAN = "ko"
}

@@ -503,6 +503,2 @@ export const HOST = 'https://discord.com', API = `${HOST}/api`, API_VERSION = 9, API_PATH = `${API}/v${API_VERSION}`, CDN = 'https://cdn.discordapp.com';

})(StickerTypes || (StickerTypes = {}));
export var ScheduledEventPrivacyLevels;
(function (ScheduledEventPrivacyLevels) {
ScheduledEventPrivacyLevels[ScheduledEventPrivacyLevels["GUILD_ONLY"] = 2] = "GUILD_ONLY";
})(ScheduledEventPrivacyLevels || (ScheduledEventPrivacyLevels = {}));
export var ScheduledEventEntityTypes;

@@ -526,1 +522,35 @@ (function (ScheduledEventEntityTypes) {

})(TextInputStyles || (TextInputStyles = {}));
export var Locales;
(function (Locales) {
Locales["DANISH"] = "da";
Locales["GERMAN"] = "de";
Locales["ENGLISH_UK"] = "en-GB";
Locales["ENGLISH_US"] = "en-US";
Locales["SPANISH"] = "es-ES";
Locales["FRENCH"] = "fr";
Locales["CROATIAN"] = "hr";
Locales["ITALIAN"] = "it";
Locales["LITHUANIAN"] = "lt";
Locales["HUNGARIAN"] = "hu";
Locales["DUTCH"] = "nl";
Locales["NORWEGIAN"] = "no";
Locales["POLISH"] = "pl";
Locales["PORTUGUESE_BRAZILIAN"] = "pt-BR";
Locales["ROMANIAN_ROMANIA"] = "ro";
Locales["FINNISH"] = "fi";
Locales["SWEDISH"] = "sv-SE";
Locales["VIETNAMESE"] = "vi";
Locales["TURKISH"] = "tr";
Locales["CZECH"] = "cs";
Locales["GREEK"] = "el";
Locales["BULGARIAN"] = "bg";
Locales["RUSSIAN"] = "ru";
Locales["UKRAINIAN"] = "uk";
Locales["HINDI"] = "hi";
Locales["THAI"] = "th";
Locales["CHINESE_CHINA"] = "zh-CN";
Locales["JAPANESE"] = "ja";
Locales["CHINESE_TAIWAN"] = "zh-TW";
Locales["KOREAN"] = "ko";
})(Locales || (Locales = {}));
;

@@ -12,3 +12,3 @@ import type * as helpers from './helpers';

target_id: string | null;
changes?: AuditLogChange[];
changes?: AuditLogChangeDict[keyof AuditLogChangeDict][];
user_id: string | null;

@@ -30,28 +30,75 @@ id: string;

};
export declare type AuditLogChange = {
new_value?: AuditLogChangeKey;
old_value?: AuditLogChangeKey;
key: string;
declare type AuditLogChangeDict = {
[K in keyof AuditLogChangeKeys]: AuditLogChange<K>;
};
export declare type AuditLogChangeKey = (AuditLogChangeKeyGuild | AuditLogChangeKeyChannel | AuditLogChangeKeyRole | AuditLogChangeKeyInvite | AuditLogChangeKeyUser | AuditLogChangeKeyMember | AuditLogChangeKeyIntegration | AuditLogChangeKeyVoiceChannel | AuditLogChangeKeySticker | AuditLogChangeKeyStageInstance | AuditLogChangeKeyScheduledEvent);
export declare type AuditLogChangeKeyGuild = {
export declare type AuditLogChange<K extends keyof AuditLogChangeKeys> = {
new_value?: AuditLogChangeKeys[K];
old_value?: AuditLogChangeKeys[K];
key: K;
};
export declare type AuditLogChangeKeys = {
afk_channel_id: string;
afk_timeout: number;
allow: string;
application_id: string;
archived: boolean;
asset: string;
auto_archive_duration: number;
available: boolean;
avatar_hash: boolean;
banner_hash: string;
bitrate: number;
channel_id: string;
code: string;
color: number;
communication_disabled_until: string;
deaf: boolean;
default_auto_archive_duration: helpers.ThreadArchiveDurations;
default_message_notifications: helpers.DefaultMessageNotificationLevels;
deny: string;
description: string;
discovery_splash_hash: string;
enable_emoticons: boolean;
entity_type: helpers.ScheduledEventEntityTypes;
expire_behavior: helpers.IntegrationExpireBehaviors;
expire_grace_period: number;
explicit_content_filter: helpers.ExplicitContentFilterLevels;
format_type: helpers.MessageStickerFormatTypes;
guild_id: string;
hoist: boolean;
icon_hash: string;
id: string;
mfa_level: number;
invitable: boolean;
inviter_id: string;
location: string;
locked: boolean;
max_age: number;
max_uses: number;
mentionable: boolean;
mfa_level: helpers.MFA_Levels;
mute: boolean;
name: string;
nick: string;
nsfw: boolean;
owner_id: string;
preferred_locale: string;
permission_overwrites: PermissionsOverwrite[];
permissions: string;
position: number;
preferred_locale: helpers.Locales;
privacy_level: helpers.PrivacyLevels;
prune_delete_days: number;
public_updates_channel_id: string;
rate_limit_per_user: number;
region: string;
rules_channel_id: string;
splash_hash: string;
status: helpers.ScheduledEventStatuses;
system_channel_id: string;
type: string;
tags: string;
temporary: boolean;
topic: string;
type: string | number;
unicode_emoji: string;
user_limit: number;
uses: number;
vanity_url_code: string;

@@ -71,98 +118,2 @@ verification_level: number;

};
export declare type AuditLogChangeKeyChannel = {
application_id: string;
bitrate: number;
id: string;
name: string;
nsfw: boolean;
permission_overwrites: PermissionsOverwrite[];
position: number;
rate_limit_per_user: number;
topic: string;
type: helpers.ChannelTypes;
};
export declare type AuditLogChangeKeyRole = {
allow: string;
color: number;
deny: string;
hoist: boolean;
id: string;
mentionable: boolean;
name: string;
permissions: string;
type: string;
};
export declare type AuditLogChangeKeyInvite = {
channel_id: string;
code: string;
id: string;
inviter_id: string;
max_age: number;
max_uses: number;
name: string;
temporary: boolean;
type: string;
uses: number;
};
export declare type AuditLogChangeKeyUser = {
avatar_hash: boolean;
id: string;
name: string;
type: string;
};
export declare type AuditLogChangeKeyMember = {
communication_disabled_until: string;
deaf: boolean;
id: string;
mute: boolean;
name: string;
nick: string;
type: string;
};
export declare type AuditLogChangeKeyIntegration = {
enable_emoticons: boolean;
expire_behavior: number;
expire_grace_period: number;
id: string;
name: string;
type: string;
};
export declare type AuditLogChangeKeyVoiceChannel = {
id: string;
name: string;
type: string;
user_limit: number;
};
export declare type AuditLogChangeKeySticker = {
available: boolean;
description: string;
format_type: helpers.MessageStickerFormatTypes;
guild_id: string;
id: string;
name: string;
tags: string;
type: string;
};
export declare type AuditLogChangeKeyStageInstance = {
id: string;
name: string;
privacy_level: helpers.PrivacyLevels;
topic: string;
type: helpers.ChannelTypes;
};
export declare type AuditLogChangeKeyScheduledEvent = {
channel_id: string;
description: string;
entity_type: helpers.ScheduledEventEntityTypes;
id: string;
location: string;
privacy_level: helpers.ScheduledEventPrivacyLevels;
status: helpers.ScheduledEventStatuses;
type: string;
};
export declare type AuditLogChangeKeyThread = {
id: string;
invitable: boolean;
type: string;
};
export declare type Channel = {

@@ -397,3 +348,3 @@ id: string;

premium_subscription_count?: number;
preferred_locale: string;
preferred_locale: helpers.Locales;
public_updates_channel_id: string | null;

@@ -412,3 +363,3 @@ max_video_channel_users?: number;

id: string;
unavailable: true;
unavailable: boolean;
};

@@ -539,3 +490,3 @@ export declare type GuildPreview = {

accent_color?: number | null;
locale?: string;
locale?: helpers.Locales;
verified?: boolean;

@@ -618,3 +569,5 @@ email?: string | null;

name: string;
name_localizations?: LocaleDictionary;
description: string;
description_localizations?: LocaleDictionary;
options?: ApplicationCommandOption[];

@@ -627,3 +580,5 @@ default_permission?: boolean;

name: string;
name_localizations?: LocaleDictionary;
description: string;
description_localizations?: LocaleDictionary;
required?: boolean;

@@ -639,2 +594,3 @@ choices?: ApplicationCommandOptionChoice[];

name: string;
name_localizations?: LocaleDictionary;
value: string | number;

@@ -653,2 +609,5 @@ };

};
export declare type LocaleDictionary = {
[key in helpers.Locales]?: string;
};
export declare type Interaction = {

@@ -666,4 +625,4 @@ id: string;

message?: Message;
locale?: string;
guild_locale?: string;
locale?: helpers.Locales;
guild_locale?: helpers.Locales;
};

@@ -810,3 +769,2 @@ export declare type InteractionData = {

owner?: User;
summary: string;
verify_key: string;

@@ -917,3 +875,3 @@ team: Team | null;

scheduled_end_time: string | null;
privacy_level: helpers.ScheduledEventPrivacyLevels;
privacy_level: helpers.PrivacyLevels;
status: helpers.ScheduledEventStatuses;

@@ -935,1 +893,2 @@ entity_type: helpers.ScheduledEventEntityTypes;

};
export {};
{
"name": "discord-slim",
"version": "2.5.3",
"version": "2.6.0",
"description": "Lightweight Discord API library for Node.js.",

@@ -5,0 +5,0 @@ "author": "Hanabishi",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc