pub fn new(webhook_secret: &'static [u8]) -> ServerBuilder
Expand description

Returns a ServerBuilder with the given webhook secret.

Call Self::on() to register closures to be run when the given event is received and Self::build() to retrieve the final tide::Server.