Open foobarbecue opened 8 years ago
Sorry for the late reply, thanks a lot for pointing this out to me. That is indeed a documentation issue, which I've fixed in the latest commit.
While digging into it, however, there were a few other issues with the badge methods which should now be fixed in the latest commit. If you want to get the recipients of a particular badge, you can use the recipients
field of the Badge object, e.g. so.badge(22).recipients
. Bear in mind this is an 'infinite' generator, so don't try and turn it into a list all at once. For something closer to the documented API endpoint, the Site#badge_recipients method returns a set of Badges as described here.
.badges docstring says it returns users, but actually it just seems to return the badge object. Is this the intended behavior?