mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
chore: add more mocked objects
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "revolt.js",
|
||||
"version": "6.0.0-3-patch.1",
|
||||
"version": "6.0.1",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"module": "esm/index.js",
|
||||
|
||||
@@ -585,6 +585,12 @@ export class Client extends EventEmitter {
|
||||
},
|
||||
});
|
||||
|
||||
await this.users.fetch("user2", {
|
||||
_id: "user2",
|
||||
username: "mink",
|
||||
online: true,
|
||||
});
|
||||
|
||||
const names = [
|
||||
"Server Name",
|
||||
"My Server",
|
||||
@@ -622,5 +628,20 @@ export class Client extends EventEmitter {
|
||||
this.unreads?.markUnread(_id, "mid");
|
||||
}
|
||||
}
|
||||
|
||||
this.channels.fetch("group", {
|
||||
_id: "group",
|
||||
channel_type: "Group",
|
||||
name: "Group Chat",
|
||||
owner: "user2",
|
||||
recipients: ["user", "user2"],
|
||||
});
|
||||
|
||||
this.channels.fetch("dm", {
|
||||
_id: "dm",
|
||||
channel_type: "DirectMessage",
|
||||
active: true,
|
||||
recipients: ["user", "user2"],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
export const LIBRARY_VERSION = "6.0.0-3-patch.1";
|
||||
export const LIBRARY_VERSION = "6.0.1";
|
||||
|
||||
export const defaultConfig = {
|
||||
apiURL: "https://api.revolt.chat",
|
||||
|
||||
Reference in New Issue
Block a user