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.1.4 to 2.1.5

15

dist/actions.d.ts

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

message_reference?: types.MessageReference;
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

@@ -110,3 +110,3 @@ Crosspost: (channel_id: string, message_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

attachments?: types.Attachment[];
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

@@ -395,3 +395,3 @@ Pin: (channel_id: string, message_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

allowed_mentions?: types.AllowedMentions;
components?: types.Component[];
components?: types.ActionRow[];
}, params2?: {

@@ -413,3 +413,3 @@ wait?: boolean | undefined;

attachments?: types.Attachment[];
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

@@ -455,3 +455,3 @@ DeleteMessage: (webhook_id: string, webhook_token: string, message_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

allowed_mentions?: types.AllowedMentions;
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

@@ -467,3 +467,3 @@ DeleteOriginalInteractionResponse: (application_id: string, interaction_token: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

flags?: helpers.InteractionResponseFlags;
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message | null>;

@@ -474,3 +474,3 @@ EditFollowupMessage: (application_id: string, interaction_token: string, message_id: string, params: {

allowed_mentions?: types.AllowedMentions;
components?: types.Component[];
components?: types.ActionRow[];
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

@@ -531,2 +531,3 @@ DeleteFollowupMessage: (application_id: string, interaction_token: string, message_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

auto_archive_duration: types.ThreadArchiveDuration;
type?: helpers.ChannelTypes.GUILD_PRIVATE_THREAD | helpers.ChannelTypes.GUILD_PUBLIC_THREAD | helpers.ChannelTypes.GUILD_NEWS_THREAD;
}, requestOptions?: RequestOptions | undefined) => Promise<types.Channel>;

@@ -533,0 +534,0 @@ Join: (channel_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

@@ -213,3 +213,6 @@ 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";

MONETIZATION_ENABLED = "MONETIZATION_ENABLED",
MORE_STICKERS = "MORE_STICKERS"
MORE_STICKERS = "MORE_STICKERS",
THREE_DAY_THREAD_ARCHIVE = "THREE_DAY_THREAD_ARCHIVE",
SEVEN_DAY_THREAD_ARCHIVE = "SEVEN_DAY_THREAD_ARCHIVE",
PRIVATE_THREADS = "PRIVATE_THREADS"
}

@@ -367,3 +370,4 @@ export declare enum IntegrationExpireBehaviors {

ACTION_ROW = 1,
BUTTON = 2
BUTTON = 2,
SELECT_MENU = 3
}

@@ -370,0 +374,0 @@ export declare enum ButtonStyles {

@@ -233,2 +233,5 @@ "use strict";

GuildFeatures["MORE_STICKERS"] = "MORE_STICKERS";
GuildFeatures["THREE_DAY_THREAD_ARCHIVE"] = "THREE_DAY_THREAD_ARCHIVE";
GuildFeatures["SEVEN_DAY_THREAD_ARCHIVE"] = "SEVEN_DAY_THREAD_ARCHIVE";
GuildFeatures["PRIVATE_THREADS"] = "PRIVATE_THREADS";
})(GuildFeatures = exports.GuildFeatures || (exports.GuildFeatures = {}));

@@ -409,2 +412,3 @@ var IntegrationExpireBehaviors;

ComponentTypes[ComponentTypes["BUTTON"] = 2] = "BUTTON";
ComponentTypes[ComponentTypes["SELECT_MENU"] = 3] = "SELECT_MENU";
})(ComponentTypes = exports.ComponentTypes || (exports.ComponentTypes = {}));

@@ -411,0 +415,0 @@ var ButtonStyles;

@@ -159,7 +159,8 @@ import type * as helpers from './helpers';

flags?: helpers.MessageFlags;
stickers?: MessageSticker[];
referenced_message?: Message | null;
interaction?: MessageInteraction;
thread?: Channel;
components?: Component[];
components?: ActionRow[];
sticker_items?: MessageStickerItem[];
stickers?: MessageSticker[];
};

@@ -176,2 +177,7 @@ export declare type MessageActivity = {

};
export declare type MessageStickerItem = {
id: string;
name: string;
format_type: helpers.MessageStickerFormatTypes;
};
export declare type MessageSticker = {

@@ -626,3 +632,3 @@ id: string;

flags?: helpers.InteractionResponseFlags;
components?: Component[];
components?: ActionRow[];
};

@@ -721,5 +727,9 @@ export declare type MessageInteraction = {

};
export declare type Component = {
type: helpers.ComponentTypes;
style?: helpers.ButtonStyles;
export declare type ActionRow = {
type: helpers.ComponentTypes.ACTION_ROW;
components: (Button | SelectMenu)[];
};
export declare type Button = {
type: helpers.ComponentTypes.BUTTON;
style: helpers.ButtonStyles;
label?: string;

@@ -730,4 +740,18 @@ emoji?: Emoji;

disabled?: boolean;
components?: Component[];
};
export declare type SelectMenu = {
type: helpers.ComponentTypes.SELECT_MENU;
custom_id: string;
options: SelectOption[];
placeholder?: string;
min_values: number;
max_values: number;
};
export declare type SelectOption = {
label: string;
value: string;
description?: string;
emoji?: Emoji;
default?: boolean;
};
export declare type StageInstance = {

@@ -734,0 +758,0 @@ id: string;

{
"name": "discord-slim",
"version": "2.1.4",
"version": "2.1.5",
"description": "Lightweight Discord API library for Node.js.",

@@ -29,3 +29,3 @@ "author": "Hanabishi",

"dependencies": {
"ws": "^7.4"
"ws": "7.5.*"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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