Auto Join and Leave #316
Answered
by
gunawans67
gunawans67
asked this question in
Q&A
-
how to make selfbot join guild and leave guild |
Beta Was this translation helpful? Give feedback.
Answered by
gunawans67
Sep 19, 2022
Replies: 1 comment 11 replies
-
for join, when i use this coe
getting error
Answer client.on("ready", async () => {
console.log(`${client.user.username} is ready!`);
await client.fetchInvite("b5pHw6bc4Y").then(async (invite) => {
await invite.acceptInvite(true);
console.log("Success");
});
});
client.login(TOKEN); |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
gunawans67
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for join, when i use this coe
await client.fetchInvite("82UhKqR6").then(async (invite) => { await invite.acceptInvite(true); });
getting error
HTTPError [DiscordjsError]: Request to use token, but token was unavailable to the client.
{ code: 500, method: 'get', path: '/invites/82UhKqR6?with_counts=true&with_expiration=true', requestData: { json: undefined, files: [] } }
Answer