spectacles-gateway
A rich Spectacles Gateway client for Rust.
About
This crate allows you to interact with the Discord gateway. Pllease refer to the Discord Gateway Docs for more background on how to use this crate.
Features
- Asynchronous websocket message handling.
- Zero-Downtime shard spawning.
- Integrates seamlessly with the spectacles-brokers package.
Example
extern crate log;
use var;
use ;
use ReceivePacket;
use Future;
/// Here we define our Handler struct, which we implement the Eventhandler trait for.
/// The on_packet() trait method will be called when a packet is received from the Discord gateway.
;