zekroTJA / yuri

Best soundbot in whole North Korea! Supporting hotkeys and a web interface!
MIT License
13 stars 8 forks source link

Error leaving guild channel without web interface logout #3

Closed zekroTJA closed 6 years ago

zekroTJA commented 6 years ago

Issue Type

Application

Description

Error when not logging out but leaving voice channel on guild created player and session in.

Steps to reproduce

  1. Step
    • Join channel, create player and log in to create session
  2. Step
    • Quit voice channel of guild
  3. Step
    • Reload webpanel

Logs & Screenshots

TypeError: Cannot read property 'id' of undefined
    at Websocket.app.get (/Programs/discordBots/soundBoard2/src/core/websocket.js:102:36)
    at Layer.handle [as handle_request] (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/layer.js:95:5)
    at next (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/layer.js:95:5)
    at /Programs/discordBots/soundBoard2/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/index.js:335:12)
    at next (/Programs/discordBots/soundBoard2/node_modules/express/lib/router/index.js:275:10)
    at SendStream.error (/Programs/discordBots/soundBoard2/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (events.js:160:13)