Closed BallisticOK closed 2 years ago
Where does the error occurre? Can I see the full stack trace?
this is my hole error
TypeError: Cannot read property 'options' of undefined
at MessagePayload.resolveData (/home/container/node_modules/discord.js/src/structures/MessagePayload.js:166:30)
at Object.send [as channel] (/home/container/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:172:61)
at Player.
You are missing #send()
method after queue.data.channel
.
ok give sec
i got
TypeError: queue.data.channel.send is not a function
at Player.
.on('songFirst', (queue, song) =>
queue.data.channel.send({ embeds: [new MessageEmbed().setColor('#0099ff').setTitle(song + ' is now playing!')]}))
What js queue.data.channel?
idk im trying to fix up my bot after my dev left
but if your talking about this
let queue = client.player.createQueue(message.guild.id, { data: { channel: message.channel.send, }}); then that
remove send at the end
ok give sec
it now cant join the VC and i get
reject Promise {
[
{
status: 'connecting',
adapter: [Object],
networking: [Networking]
},
{ status: 'ready', adapter: [Object], networking: [Networking] }
]
} AbortError: The operation was aborted
at abortListener (node:events:842:14)
at EventTarget.
ok so i got it to play and join the VC but i still get this
reject Promise { [ { status: 'connecting', adapter: [Object], networking: [Networking] }, { status: 'ready', adapter: [Object], networking: [Networking] } ] } AbortError: The operation was aborted at abortListener (node:events:842:14) at EventTarget.<anonymous> (node:events:878:47) at EventTarget.[nodejs.internal.kHybridDispatch] (node:internal/event_target:460:20) at EventTarget.dispatchEvent (node:internal/event_target:405:26) at abortSignal (node:internal/abort_controller:98:10) at AbortController.abort (node:internal/abort_controller:123:5) at entersState (/home/container/node_modules/discord-music-player/node_modules/@discordjs/voice/dist/index.js:2004:11) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Queue.join (/home/container/node_modules/discord-music-player/dist/managers/Queue.js:130:26) at async Object.run (/home/container/commands/music/play.js:62:13) at async Query.<anonymous> (/home/container/events/messageCreate.js:173:4) { code: 'ABORT_ERR' }
I'm getting TypeError: Cannot read property 'options' of undefined on
.on('songFirst', (queue, song) => queue.data.channel({ embeds: [new MessageEmbed().setColor('#0099ff').setTitle(song + ' is now playing!')]}))