'How to detect if the author of a message was a Discord bot?

The title explains my question. This question might sound stupid, but how do I detect if the author of a message was a Discord bot?

Thanks.



Solution 1:[1]

for those looking for an answer on how to check if it was your bot who added a reaction. In that case you can check like it like:

client.on('messageReactionAdd', (messageReaction, user) => {
  if (messageReaction.me === false) {
    // This reaction was not added by the bot
  }
});

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 Menno Guldemond