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.6.1 to 2.6.2

32

dist/actions.d.ts

@@ -86,10 +86,15 @@ /// <reference types="node" />

Create: (channel_id: string, params: {
content?: string;
nonce?: number | string;
tts?: string;
embeds?: types.Embed[];
allowed_mentions?: types.AllowedMentions;
message_reference?: types.MessageReference;
components?: types.ActionRow[];
flags?: helpers.MessageFlags;
content?: string | undefined;
nonce?: string | number | undefined;
tts?: string | undefined;
embeds?: types.Embed[] | undefined;
allowed_mentions?: types.AllowedMentions | undefined;
message_reference?: {
message_id: string;
channel_id?: string | undefined;
guild_id?: string | undefined;
fail_if_not_exists?: boolean | undefined;
} | undefined;
components?: types.ActionRow[] | undefined;
flags?: helpers.MessageFlags | undefined;
}, requestOptions?: RequestOptions | undefined) => Promise<types.Message>;

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

}, requestOptions?: RequestOptions | undefined) => Promise<types.Member[]>;
GetBans: (guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.Ban[]>;
GetBans: (guild_id: string, params?: {
limit?: number | undefined;
before?: string | undefined;
after?: string | undefined;
} | undefined, requestOptions?: RequestOptions | undefined) => Promise<types.Ban[]>;
GetRoles: (guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.Role[]>;

@@ -356,3 +365,6 @@ ModifyRolePositions: (guild_id: string, params: ({

limit?: number | undefined;
} | undefined, requestOptions?: RequestOptions | undefined) => Promise<types.Guild[]>;
} | undefined, requestOptions?: RequestOptions | undefined) => Promise<(types.Guild & {
owner: boolean;
permissions: string;
})[]>;
GetCurrentMember: (guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<types.Member>;

@@ -359,0 +371,0 @@ LeaveGuild: (guild_id: string, requestOptions?: RequestOptions | undefined) => Promise<null>;

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

SearchMembers: (guild_id, params, requestOptions) => Request("GET", Path("guilds", guild_id, "members", "search") + Query(params), requestOptions),
GetBans: (guild_id, requestOptions) => Request("GET", Path("guilds", guild_id, "bans"), requestOptions),
GetBans: (guild_id, params, requestOptions) => Request("GET", Path("guilds", guild_id, "bans") + Query(params), requestOptions),
GetRoles: (guild_id, requestOptions) => Request("GET", Path("guilds", guild_id, "roles"), requestOptions),

@@ -61,0 +61,0 @@ ModifyRolePositions: (guild_id, params, requestOptions) => Request("PATCH", Path("guilds", guild_id, "roles"), requestOptions, params),

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

};
[Events.GUILD_CREATE]: types.Guild;
[Events.GUILD_CREATE]: types.Guild & {
joined_at: string;
large: boolean;
unavailable: boolean;
member_count: number;
voice_states: types.VoiceState[];
members: types.Member[];
channels: types.Channel[];
threads: types.Channel[];
presences: types.Presence[];
stage_instances: types.StageInstance[];
guild_scheduled_events: types.ScheduledEvent[];
};
[Events.GUILD_UPDATE]: types.Guild;

@@ -101,0 +113,0 @@ [Events.GUILD_DELETE]: types.UnavailableGuild;

@@ -129,3 +129,4 @@ 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";

GUILD_PRIVATE_THREAD = 12,
GUILD_STAGE_VOICE = 13
GUILD_STAGE_VOICE = 13,
GUILD_DIRECTORY = 14
}

@@ -132,0 +133,0 @@ export declare enum MessageTypes {

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

ChannelTypes[ChannelTypes["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
ChannelTypes[ChannelTypes["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
})(ChannelTypes || (ChannelTypes = {}));

@@ -135,0 +136,0 @@ export var MessageTypes;

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

author: User;
member?: Member;
member?: Omit<Member, 'user'>;
content: string;

@@ -186,5 +186,4 @@ timestamp: string;

message_id?: string;
channel_id?: string;
channel_id: string;
guild_id?: string;
fail_if_not_exists?: boolean;
};

@@ -314,5 +313,3 @@ export declare type FollowedChannel = {

discovery_splash: string | null;
owner?: boolean;
owner_id: string;
permissions?: string;
afk_channel_id: string | null;

@@ -333,11 +330,2 @@ afk_timeout: number;

rules_channel_id: string | null;
joined_at?: string;
large?: boolean;
unavailable?: boolean;
member_count?: number;
voice_states?: VoiceState[];
members?: Member[];
channels?: Channel[];
threads?: Channel[];
presences?: Presence[];
max_presences?: number | null;

@@ -357,5 +345,3 @@ max_members?: number;

nsfw_level: helpers.GuildNSFWLevels;
stage_instances?: StageInstance[];
stickers?: Sticker[];
guild_scheduled_events?: ScheduledEvent[];
premium_progress_bar_enabled: boolean;

@@ -393,3 +379,3 @@ };

export declare type Member = {
user?: User;
user: User;
nick?: string | null;

@@ -396,0 +382,0 @@ avatar?: string | null;

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

@@ -28,2 +28,2 @@ "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