chore: add more mocked objects

This commit is contained in:
Paul Makles
2022-05-27 13:50:29 +01:00
parent def43294ba
commit 52c7bfdcd6
3 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -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",
+21
View File
@@ -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
View File
@@ -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",