diff --git a/package.json b/package.json index d7434e40..e1aae67d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "revolt.js", - "version": "5.2.1-patch.1", + "version": "5.2.1-patch.2", "main": "dist/index.js", "repository": "https://github.com/revoltchat/revolt.js", "author": "Paul Makles ", diff --git a/src/config.ts b/src/config.ts index 8d83ff48..6d83d191 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,4 +1,4 @@ -export const LIBRARY_VERSION = "5.2.1-patch.1"; +export const LIBRARY_VERSION = "5.2.1-patch.2"; export const defaultConfig = { apiURL: "https://api.revolt.chat", diff --git a/src/maps/Servers.ts b/src/maps/Servers.ts index c51e1a82..4872fa71 100644 --- a/src/maps/Servers.ts +++ b/src/maps/Servers.ts @@ -63,7 +63,7 @@ export class Server { .filter(channel => !permit?.isMuted(channel)) .map((channel) => channel?.mentions) as string[][]; - return arr[0].concat(...arr.slice(1)); + return ([] as string[]).concat(...arr); } constructor(client: Client, data: ServerI) {