Question: I have a discord bot that gets info from an API. The current issue I'm having is actually getting the information to be sent when the command is run.

```
const axios = require('axios');
axios.get('https://mcapi.us/server/status?ip=asean.my.to')
.then(response => {
  console.log(response.data);
});

module.exports = {
    name: 'serverstatus',
    description: 'USes an API to grab server status ',
    execute(message, args) {
        message.channel.send();
    },
};

```

Answer: 
probably your page is refreshed, try to use preventDefault to prevent the refresh

```
$('#submit').click(function(event){
        //your code here
      event.preventDefault();
    }

```
You have a button with type `"submit"`.

```html
<input type="submit" id="submit" value="Save">

```

As the click-event occurs on this button, your form will be send to the server. You have no action attribute defined on your form, so it redirects after submit to the same URL.

As [Sterko](https://stackoverflow.com/users/13474687/sterko) stated, you could use a event-handler to prevent the submission of your form due to the submit button.