Webhook configuration

I’m about the create a interface based on Webhook.
Is it possible to avoid comments with group restrictions to be sent through the Webhook
Thank you for your reply.