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
Please describe the problem you are having in as much detail as possible:
Basically Sticker.fetchUser() isn't working, I used Sticker.fetch() and it worked
This is what I get when I run my code
Sticker {
id: '859884354128838666',
description: 'Un emoji bastante sorprendido',
type: 'GUILD',
format: 'PNG',
name: 'WARNING-E ~ Gran sorpresa',
packId: null,
tags: [ 'flushed' ],
available: true,
guildId: '390200963476094976',
user: null,
sortValue: null
}
C:\Users\ivano\Repositorios\GitHubDesktop\EmojiPackager\node_modules\discord.js\src\structures\Sticker.js:81
this.user = sticker.user ? this.client.users.add(sticker.user) : null;
^
TypeError: this.client.users.add is not a function
at Sticker._patch (C:\Users\ivano\Repositorios\GitHubDesktop\EmojiPackager\node_modules\discord.js\src\structures\Sticker.js:81:50)
at Sticker.fetchUser (C:\Users\ivano\Repositorios\GitHubDesktop\EmojiPackager\node_modules\discord.js\src\structures\Sticker.js:162:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.module.exports.run (C:\Users\ivano\Repositorios\GitHubDesktop\EmojiPackager\src\apps\global\stickers.js:13:21)
at async Client.<anonymous> (C:\Users\ivano\Repositorios\GitHubDesktop\EmojiPackager\src\events\interactionCreate.js:18:21)
[nodemon] app crashed - waiting for file changes before starting...
Include a reproducible code sample here, if possible:
module.exports.run=async(client,interaction)=>{letmessage=awaitinteraction.channel.messages.fetch(interaction.targetId);// meesage with stickerletstickers=Array.from(awaitmessage.stickers.values());//stickers to arrayletstickerFiles=newArray();for(leti=0;i<=stickers.length-1;i++){stickerFiles.push(stickers[i]);console.log(awaitstickers[i].fetch())//worksconsole.log(awaitstickers[i].fetchUser())// doesn't works}interaction.reply({content: 'done'});}
Further details:
discord.js version: v13.1.0
Node.js version: 16.6.1
Operating system: Windows 10 Home
Priority this issue should have – please be realistic and elaborate if possible: Low
Please describe the problem you are having in as much detail as possible:
Basically Sticker.fetchUser() isn't working, I used Sticker.fetch() and it worked
This is what I get when I run my code
Include a reproducible code sample here, if possible:
Further details:
Relevant client options:
The text was updated successfully, but these errors were encountered: