Change message author as bot

I saw a channel that converts the user messages like a bot (in counting). I tried to recreate this using Discord JS but I wasn't able to. I tried to recreate the message and set the message.author.bot to true but it didn't work (obviously as it creates a new message instead of modifying it) Attached screenshots for reference
No description
No description
No description
6 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!
d.js docs
d.js docs9mo ago
guide Popular Topics: Webhooks read more
Python
Python9mo ago
Thank you, but for some reason, its not sending messages with user's avatar & username.
webhookClient.send(content, {
username: message.author.username,
avatarURL: message.author.avatarURL(),
})
webhookClient.send(content, {
username: message.author.username,
avatarURL: message.author.avatarURL(),
})
when I tried logging the value above this snippet I was getting correct result
No description
Python
Python9mo ago
I'm using 14.12.1 version
grass
grass9mo ago
it takes one object param
Python
Python9mo ago
Thanks :)