SHARE
TWEET

Untitled

a guest Aug 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. C:Usersjaba1DesktopDabNetdabnetbotnode_modulesdiscord.jssrcstructuresMessageAttachment.js:28
  2.     this.id = data.id;
  3.                    ^
  4. TypeError: Cannot read property 'id' of undefined
  5.      
  6. client.on('message', message => {
  7.     if (message.channel.type == "text") {
  8.         if (message.channel.id == 613569046419472384){
  9.             if (message.content.startsWith('!getcodes')){
  10.                 guild = message.guild;
  11.                 channel = message.channel;
  12.                 const attachment = new MessageAttachment('./wlids.json');
  13.  
  14.                 channel.send(attachment);
  15.             }
  16.         }
  17.     }
  18. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top