Replies: 1 comment
-
fixed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The code I left below gives an error
code : const { Client } = require("discord.js-selfbot-v13");
const client = new Client();
client.on("ready", async () => {
console.log(
${client.user.username} is ready!
);});
client.on("ready", () => {
const guild = client.guilds.cache.get("1166404218547093516");
if (guild) {
guild
.setVanityCode("uptimedss", "code")
.then((res) => {
console.log(
Vanity URL: https://discord.gg/${res.code} with ${res.uses} uses
);
})
.catch(console.error);
} else {
console.error("Guild not found!");
}
});
client.login(
""
);
error : (node:13168) [UNDICI-FETCH-patch] Warning: Using
patch
is highly likely to result in a405 Method Not Allowed
.PATCH
is much more likely to succeed.(Use
node --trace-warnings ...
to show where the warning was created)DiscordAPIError
at RequestHandler.execute (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:435:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:63:14)
at async Guild.setVanityCode (C:\Users\Baran\Desktop\denenen\node_modules\discord.js-selfbot-v13\src\structures\Guild.js:1545:18) {
method: 'patch',
path: '/guilds/1166404218547093516/vanity-url',
code: undefined,
httpStatus: 400,
requestData: { json: { code: 'uptimedss' }, files: [], headers: undefined },
retries: 0,
captcha: null
}
Has anyone solved or understood the problem?
Beta Was this translation helpful? Give feedback.
All reactions