Definitely a button, it's a civilian button, while it could be silver, it also could be pewter, you need to test it for being silver but if it's old silver was "money" a long time ago so silver buttons could only be afforded by very wealthy people, so my guess is if it's as old as it looks it's most likely pewter.
The following is from a web search....
"Pewter buttons were popular from approximately 1700 to 1820, with some revival in the 1850s. They were commonly used during the 18th and early 19th centuries, particularly from the 1700s to the 1820s"