title: make the value from .then(value) to an global alue which can used later
body: <p>how can i use the value from the first <code>.then</code> statement in the second? I want to use d_channel in the second <code>.then</code> and in the third</p>
  <pre><code>message.guild.channels.create('register-'+username[0], {
              type: 'text',
              permissionOverwrites: [{
                  id: message.member.user.id,
                  allow: ['VIEW_CHANNEL'],
              },
              {
                  id: &quot;707236888330895380&quot;,
                  deny: ['VIEW_CHANNEL'],
              }], 
          }).then((d_channel) =&gt;{
              const categoryId = '732596048324984863';
              d_channel.setParent(categoryId);
              //channel.delete(100000);
              console.log(d_channel.id)
          }).then(()=&gt;{ console.log(d_channel.id)});
  
  </code></pre>