It would be easier to make this server side via plugin, because the server knows when an announce happens. All you need to do is wire this to a discord server of your choosing. Making it the way you intended via players that receive the announce the discord server would get the message n times the player count.