diff --git a/package.json b/package.json index daaba97f..3a8f9962 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/Client.ts b/src/Client.ts index fad41ed6..b594ae2e 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -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"], + }); } } diff --git a/src/config.ts b/src/config.ts index 1874f26a..d75b62e4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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",