how can I do this ?

how can I do this ?
15 Replies
d.js toolkit
d.js toolkit12mo 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!
treble/luna
treble/luna12mo ago
and where did you define client.interactions this is a horrible way to handle interactions just follow the guide
d.js docs
d.js docs12mo ago
guide Home: What's new read more
joaozinhotremm2
joaozinhotremm2OP12mo ago
Is there any way for me to create an interaction or edit this message that is in ephemeral using the message id? @polarwolvinny ❄ 🌈
treble/luna
treble/luna12mo ago
<Interaction>.editReply() you can pass in the message you want to edit in the call
joaozinhotremm2
joaozinhotremm2OP12mo ago
How can I define this <Interaction> by message id?
d.js docs
d.js docs12mo ago
method ButtonInteraction#editReply() Edits a reply to this interaction.
treble/luna
treble/luna12mo ago
but i'd recommend not copy pasting code without knowing what it does
joaozinhotremm2
joaozinhotremm2OP12mo ago
How can I define the message by its id??
treble/luna
treble/luna12mo ago
add fetchReply: true when sending and it will resolve into a Message
joaozinhotremm2
joaozinhotremm2OP12mo ago
treble/luna
treble/luna12mo ago
you do need an interaction to edit an ephemeral message
joaozinhotremm2
joaozinhotremm2OP12mo ago
how can I do this :_
treble/luna
treble/luna12mo ago
by not copy pasting code client.fetchReply is not a function you have to define it yourself
joaozinhotremm2
joaozinhotremm2OP12mo ago
How can I define this and the problem @polarwolvinny ❄ 🌈
Want results from more Discord servers?
Add your server