src/main/java/me/evyn/bot/commands/info/Ping.java
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {

        String gatewayPing = String.valueOf(event.getJDA().getGatewayPing());

        event.getChannel()
                .sendMessage(String.format("Current gateway ping: %sms", gatewayPing))
                .queue();
    }
/**
     * Gets the current gateway ping and sends in channel
     * @param event Discord API message event
     * @param prefix Specific guild bot prefix
     * @param embed Guild embed setting
     * @param args Command arguments
     */
Gets the current gateway ping and sends in channel
@param event Discord API message event
@param prefix Specific guild bot prefix
@param embed Guild embed setting
@param args Command arguments
Gets the current gateway ping and sends in channel @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {
        String gatewayPing = String.valueOf(event.getJDA().getGatewayPing());
        event.getChannel()
                .sendMessage(String.format("Current gateway ping: %sms", gatewayPing))
                .queue();
    }
@ Override public void run ( MessageReceivedEvent event , String prefix , boolean embed , String [ ] args ) { String gatewayPing = String . valueOf ( event . getJDA ( ) . getGatewayPing ( ) ) ; event . getChannel ( ) . sendMessage ( String . format ( "Current gateway ping: %sms" , gatewayPing ) ) . queue ( ) ; }
Gets the current gateway ping and sends in channel
 @param event Discord API message event
 @param prefix Specific guild bot prefix
 @param embed Guild embed setting
 @param args Command arguments
Gets the current gateway ping and sends in channel @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments