mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 01:23:33 -04:00
bug: #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HyoAkira on GitHub (Oct 14, 2024).
What happened?
import { Client } from "revolt.js";
const client = new Client(
{
autoReconnect: true,
baseURL: "https://api.199x.chat",
debug: true,
partials: false,
},
{
app: "https://199x.chat",
ws: "ws://199x.chat/ws",
}
);
client.on("ready", async () =>
console.info(
Logged in as ${client.user.username}!));
client.on("messageCreate", async (message) => {
if (message.content === "hello") {
message.channel.sendMessage("world");
}
});
client.loginBot("xxxxxx");
when bot listen messages boom
C:\Users\hyo\Desktop\revolt-test\node_modules\revolt.js\lib\cjs\collections\ServerMemberCollection.js:25
return super.has(id.server + id.user);
^
TypeError: Cannot read properties of undefined (reading 'server')
at ServerMemberCollection.hasByKey (C:\Users\hyo\Desktop\revolt-test\node_modules\revolt.js\lib\cjs\collections\ServerMemberCollection.js:25:29)
at ServerMemberCollection.getOrCreate (C:\Users\hyo\Desktop\revolt-test\node_modules\revolt.js\lib\cjs\collections\ServerMemberCollection.js:68:18)
at ServerMemberCollection. (C:\Users\hyo\Desktop\revolt-test\node_modules\revolt.js\lib\cjs\collections\ServerMemberCollection.js:59:25)
at Generator.next ()
at fulfilled (C:\Users\hyo\Desktop\revolt-test\node_modules\revolt.js\lib\cjs\collections\ServerMemberCollection.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)