Why i can't find my user data in 'Message'?

So, im trying to create a awaitMessage with button interaction here is the code
const msg = await i.editReply({
embeds: [this.generateEmbed(message, db, [
'TESTING 123'])],
components: [this.generateComponent()]
});

this.rolesCollector(msg);
const msg = await i.editReply({
embeds: [this.generateEmbed(message, db, [
'TESTING 123'])],
components: [this.generateComponent()]
});

this.rolesCollector(msg);
but when i console log the msg from const msg = the Author object data is not me, but it's my bot, so how can i get my Author data?
3 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Intan
IntanOP17mo ago
the const msg = is replying to the bot embed message above it
treble/luna
treble/luna17mo ago
<Interaction>.user will be the user that interacted
Want results from more Discord servers?
Add your server