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
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 a 405 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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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