#how can i fix it

1 messages · Page 1 of 1 (latest)

gloomy isle
#

I might be wrong, but the code in the error is not even the code in the first codeblock

oak night
#

yes right, error occurs in the module

....node_modules@discordjs\voice\dist\index.js:8

error location

gloomy isle
#

.joinVoiceChannel might return a promise, so you have to await it before using .subscribe()

oak night
#

i delete '.subscribe()', but i still get this error

night dew
#

Ids are strings

oak night
#

oww

#

sheeesh

#

i get this error now

guildId: channel.guild.id,
                 ^

TypeError: Cannot read properties of undefined (reading 'guild')

gloomy isle
oak night
#

hmm

chrome harbor
#

Channel should've be on cache

gloomy isle
#

Does using .fetch fixes or not the problem? Logging the channel object for us would be also useful

oak night
#

no not fixing problem

gloomy isle
#

🤦