aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
697 stars 143 forks source link

Error when creating a server #1194

Open JestemKamil opened 2 weeks ago

JestemKamil commented 2 weeks ago

Which package has the bugs?

The core library

Issue description

  1. Run selfbot
  2. client.guilds.create("Name")
  3. Get error: C:\Users\ds\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415 throw new DiscordAPIError(data, res.status, request); ^

DiscordAPIError: Unknown Message at RequestHandler.execute (C:\Users\ds\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:415:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\ds\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:63:14) at async GuildManager.create (C:\Users\ds\node_modules\discord.js-selfbot-v13\src\managers\GuildManager.js:228:18) { method: 'post', path: '/guilds', code: 10008, httpStatus: 403, requestData: { json: { name: 'Test', icon: null, verification_level: undefined, default_message_notifications: undefined, explicit_content_filter: undefined, roles: [], channels: [], afk_channel_id: undefined, afk_timeout: undefined, system_channel_id: undefined, system_channel_flags: undefined }, files: [], headers: undefined },

Code sample

const { Client } = require("discord.js-selfbot-v13")
    const client = new Client()

    client.on("ready", async () => {
        client.guilds.create("Test")
    })

    client.login(
        "Token"
    )

Package version

3.1.4

Node.js version

v20.12.0

Operating system

Windows 10

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

YeDoly commented 6 days ago

https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/1045#issuecomment-1949935754