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
712 stars 148 forks source link

Webembed working error #1002

Closed ToXic6667 closed 6 months ago

ToXic6667 commented 6 months ago

Which package has the bugs?

WebEmbed x Shorten API

Issue description

so, i started to use the package but, the website Webembed work fine, but, when i do message.channel.send({ embed: [myem]}); it return an error, this error:

DiscordAPIError: Cannot send an empty message at RequestHandler.execute (C:\Users\Desktopp\Desktop\Ashleyselfbot\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:390:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RequestHandler.push (C:\Users\Desktopp\Desktop\Ashleyselfbot\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:62:14) at async TextChannel.send (C:\Users\Desktopp\Desktop\Ashleyselfbot\node_modules\discord.js-selfbot-v13\src\structures\interfaces\TextBasedChannel.js:184:15) { method: 'post', path: '/channels/1197936111943696437/messages', code: 50006, httpStatus: 400, requestData: { json: { activity: undefined, content: undefined, tts: false, nonce: undefined, embeds: undefined, components: undefined, username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: [], sticker_ids: undefined, thread_name: undefined }, files: [], headers: undefined }, retries: 0, captcha: null }

Node.js v21.6.0

Code sample

const WhoamiEM = new WebEmbed({
    shorten: true,
    hidden: false,
    baseURL: '',
    shortenAPI: '',
  })
        .setTitle("")
        .setDescription(``)
        .setImage("")

client.on('messageCreate', async message =>{
  if (message.content.startsWith(config.prefix + "whoami")) {
      console.log(WhoamiEM)
      message.channel.send({ embed: [WhoamiEM]});
    }
  });

Package version

discord.js-selfbot-v13@3.0.2

Node.js version

21.6.0

Operating system

Windows 11

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

aiko-chan-ai commented 6 months ago

https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/examples/Embed.js

ToXic6667 commented 6 months ago

Owner

thanks you, but, why the color is not showing

aiko-chan-ai commented 6 months ago

thanks you, but, why the color is not showing

omg 😭

aiko-chan-ai commented 6 months ago

fixed (oembed + color)