import { GatewaySendOptions , GatewaySendPayloadLike } from '@discordoo/providers' ; import { Client } from '@src/core' ; /** Gateway application that contains useful info/methods */ export interface ClientGatewayApplication { /** Client to which this application is attached */ client : Client ; /** Average delay to Discord gateway, calculated from the delay of all the shards that are in this application. */ ping : number ; /** If you want to know the gateway delay of shards individually, use this method. */ latency ( shards ) : Array < [ number , number ] > ; /** This will disconnect specified/all shards from gateway and then connect them. */ reconnect ( shards ? ) : Promise < unknown > ; /** Send some packet to the gateway. Use the options to specify which shards to send this packet on. */ send ( data , options ? ) : unknown ; events : { currentSecond : number ; previousSecond : number ; } ; }