Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devland.js

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devland.js - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

2

package.json

@@ -9,3 +9,3 @@ {

"name": "devland.js",
"version": "1.0.24",
"version": "1.0.25",
"description": "A powerful API wrapper for the Discord API designed for modern bots",

@@ -12,0 +12,0 @@ "main": "index.js",

import EventEmitter from "events"
import ws from 'ws'
import Store from '../util/Store/Store'
declare module 'devland.js' {
declare type clientOptions = {
declare module devland.js {
type clientOptions = {
connect: boolean;

@@ -26,3 +26,3 @@ ws: wsOptions;

}
declare type wsOptions = {
type wsOptions = {
large_threshold: number;

@@ -32,3 +32,3 @@ compress: boolean;

}
declare type propertiesOptions = {
type propertiesOptions = {
$os: string | NodeJS.Platform;

@@ -38,7 +38,7 @@ $browser: string;

}
declare type presenceOptions = {
type presenceOptions = {
status: string;
afk: boolean;
}
declare type wsClientData = {
type wsClientData = {
socket: ws;

@@ -48,3 +48,3 @@ connected: boolean;

}
declare type gatewayClientData = {
type gatewayClientData = {
url: string;

@@ -54,3 +54,3 @@ obtainedAt: number;

}
declare type heartbeatClientData = {
type heartbeatClientData = {
interval: number;

@@ -61,2 +61,3 @@ last: number;

}
export type Awaitable<T> = T | PromiseLike<T>;
export class Client extends EventEmitter {

@@ -111,3 +112,3 @@ constructor(options: clientOptions);

}
declare type invalid_Message = {
type invalid_Message = {
error: string;

@@ -119,3 +120,3 @@ guild: Guild;

}
declare type invalid_Guild = {
type invalid_Guild = {
error: string;

@@ -125,3 +126,3 @@ id: string;

}
declare type invalid_Channel = {
type invalid_Channel = {
error: string;

@@ -131,3 +132,3 @@ id: string;

}
declare type invalid_Thread = {
type invalid_Thread = {
error: string,

@@ -137,3 +138,3 @@ id: string,

}
declare type invalid_User = {
type invalid_User = {
error: string,

@@ -143,3 +144,3 @@ id: string,

}
declare type invalid_Member = {
type invalid_Member = {
error: string,

@@ -149,3 +150,3 @@ id: string,

}
declare interface ClientEvents {
interface ClientEvents {
debug: [data: string];

@@ -189,3 +190,3 @@ ready: [client: Client];

}
declare class RESTHandler {
class RESTHandler {
private constructor(client: Client);

@@ -205,3 +206,3 @@ readonly handling: boolean;

}
declare namespace Client {
namespace Client {
export class ClientUser {

@@ -223,3 +224,3 @@ private constructor(client: Client, data: object);

}
declare type guildFeatures = "ANIMATED_BANNER" | "ANIMATED_ICON" | "APPLICATION_COMMAND_PERMISSIONS_V2" | "AUTO_MODERATOR" | "BANNER" | "COMMUNITY" | "CREATOR_MODETIZABLE_PROVISIONAL" | "CREATOR_STORE_PAGE" | "DEVELOPER_SUPPORT_SERVER" | "DISCOVERABLE" | "FEATURABLE" | "INVITES_DISABLED" | "INVITE_SPLASH" | "MEMBER_VERIFICATION_GATE_ENABLED" | "MORE_STICKERS" | "NEWS" | "PARTNERED" | "PREVIEW_ENABLED" | "ROLE_ICONS" | "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE" | "ROLE_SUBSCRIPTIONS_ENABLED" | "TICKETED_EVENTS_ENABLED" | "VANITY_URL" | "VERIFIED" | "VIP_REGIONS" | "WELCOME_SCREEN_ENABLED"
type guildFeatures = "ANIMATED_BANNER" | "ANIMATED_ICON" | "APPLICATION_COMMAND_PERMISSIONS_V2" | "AUTO_MODERATOR" | "BANNER" | "COMMUNITY" | "CREATOR_MODETIZABLE_PROVISIONAL" | "CREATOR_STORE_PAGE" | "DEVELOPER_SUPPORT_SERVER" | "DISCOVERABLE" | "FEATURABLE" | "INVITES_DISABLED" | "INVITE_SPLASH" | "MEMBER_VERIFICATION_GATE_ENABLED" | "MORE_STICKERS" | "NEWS" | "PARTNERED" | "PREVIEW_ENABLED" | "ROLE_ICONS" | "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE" | "ROLE_SUBSCRIPTIONS_ENABLED" | "TICKETED_EVENTS_ENABLED" | "VANITY_URL" | "VERIFIED" | "VIP_REGIONS" | "WELCOME_SCREEN_ENABLED"
export enum guildVerificationLevel {

@@ -251,3 +252,3 @@ NONE = 0,

}
declare type guildPreferredLocale = "id" | "da" | "de" | "en-GB" | "en-US" | "es-ES" | "fr" | "hr" | "it" | "lt" | "hu" | "nl" | "no" | "pl" | "pt-BR" | "ro" | "fi" | "sv-SE" | "vi" | "tr" | "cs" | "el" | "bg" | "ru" | "uk" | "hi" | "th" | "zh-CN" | "ja" | "zh-TW" | "ko"
type guildPreferredLocale = "id" | "da" | "de" | "en-GB" | "en-US" | "es-ES" | "fr" | "hr" | "it" | "lt" | "hu" | "nl" | "no" | "pl" | "pt-BR" | "ro" | "fi" | "sv-SE" | "vi" | "tr" | "cs" | "el" | "bg" | "ru" | "uk" | "hi" | "th" | "zh-CN" | "ja" | "zh-TW" | "ko"
export enum guildNsfwLevel {

@@ -259,7 +260,7 @@ DEFAULT = 0,

}
declare type guildVanityData = {
type guildVanityData = {
code: string | null,
uses: number | null
}
declare type utilsChannels = {
type utilsChannels = {
systemChannel: TextChannel | null;

@@ -274,3 +275,3 @@ afkTimeout: number;

}
declare type createEmojiOptions = {
type createEmojiOptions = {
name: string,

@@ -281,3 +282,3 @@ roles?: string[],

}
declare type editGuildOptions = {
type editGuildOptions = {
name?: string,

@@ -303,3 +304,3 @@ verification_level?: guildVerificationLevel,

}
declare type guildChannels = {
type guildChannels = {
text: Store<String, TextChannel>,

@@ -349,3 +350,3 @@ voice: Store<String, VoiceChannel>,

fetchUtilsChannels(): Promise<utilsChannels>;
setCommands(...commands: GuildCommand): Promise<boolean>;
setCommands(...commands: GuildCommand[]): Promise<boolean>;
getCommands(): Promise<GuildCommand[]>;

@@ -367,3 +368,3 @@ deleteCommand(command: GuildCommand | object): Promise<boolean>;

}
declare type fetchMembersOptions = {
type fetchMembersOptions = {
limit: number,

@@ -393,3 +394,3 @@ after: number

}
declare type editMemberOptions = {
type editMemberOptions = {
nick?: string | null,

@@ -418,3 +419,3 @@ roles?: Role[] | string[],

}
declare type MessageOptions = {
type MessageOptions = {
content: string,

@@ -424,3 +425,3 @@ embeds: Embed[];

}
declare type fetchMessagesOptions = {
type fetchMessagesOptions = {
limit?: number,

@@ -439,3 +440,3 @@ around?: string,

}
declare type PermissionOverwritesResolvable = {
type PermissionOverwritesResolvable = {
id: string | User | Member | Role,

@@ -446,3 +447,3 @@ type?: PermissionIdType,

}
declare type channelEditOptions = {
type channelEditOptions = {
name?: string,

@@ -580,3 +581,3 @@ position?: number,

}
declare type stageStartOptions = {
type stageStartOptions = {
topic: string,

@@ -587,3 +588,3 @@ privacy_level?: stagePrivacyLevel,

}
declare type stageEditOptions = {
type stageEditOptions = {
topic?: string,

@@ -597,3 +598,3 @@ privacy_level?: stagePrivacyLevel,

}
declare type StageInstance = {
type StageInstance = {
id: string,

@@ -694,3 +695,3 @@ guild_id: string,

}
declare type ThreadMetadata = {
type ThreadMetadata = {
archived: boolean,

@@ -731,4 +732,4 @@ active_timestamp: string,

}
declare type webhookId = string;
declare type getUsersFromReactionOptions = {
type webhookId = string;
type getUsersFromReactionOptions = {
limit: number,

@@ -790,6 +791,6 @@ after?: User | string,

readonly height: number | undefined;
readonly width: number | indefined;
readonly width: number | undefined;
readonly ephemeral: boolean | undefined;
}
declare type fieldOptions = {
type fieldOptions = {
name: string,

@@ -799,17 +800,17 @@ value: string,

}
declare type authorOptions = {
type authorOptions = {
name: string,
icon_url?: string
}
declare type footerOptions = {
type footerOptions = {
text: string,
icon_url?: string
}
declare type imageOptions = {
type imageOptions = {
url: string
}
declare type thumbnailOptions = {
type thumbnailOptions = {
url: string
}
declare type embedOptions = {
type embedOptions = {
fields?: fieldOptions[],

@@ -876,3 +877,3 @@ title?: string,

}
declare type APIEmoji = {
type APIEmoji = {
animated: boolean,

@@ -882,11 +883,11 @@ id: string | null,

}
declare type resolvableComponents = Button | StringSelect | RoleSelect | MentionableSelect | ChannelSelect | UserData | buttonData | stringData | roleData | userData | mentionableData | channelData;
type resolvableComponents = Button | StringSelect | RoleSelect | MentionableSelect | ChannelSelect | userData | buttonData | stringData | roleData | userData | mentionableData | channelData;
export class ActionRow {
constructor(...components?: resolvableComponents);
constructor(...components: resolvableComponents[]);
readonly components: resolvableComponents[];
private readonly type: number;
private pack();
addComponents(...components: resolvableComponents);
addComponents(...components: resolvableComponents[]);
}
declare type buttonData = {
type buttonData = {
label?: string,

@@ -912,3 +913,3 @@ style: ButtonStyle,

}
declare type stringData = {
type stringData = {
placeholder?: string,

@@ -922,3 +923,3 @@ custom_id?: string,

}
declare type selectOptions = {
type selectOptions = {
label: string,

@@ -940,7 +941,7 @@ value: string,

disabled?: boolean;
addOptions(...options: selectOptions);
setOptions(...options: selectOptions);
addOptions(...options: selectOptions[]);
setOptions(...options: selectOptions[]);
private pack();
}
declare type roleData = {
type roleData = {
placeholder?: string,

@@ -964,3 +965,3 @@ custom_id?: string,

}
declare type userData = {
type userData = {
placeholder?: string,

@@ -984,3 +985,3 @@ custom_id?: string,

}
declare type mentionableData = {
type mentionableData = {
placeholder?: string,

@@ -1004,3 +1005,3 @@ custom_id?: string,

}
declare type channelData = {
type channelData = {
placeholder?: string,

@@ -1134,3 +1135,3 @@ custom_id?: string,

}
declare type localizationsOptions = {
type localizationsOptions = {
id: string,

@@ -1168,3 +1169,3 @@ da: string,

}
declare type GuildCommandOptions = {
type GuildCommandOptions = {
name: string,

@@ -1179,3 +1180,3 @@ type?: commandType,

}
declare type commandChoicesOptions = {
type commandChoicesOptions = {
name: string,

@@ -1185,3 +1186,3 @@ name_localizations?: localizationsOptions,

}
declare type commandOptions = {
type commandOptions = {
type: commandOptionsType,

@@ -1210,6 +1211,6 @@ name: string,

name_localizations?: localizationsOptions;
description_localizations?: localizationOptions;
description_localizations?: localizationsOptions;
nsfw?: boolean;
}
declare type tagOptions = {
type tagOptions = {
id?: string,

@@ -1228,3 +1229,3 @@ name: string,

}
declare type editEmojiOptions = {
type editEmojiOptions = {
name?: string,

@@ -1231,0 +1232,0 @@ roles?: string[],

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc