Why do both promise .then() and .catch() are called? : <p>I'm beginning to write a discord bot with the Discord.js library (version 11.5.1). Promises returned by methods don't work as expected because then() and catch() callbacks are both called if it's successful.</p>

<p>I'm using nodejs version 11.15.0.</p>

<p>In this example, I send a message in the test-bot channel when the bot in logged.</p>

<pre><code>const Discord = require('discord.js');
const client = new Discord.Client();
const auth = require('./auth.json');

client.on('ready', () =&gt; {
    const guild = client.guilds.find(
        guild =&gt; guild.name === 'test');
    const channel = guild.channels.find(
        ch =&gt; ch.name === 'test-bot');
    if (!channel) {
        console.error('no channel found');
        return ;
    }
    channel.send('heeeello')
        .then(console.log('cool'))
        .catch(console.error('grrr'));
});
client.login(auth.token);
</code></pre>

<p>The message is well sended on the discord channel and the console output is:</p>

<pre><code>cool
grrr
</code></pre>

<p>but I don't expect <code>grrr</code> in the output.</p>
