Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  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. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement