The send method was modified to return a promise but the documentation and snippet was never modified to reflect those changes.