I have a webhook bot. It sends webhook messages but it detects webhooks messages as same as normal messages. So it makes spam.
I use discord.js
version 11.5.1
I thought this code will work but it did not work.
if (message.author.nickname == null) return;
I think this is what you're looking for: Message#webhookId
if (message.webhookId) return;
(For Discord.js V12 and under, use #webhookID
with ID
all capitalised instead.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With