Grounds are much less effective than coffee for detering slugs, it is the caffeine that kills them and that has all gone into the brew. Fine for composting though.
Coffee cannot be recommended as a pesticide of course, no matter how effective, as it is not licenced for that application. But you have to dispose of that cheap instant coffee you keep making but never drink somewhere, don't you? 