Steal command for stickers !!
If it is an animated sticker, then it is not working.
npm list discord.js and node node -v version?
// Create a new sticker from a URL
guild.stickers.create({ file: 'https://i.imgur.com/w3duR07.png', name: 'rip', tags: 'headstone' })
.then(sticker => console.log(`Created new sticker with name ${sticker.name}!`))
.catch(console.error);Error processing interaction: DiscordAPIError: Invalid Form Body
image: Invalid image data
at RequestHandler.execute (F:\TRICK\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (F:\TRICK\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async GuildEmojiManager.create (F:\TRICK\node_modules\discord.js\src\managers\GuildEmojiManager.js:69:19)
at async InteractionCollector.<anonymous> (F:\TRICK\commands\information\addemoji.js:144:25) {
method: 'post',
path: '/guilds/1249048584083738736/emojis',
code: 50035,
httpStatus: 400,
requestData: {
json: { image: 'data:image/jpg;base64,', name: 'emoji' },
files: []
}
} await message.guild.stickers.create(currentItemUrl, name, 'sticker').then((newSticker) => {
interaction.reply({
content: `Successfully stole the sticker ${newSticker.name}!`,
ephemeral: true
});message.guild.stickers.create(currentItemUrl, name, 'sticker').then((newSticker)Error processing interaction: TypeError [REQ_RESOURCE_TYPE]: The resource must be a string, Buffer or a valid file stream.
at DataResolver.resolveFile (F:\TRICK\node_modules\discord.js\src\util\DataResolver.js:127:11)
at MessagePayload.resolveFile (F:\TRICK\node_modules\discord.js\src\structures\MessagePayload.js:260:41)
at GuildStickerManager.create (F:\TRICK\node_modules\discord.js\src\managers\GuildStickerManager.js:60:47)
at InteractionCollector.<anonymous> (F:\TRICK\commands\information\addemoji.js:159:54)
at InteractionCollector.emit (node:events:531:35)
at InteractionCollector.handleCollect (F:\TRICK\node_modules\discord.js\src\structures\interfaces\Collector.js:110:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[Symbol(code)]: 'REQ_RESOURCE_TYPE'
}