You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: