Case

Event.payload

Fired when a payload is received through the gateway

Declaration

case payload

Usage

bot.on(.payload) { data, in
  let message = data as! String
}