Differentiation between bot user and webhook

Currently i have if (message.author.bot) return; to make my bot not interact with messages from other bots. How can i improve that to allow it to interact with webhook messages but not bot messages?
4 Replies
d.js toolkit
d.js toolkit•4w ago
duck
duck•4w ago
you can also check if <Message>.webhookId is present
Vico
VicoOP•4w ago
thanks a lot
d.js toolkit
d.js toolkit•4w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?