how can I do this ?

how can I do this ?
15 Replies
d.js toolkit
d.js toolkit6mo 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/luna6mo 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 docs6mo ago
guide Home: What's new read more
joaozinhotremm2
joaozinhotremm26mo 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/luna6mo ago
<Interaction>.editReply() you can pass in the message you want to edit in the call
joaozinhotremm2
joaozinhotremm26mo ago
How can I define this <Interaction> by message id?
d.js docs
d.js docs6mo ago
method ButtonInteraction#editReply() Edits a reply to this interaction.
treble/luna
treble/luna6mo ago
but i'd recommend not copy pasting code without knowing what it does
joaozinhotremm2
joaozinhotremm26mo ago
How can I define the message by its id??
treble/luna
treble/luna6mo ago
add fetchReply: true when sending and it will resolve into a Message
joaozinhotremm2
joaozinhotremm26mo ago
treble/luna
treble/luna6mo ago
you do need an interaction to edit an ephemeral message
joaozinhotremm2
joaozinhotremm26mo ago
how can I do this :_
treble/luna
treble/luna6mo ago
by not copy pasting code client.fetchReply is not a function you have to define it yourself
joaozinhotremm2
joaozinhotremm26mo ago
How can I define this and the problem @polarwolvinny ❄ 🌈
Want results from more Discord servers?
Add your server
More Posts
How can I make a /emoji-steal command?I want to make a slash command named /steal-emoji and you enter the emoji id from another server andhow to add a listener so if someone sent message in the server, the bot does action ?i want to make console.log that there is a user sent message .. how to do that ? it's like a listeneHow to get the user's "custom status" and "about me" v14.9.0I want to get the user's "custom status" and "about me".Does <GuildMessageManager>.fetch({ limit: x }) return a sorted Collection of message ?Hi When I call the method **fetch** from GuildMessageManager, I'd like to know if we can be sure thError ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memoryGood morning, for a few days I have had this error which occurred even though I have never had this weird UnknownInteractionErrori've sent my slashCommand file, i just get randomly UnknownInteractionError on the first run of commBot goes offline after like a dayI host my discord bot has a file "warn_bot" so I write cd ... then node warn_bot.js the bot works flIs there any way I can edit an ephemeral from the message? or by message id?await interaction.update({message: t.msg, content: `teste`, embeds: [], components: []}).then(msg =>Application didnt respond/No command matching was foundmy slash cmd didnt reply and in the terminal, it says "No command matching ping was found."question about voice receiverhey im trying to make a voice recorder bot and i just wanted to know the stream of audio which i get