168 Replies
conscious-sapphire•3y ago
@1Lucas1.apk
It doesn't have to be privatized, right?
I'll do some research, I'll be back in a little while, because this class has to be private
Vê se você encontra algum erro igual em algum site
@MOTO
conscious-sapphire•3y ago
Tá
Tava configurando eslint
conscious-sapphire•3y ago
Ata
No máximo que eu achei

Mais não é isso
conscious-sapphire•3y ago
Eu achei um negócio
O que?

conscious-sapphire•3y ago

Não entendi isso 😔
conscious-sapphire•3y ago
Vc n pode definir objetos que já tão definidos
Só tipo definir em uma variável e enviar pela classe
Eu não entendi muito mais parece isao
^eval class A {
construtor (a) {
this.a = true
}
}
let bunda = new A("cu")
cu
Verificando.../executado...
MotoG
conscious-sapphire•3y ago
^eval class A {
construtor (a) {
this.a = true
}
}
let bunda = new A("cu")
bunda
Sucesso
MotoG
Código<:blurple_settings:904187256313626684> Saída
conscious-sapphire•3y ago
Agr me deixe ir 😏
Esse erro não é isso
O attemptConnection e pra tentativa de conectar na call
Ele faz request 2 vezes
Primeira com uma informação
A segunda com as informações dos dois eventos
Ai ele manda pra lavalink
Ele tá privatizado
conscious-sapphire•3y ago
Uai oq vc quer q eu faça
Não entendi muito bem
Me ajuda minino
conscious-sapphire•3y ago



conscious-sapphire•3y ago
Se vc n sabe imagine eu
@Nah are these errors returned naturally or do you use eslint?
conscious-sapphire•3y ago
Pra mim isso parece erro q o objeto sla
Não é definido
É um método
#attemptConnection(id)
Ele pega informações
Do map
E tenta
Só que esse erro não achei em lugar algum
conscious-sapphire•3y ago
Tá cheio desse erros
Será porque a forma está organizada tipo, privados em baixo em cima os públicos?
Não acho que não
conscious-sapphire•3y ago
Acho q é isso
Privados com públicos funcionam juntos?
Não porque o this é global dentro dele
conscious-sapphire•3y ago
Então
^eval this
Sucesso
1Lucas1.apk
Código<:blurple_settings:904187256313626684> Saída
conscious-sapphire•3y ago
Eu sei
plain-purpleOP•3y ago
i haven't use eslint
plain-purpleOP•3y ago

conscious-sapphire•3y ago
Ele não usa
Nossa ele tá achando um monte de bugs
Contrata ele pra ser beta tester
How does your project find submissive errors?
conscious-sapphire•3y ago
Mais esse erro não é ocasionado pela lavalink?
plain-purpleOP•3y ago
you mean this error?
Yes
plain-purpleOP•3y ago
this error occurs by the bot joining the voice channel.
I use this code for my bot to connect the vc cuz i found I cannot connect the bot to vc via
player.connect()
conscious-sapphire•3y ago
Pq vc não ativa o debug do djs @1Lucas1.apk
GG @MOTO, you just advanced to level 4!
plain-purpleOP•3y ago
idk why discord has no actions with this

GG @Nah, you just advanced to level 3!
plain-purpleOP•3y ago
when i try yesterday, even joinVoiceChannel() not works for my bot
but it works today
Now that I'm really lost
g!eval this
(๑•﹏•)
<:s_blob_mu:972957413412065300> › Resultado.
<:s_blob_cookie:973030186490667108> › Código.
<:s_blob_pat:972983035014303784> › Saída.
g!eval client
(๑•﹏•)
<:s_blob_mu:972957413412065300> › Resultado.
<:s_blob_cookie:973030186490667108> › Código.
<:s_blob_pat:972983035014303784> › Saída.
<:s_blob_cookie:973030186490667108> › Restante.
conscious-sapphire•3y ago
discord deve tá retornando um erro será?
Como 3 bots não iriam receber o mesmo erro
TypeScript o global testei nele já
conscious-sapphire•3y ago
Servidor
plain-purpleOP•3y ago
i tried to console log on updateVoiceState
and it logged the
VoiceServer only without VoiceStateconscious-sapphire•3y ago
Pra mim parece erro do discord
He tries 2 times
GG @1Lucas1.apk, you just advanced to level 6!
On the first attempt, it only goes with one piece of information, so it doesn't continue
On the second, he goes with the two pieces of information, then he sends
but I don't know how to fix this error, I didn't find anything related to it, the errors that appear on the internet are objects
plain-purpleOP•3y ago
This error prevents the function from being called successfully
What do you think it is?
I will try to deprivatize it
plain-purpleOP•3y ago
it can call now after edited out of class, but this.nodes is undefined
?play all i want
added track in queue
Olivia Rodrigo - All I Want (Official Video) is playing now
plain-purpleOP•3y ago
!
commonjs
?eval require('./@Rest/MoonlinkUtils.js')
:Staricon: @1Lucas1.apk Adicionei Pharrell Williams - Happy (Video), A fila de espera!
Playback finished
<:Square_Ownership:1016806781835554836> Reproduzido: Pharrell Williams - Happy (Video)
TypeScript
?eval require('./@Rest/MoonlinkUtils.js').map
?eval require('./@Rest/MoonlinkUtils.js').db
?eval client.moon
?eval client.moon.nodes.all
?eval client.moon.nodes
oops, a mistake
Player.Destroy
Publicado
plain-purpleOP•3y ago
JSON.parse(sPayload) is missed
@MOTO this was the same error with yours
plain-purpleOP•3y ago
finally i know why player.connect() not working
Edit documentation soon
AttemptConnect is still giving error?
plain-purpleOP•3y ago
yes
plain-purpleOP•3y ago
maybe i try to downgrade to v1.0.6?

These files are old
luyz is now in TypeScript
put console.log(this.#nodes)
plain-purpleOP•3y ago

nodeCreate é emitido pela moonlink?
plain-purpleOP•3y ago

plain-purpleOP•3y ago
that a event listener

Então ele tá recebendo node
so he is receiving
plain-purpleOP•3y ago
yes
?play all i want
plain-purpleOP•3y ago
but updateVoiceState() cannot access this.nodes
I'm deprivatizing these parts
?play all i want
plain-purpleOP•3y ago
let me update it

plain-purpleOP•3y ago
time for me to rest, i will be back tomorrow

?play all i want
..
?play all i want
?play all i want
?play all i want
added track in queue
Olivia Rodrigo - All I Want (Official Video) is playing now
Foi publicado nova versão
New version published
plain-purpleOP•3y ago
I tried to run it on sandbox but the error still exist

I don't understand why it's giving this error
I will reviewI will reviewI will review all javascript documentation of classes
Until I find this error
plain-purpleOP•3y ago
thx
I remembered a function that I had fixed because it wasn't receiving this, it was the players
I already know how to fix
a solution, make it static
?play all i want
GG @1Lucas1.apk, you just advanced to level 7!
?play all i want
plain-purpleOP•3y ago
have a try

plain-purpleOP•3y ago
oh i think why i have no error
now it's giving error in other bots
plain-purpleOP•3y ago
im using 247 script which auto restart
so i cannot see the error
plain-purpleOP•3y ago

You have to call the class and send this along, I'll finish making it public here
plain-purpleOP•3y ago
oh i forgot
?play all i want
added track in queue
Olivia Rodrigo - All I Want (Lyrics) is playing now
I think this should solve the problem
plain-purpleOP•3y ago
it cannot read
this.nodes now
plain-purpleOP•3y ago
?eval const Discord = require('discord.js')
const row = new Discord.ActionRowBuilder()
.addComponents(
new Discord.ButtonBuilder()
.setCustomId('publish_npm')
.setLabel('Publish')
.setStyle(Discord.ButtonStyle.Danger),
);
message.reply({ components: [row]})
Publicado
Publicado
@Nah install the new version and test it
plain-purpleOP•3y ago
error

Line 56, 65
You change this by manager
There is a variable that stores this
plain-purpleOP•3y ago
ye
plain-purpleOP•3y ago
both
this.node and this.sendWs undefined
it wasn't this this, it was the lines I put

change the this of attemptConnection
plain-purpleOP•3y ago
oh
change this by manager
plain-purpleOP•3y ago
testing
plain-purpleOP•3y ago
it works now but voiceState[guildId].session_id not found

plain-purpleOP•3y ago
it seems like the bot cannot received the event when the bot connect to the voice channel

map comes from utils, so it must be undefined
plain-purpleOP•3y ago
i tried to log that

GG @Nah, you just advanced to level 5!
the bottom one also puts manager
line 67
plain-purpleOP•3y ago
the event cannot be processed cuz line 59 blocking by undefined
reading by
this.clientId is undefined
but reading as manager.clientId is fine
problem fixed.i will change us main codes
plain-purpleOP•3y ago
oops, that my problem
😔
kkkk
It didn't generate another problem, did it?
Players were organized for this kind of thing because they are in different blocks
plain-purpleOP•3y ago
im fixing my problem
?play all i want
added track in queue
Olivia Rodrigo - All I Want (Lyrics) is playing now
?eval client.moon.this
?eval this
?eval global
plain-purpleOP•3y ago
no more problems now
:)
Have a great day, I'm going to do the dishes now 😔
plain-purpleOP•3y ago
have a great day
soon I will post the changes, finish the documentation events part as well
plain-purpleOP•3y ago
and now im going to fix that how discord not sending the voice to my headphones but speaker
that was my mistake
setDeaf setMute is placed in player.connect()
plain-purpleOP•3y ago
no not that problems
Discord sending the sounds to my speaker
and my default output is my headphone
:)
plain-purpleOP•3y ago
I think your docs need to update again

plain-purpleOP•3y ago
playee ...
and <player>.disconnect(); or if(!<player>.connected) ?

i didn't update ksksk, i took infos, i changed everything for other parts
?filter
🎛️ Available Filters
reset, bass, nightcore, vaporwave, pop, soft, treblebass, 8d, karaoke, vibrato, tremolo, distortion?filter bass
🎛️ Applied filter: bass
?filter bass
🎛️ Applied filter: bass
:duke: because I'm in a post