Update message when event fires

I use a minecraft api to see how many players are online on my server. How could I say that the bot should update a message it initally posted once the online player count changes?
Was this page helpful?