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

revolt.js

Package Overview
Dependencies
Maintainers
1
Versions
270
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revolt.js - npm Package Compare versions

Comparing version 6.0.7 to 6.0.8

1

dist/maps/Emojis.d.ts

@@ -11,2 +11,3 @@ import type { Emoji as EmojiI, EmojiParent } from "revolt-api";

animated: boolean;
nsfw: boolean;
/**

@@ -13,0 +14,0 @@ * Get timestamp when this message was created.

4

dist/maps/Emojis.js

@@ -21,2 +21,3 @@ "use strict";

constructor(client, data) {
var _a, _b;
this.client = client;

@@ -27,3 +28,4 @@ this._id = data._id;

this.parent = data.parent;
this.animated = data.animated;
this.animated = (_a = data.animated) !== null && _a !== void 0 ? _a : false;
this.nsfw = (_b = data.nsfw) !== null && _b !== void 0 ? _b : false;
(0, mobx_1.makeAutoObservable)(this, {

@@ -30,0 +32,0 @@ _id: false,

@@ -45,2 +45,3 @@ import type { DataMemberEdit, FieldsMember, Member as MemberI, MemberCompositeKey } from "revolt-api";

};
joined_at: string;
nickname?: string | null | undefined;

@@ -75,3 +76,4 @@ avatar?: {

} | null | undefined;
roles?: string[] | null | undefined;
roles?: string[] | undefined;
timeout?: string | null | undefined;
}>;

@@ -78,0 +80,0 @@ /**

@@ -46,3 +46,3 @@ import type { DataEditMessage, DataMessageSend, Embed, Masquerade, Message as MessageI, SystemMessage } from "revolt-api";

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
user: import("./Users").User | undefined;

@@ -52,3 +52,3 @@ by: import("./Users").User | undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
user: import("./Users").User | undefined;

@@ -58,3 +58,3 @@ by?: undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
name: string;

@@ -64,10 +64,10 @@ by: import("./Users").User | undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
by: import("./Users").User | undefined;
user?: undefined;
name?: undefined;
};
} | undefined;
constructor(client: Client, data: MessageI);
update(data: Partial<MessageI>): void;
append({ embeds }: Pick<Partial<MessageI>, 'embeds'>): void;
append({ embeds }: Pick<Partial<MessageI>, "embeds">): void;
/**

@@ -116,2 +116,6 @@ * Edit a message

by: string;
} | {
type: "channel_ownership_changed";
from: string;
to: string;
} | null | undefined;

@@ -245,5 +249,13 @@ attachments?: {

replies?: string[] | null | undefined;
reactions?: {
[key: string]: string[];
} | undefined;
interactions?: {
reactions?: string[] | null | undefined;
restrict_reactions?: boolean | undefined;
} | undefined;
masquerade?: {
name?: string | null | undefined;
avatar?: string | null | undefined;
colour?: string | null | undefined;
} | null | undefined;

@@ -250,0 +262,0 @@ }>;

@@ -48,2 +48,4 @@ "use strict";

}
// reactions: Record<string, Set<string>>;
// interactions: Nullable<Interactions>;
get channel() {

@@ -79,3 +81,3 @@ return this.client.channels.get(this.channel_id);

var _a;
return ((_a = this.channel) === null || _a === void 0 ? void 0 : _a.path) + '/' + this._id;
return ((_a = this.channel) === null || _a === void 0 ? void 0 : _a.path) + "/" + this._id;
}

@@ -97,3 +99,3 @@ /**

if (!system)
return { type: 'none' };
return { type: "none" };
const { type } = system;

@@ -149,6 +151,3 @@ const get = (id) => this.client.users.get(id);

if (embeds) {
this.embeds = [
...((_a = this.embeds) !== null && _a !== void 0 ? _a : []),
...embeds
];
this.embeds = [...((_a = this.embeds) !== null && _a !== void 0 ? _a : []), ...embeds];
}

@@ -155,0 +154,0 @@ }

@@ -408,6 +408,9 @@ import type { Category, Channel as ChannelI, DataBanCreate, DataCreateChannel, DataCreateServer, DataEditRole, DataEditServer, FieldsServer, Role, Server as ServerI, SystemMessageChannels } from "revolt-api";

id: string;
} | {
type: "Detached";
};
creator_id: string;
name: string;
animated: boolean;
animated?: boolean | undefined;
nsfw?: boolean | undefined;
} | undefined>;

@@ -414,0 +417,0 @@ /**

@@ -337,2 +337,3 @@ "use strict";

},
joined_at: new Date().toISOString(),
}, true);

@@ -339,0 +340,0 @@ }));

@@ -11,2 +11,3 @@ import type { Emoji as EmojiI, EmojiParent } from "revolt-api";

animated: boolean;
nsfw: boolean;
/**

@@ -13,0 +14,0 @@ * Get timestamp when this message was created.

@@ -15,2 +15,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

constructor(client, data) {
var _a, _b;
this.client = client;

@@ -21,3 +22,4 @@ this._id = data._id;

this.parent = data.parent;
this.animated = data.animated;
this.animated = (_a = data.animated) !== null && _a !== void 0 ? _a : false;
this.nsfw = (_b = data.nsfw) !== null && _b !== void 0 ? _b : false;
makeAutoObservable(this, {

@@ -24,0 +26,0 @@ _id: false,

@@ -45,2 +45,3 @@ import type { DataMemberEdit, FieldsMember, Member as MemberI, MemberCompositeKey } from "revolt-api";

};
joined_at: string;
nickname?: string | null | undefined;

@@ -75,3 +76,4 @@ avatar?: {

} | null | undefined;
roles?: string[] | null | undefined;
roles?: string[] | undefined;
timeout?: string | null | undefined;
}>;

@@ -78,0 +80,0 @@ /**

@@ -46,3 +46,3 @@ import type { DataEditMessage, DataMessageSend, Embed, Masquerade, Message as MessageI, SystemMessage } from "revolt-api";

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
user: import("./Users").User | undefined;

@@ -52,3 +52,3 @@ by: import("./Users").User | undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
user: import("./Users").User | undefined;

@@ -58,3 +58,3 @@ by?: undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
name: string;

@@ -64,10 +64,10 @@ by: import("./Users").User | undefined;

} | {
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed";
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed";
by: import("./Users").User | undefined;
user?: undefined;
name?: undefined;
};
} | undefined;
constructor(client: Client, data: MessageI);
update(data: Partial<MessageI>): void;
append({ embeds }: Pick<Partial<MessageI>, 'embeds'>): void;
append({ embeds }: Pick<Partial<MessageI>, "embeds">): void;
/**

@@ -116,2 +116,6 @@ * Edit a message

by: string;
} | {
type: "channel_ownership_changed";
from: string;
to: string;
} | null | undefined;

@@ -245,5 +249,13 @@ attachments?: {

replies?: string[] | null | undefined;
reactions?: {
[key: string]: string[];
} | undefined;
interactions?: {
reactions?: string[] | null | undefined;
restrict_reactions?: boolean | undefined;
} | undefined;
masquerade?: {
name?: string | null | undefined;
avatar?: string | null | undefined;
colour?: string | null | undefined;
} | null | undefined;

@@ -250,0 +262,0 @@ }>;

@@ -42,2 +42,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
// reactions: Record<string, Set<string>>;
// interactions: Nullable<Interactions>;
get channel() {

@@ -73,3 +75,3 @@ return this.client.channels.get(this.channel_id);

var _a;
return ((_a = this.channel) === null || _a === void 0 ? void 0 : _a.path) + '/' + this._id;
return ((_a = this.channel) === null || _a === void 0 ? void 0 : _a.path) + "/" + this._id;
}

@@ -91,3 +93,3 @@ /**

if (!system)
return { type: 'none' };
return { type: "none" };
const { type } = system;

@@ -143,6 +145,3 @@ const get = (id) => this.client.users.get(id);

if (embeds) {
this.embeds = [
...((_a = this.embeds) !== null && _a !== void 0 ? _a : []),
...embeds
];
this.embeds = [...((_a = this.embeds) !== null && _a !== void 0 ? _a : []), ...embeds];
}

@@ -149,0 +148,0 @@ }

@@ -408,6 +408,9 @@ import type { Category, Channel as ChannelI, DataBanCreate, DataCreateChannel, DataCreateServer, DataEditRole, DataEditServer, FieldsServer, Role, Server as ServerI, SystemMessageChannels } from "revolt-api";

id: string;
} | {
type: "Detached";
};
creator_id: string;
name: string;
animated: boolean;
animated?: boolean | undefined;
nsfw?: boolean | undefined;
} | undefined>;

@@ -414,0 +417,0 @@ /**

@@ -331,2 +331,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

},
joined_at: new Date().toISOString(),
}, true);

@@ -333,0 +334,0 @@ }));

{
"name": "revolt.js",
"version": "6.0.7",
"version": "6.0.8",
"main": "dist/index.js",

@@ -20,3 +20,3 @@ "typings": "dist/index.d.ts",

"mobx": "^6.3.2",
"revolt-api": "0.5.4",
"revolt-api": "0.5.5",
"ulid": "^2.3.0",

@@ -23,0 +23,0 @@ "ws": "^8.2.2"

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