change nested resource syntax from

client.members.badges.all(member_id, {})

to

client.members(member_id).badges.all({})