Combine chocolate, rum, 1/4 cup water, and the vanilla in a heat-proof bowl. Set it over a pan of simmering water just until the chocolate melts. Cool to room temperature. Whisk butter until combined.