In this article, we will create a system to broadcast certain messages only those users in your Discord server who have sent more than 10 messages in your server.
Step 1: Create a private a channel for the select users
Go to your Discord Server Settings, select "Roles"
Create a new role called "Gold Role".
Then, go back to your server and create a private channel called "Gold Members" that allows access to members having "Gold Role".
Note: All admins will by default have access to this channel
Step 2: Set-up the Member Fields & Channel trigger to update message count
Go to your BotDisco Dashboard
Click on the Member Fields tab on your left
Now create 1 Member Fields as follows:
To store the no. of messages user sent
Next, create a Channel Trigger and use Set Member Field option to increase Msg_Count by 1. This trigger then automatically updates message counts of each user when they send a message in a given channel.
Step 3: Check and allocate Gold Role if eligible
After updating the message count for the user that sent the message, we'll check if he/she is eligible for Gold Role status or not.
Click "Add Action" and select "Filter".
Select if member field Msg_Count is >10
Click "And" and add another condition as User Role "does not equal" Gold Role
Next, Click 'Add Action" and select "Add Role". Then select the user that sent the message and allocate the "Gold Role".
Finally, send a channel message in "Gold Members" channel that you created in Step 1 to let the user know.