mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
fix: don't expect at least 1 channel for concat
This commit is contained in:
+1
-1
@@ -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 <insrt.uk>",
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user