'How can i make the bot reply to a message which is a reply by me discord

Like if I sent a message replying to a bot message, i want the bot to react to it Language I use => Javascript!



Solution 1:[1]

So this is how you would do that

if (!message.author.bot && message.type === 'REPLY' && message.mentions.repliedUser.id === client.user.id) {
    message.react('?')
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1