Detecting the double server boost

I am listening to the messageCreate event and, when the message.type equals 8, Sends a message to the channel. However, I want to avoid sending a message when a member boosts the server for the first time. because to handle this, I listen to the guildMemberUpdate event to detect the automatic Nitro boost.
Essentially, I only want the messageCreate event to trigger for a member's second boost onwards.

I would appreciate it if someone could guide me!
Was this page helpful?