Help to send a message in another channel

Hello everyone, I'm developing a Discord bot with Discord.js 14.14.1 and I'm encountering a problem. (use Typescript) I want a user to be able to write a message in a channel other than the one they are in after interacting with my bot (command, button, etc.). I've managed to retrieve the destination channel and ask the user for his message, but I don't know how to send it to the destination channel while keeping the author of the message (the user) and not the bot. As soon as a message is sent correctly on the other channel, it's written by the bot and not by my user, is this possible? I'd like to do some sort of inter-channel synchronisation. I've tried looking for solutions on the internet, but I haven't found a clear answer. Would it be possible to help me solve this problem? Thank you in advance for your help. All the best,
4 Replies
d.js toolkit
d.js toolkit9mo 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! - Marked as resolved by OP
Quentin
QuentinOP9mo ago
(node v20.9.0)
mallusrgreat
mallusrgreat9mo ago
you can use a webhook instead make the name and pfp the same as the user and send the message
Quentin
QuentinOP9mo ago
Oh damm, I'd totally forgotten about webhooks! Thanks a lot !!
Want results from more Discord servers?
Add your server