Documentation
Swiftcord
Event
Event.disconnect
Case
Event.disconnect
Fired when a shard is disconnected from the gateway
Declaration
case
disconnect
Usage
bot.on(.disconnect) { data in
let shardNumber = data as! Int
}