Giter Site home page Giter Site logo

Comments (5)

SudhanPlayz avatar SudhanPlayz commented on May 17, 2024

This doesnt the full error and just return before reading command if message was sent on dms

Also we dont use commando

from discord-musicbot.

kaaax0815 avatar kaaax0815 commented on May 17, 2024

This is the Full Log:

Unhandled Rejection at:  Promise {
  <rejected> TypeError: Cannot read property 'voice' of null
      at Object.run (/home/runner/discordjs/commands/play.js:17:34)
      at module.exports (/home/runner/discordjs/events/message.js:32:9)
      at Client.emit (events.js:315:20)
      at MessageCreateAction.handle (/home/runner/discordjs/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
      at Object.module.exports [as MESSAGE_CREATE] (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
      at WebSocketManager.handlePacket (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
      at WebSocketShard.onPacket (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
      at WebSocketShard.onMessage (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
      at WebSocket.onMessage (/home/runner/discordjs/node_modules/ws/lib/event-target.js:132:16)
      at WebSocket.emit (events.js:315:20)
} reason:  TypeError: Cannot read property 'voice' of null
    at Object.run (/home/runner/discordjs/commands/play.js:17:34)
    at module.exports (/home/runner/discordjs/events/message.js:32:9)
    at Client.emit (events.js:315:20)
    at MessageCreateAction.handle (/home/runner/discordjs/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (/home/runner/discordjs/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
    at WebSocket.onMessage (/home/runner/discordjs/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (events.js:315:20)

Yeah as i said that you dont use Commando

from discord-musicbot.

SudhanPlayz avatar SudhanPlayz commented on May 17, 2024

Just return on events/message.js if message channel type is dm

from discord-musicbot.

kaaax0815 avatar kaaax0815 commented on May 17, 2024

I think thats a "feature" you should put on your todo list. i think the console line would be happy xd (sorry for the bad joke)

from discord-musicbot.

SudhanPlayz avatar SudhanPlayz commented on May 17, 2024

Lmao, yea sure will do

from discord-musicbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.