Hello! How can i solve this [guild] problem?

...
No description
45 Replies
mute-gold
mute-goldOPā€¢3y ago
And i can't deaf my bot with moonlink.js it is broken function
fair-rose
fair-roseā€¢3y ago
@1Lucas1.apk
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Hello, could you send a script to help you better? The error comes from the pause command
mute-gold
mute-goldOPā€¢3y ago
When player doesn't exist, i get this error if i try to use pause/resume commands.
No description
mute-gold
mute-goldOPā€¢3y ago
6th line.
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Describe the error better, let's say a step by step that you did that gave this error, so I can understand a little better
mute-gold
mute-goldOPā€¢3y ago
First im restarting the my bot.
MEE6
MEE6ā€¢3y ago
GG @'Forster, you just advanced to level 1!
mute-gold
mute-goldOPā€¢3y ago
Then i try to use pause command, but u know i don't have a player at this time. Then this error...
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Aha, now I understand You can use other moonlink functions client.moon.players.has(interaction.guildId) It will return true if it has the player of that guild, if not it will return false
mute-gold
mute-goldOPā€¢3y ago
ok i got it then i have a question i can't my bot deaf.. in the document has something wrong
1Lucas1.apk
1Lucas1.apkā€¢3y ago
I remembered, setDeaf and setMute are in player.connect() parameters
mute-gold
mute-goldOPā€¢3y ago
I tried it.
1Lucas1.apk
1Lucas1.apkā€¢3y ago
I forgot to update the documentation on that part
mute-gold
mute-goldOPā€¢3y ago
No description
1Lucas1.apk
1Lucas1.apkā€¢3y ago
It didn't work did it?
mute-gold
mute-goldOPā€¢3y ago
yes it didn't work šŸ˜¦
1Lucas1.apk
1Lucas1.apkā€¢3y ago
šŸ˜” I will see the internal error ?play all i want
Blobit - Moonlink.js
added track in queue Olivia Rodrigo - All I Want (Official Video) is playing now
1Lucas1.apk
1Lucas1.apkā€¢3y ago
?eval client.moon.players.get(message.guild.id).connect(true, true)
Blobit - Moonlink.js
undefined
undefined
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Erro meu mesmo kkk my mistake
mute-gold
mute-goldOPā€¢3y ago
šŸ˜„
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Now that I realized that I didn't leave it as an object
mute-gold
mute-goldOPā€¢3y ago
Is this from Moonlink.js Rest?
No description
mute-gold
mute-goldOPā€¢3y ago
@1Lucas1.apk lol
No description
mute-gold
mute-goldOPā€¢3y ago
selfDean
1Lucas1.apk
1Lucas1.apkā€¢3y ago
?eval client.moon.players.get(message.guild.id).connect({ setDeaf: true, setMute: false })
Blobit - Moonlink.js
undefined
undefined
1Lucas1.apk
1Lucas1.apkā€¢3y ago
now yes Kkkk, Sometimes I change letters Look, I don't know ?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] })
Blobit - Moonlink.js
Promise { <pending> }
Promise { <pending> }
Publicado
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Updated šŸ™‚ @'Forster Now it's okay
mute-gold
mute-goldOPā€¢3y ago
ok then i found one more mistake we can't get requester its undefined all time
MEE6
MEE6ā€¢3y ago
GG @'Forster, you just advanced to level 2!
mute-gold
mute-goldOPā€¢3y ago
and getting player.queue.first() is not include now playing.
1Lucas1.apk
1Lucas1.apkā€¢3y ago
it's normal, the current stays in the current player.current It shows current
mute-gold
mute-goldOPā€¢3y ago
it shows current but player.current giving null? oh lol my misstake
1Lucas1.apk
1Lucas1.apkā€¢3y ago
?play all i want
Blobit - Moonlink.js
added track in queue Olivia Rodrigo - All I Want (Official Video) is playing now
1Lucas1.apk
1Lucas1.apkā€¢3y ago
?eval client.moon.players.get(message.guild.id)
Blobit - Moonlink.js
MoonPlayer {
guildId: '990369410344701964',
textChannel: '1069233824120176680',
voiceChannel: '1057326555937906859',
playing: true,
connected: true,
paused: null,
loop: null,
current: {
position: 24960,
title: 'Olivia Rodrigo - All I Want (Official Video)',
author: 'DisneyMusicVEVO',
url: 'https://www.youtube.com/watch?v=OOgvDiXl6hA',
identifier: 'OOgvDiXl6hA',
duration: 185000,
isSeekable: true,
track: 'QAAAlQIALE9saXZpYSBSb2RyaWdvIC0gQWxsIEkgV2FudCAoT2ZmaWNpYWwgVmlkZW8pAA9EaXNuZXlNdXNpY1ZFVk8AAAAAAALSqAALT09ndkRpWGw2aEEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1PT2d2RGlYbDZoQQAHeW91dHViZQAAAAAAAAAA',
source: 'youtube',
requester: undefined,
thumbnail: 'https://img.youtube.com/vi/OOgvDiXl6hA/sddefault.jpg'
},
queue: MoonQueue { guildId: '990369410344701964' },
filters: MoonFilters {
guildId: '990369410344701964',
status: {
nightcore: false,
vaporweve: false,
bassboost: false,
pop: false,
soft: false,
treblebass: false,
eightD: false,
karaoke: false,
vibrato: false,
tremolo: false,
custom: null
}
}
}
MoonPlayer {
guildId: '990369410344701964',
textChannel: '1069233824120176680',
voiceChannel: '1057326555937906859',
playing: true,
connected: true,
paused: null,
loop: null,
current: {
position: 24960,
title: 'Olivia Rodrigo - All I Want (Official Video)',
author: 'DisneyMusicVEVO',
url: 'https://www.youtube.com/watch?v=OOgvDiXl6hA',
identifier: 'OOgvDiXl6hA',
duration: 185000,
isSeekable: true,
track: 'QAAAlQIALE9saXZpYSBSb2RyaWdvIC0gQWxsIEkgV2FudCAoT2ZmaWNpYWwgVmlkZW8pAA9EaXNuZXlNdXNpY1ZFVk8AAAAAAALSqAALT09ndkRpWGw2aEEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1PT2d2RGlYbDZoQQAHeW91dHViZQAAAAAAAAAA',
source: 'youtube',
requester: undefined,
thumbnail: 'https://img.youtube.com/vi/OOgvDiXl6hA/sddefault.jpg'
},
queue: MoonQueue { guildId: '990369410344701964' },
filters: MoonFilters {
guildId: '990369410344701964',
status: {
nightcore: false,
vaporweve: false,
bassboost: false,
pop: false,
soft: false,
treblebass: false,
eightD: false,
karaoke: false,
vibrato: false,
tremolo: false,
custom: null
}
}
}
1Lucas1.apk
1Lucas1.apkā€¢3y ago
?eval client.moon.players.get(message.guild.id).current
Blobit - Moonlink.js
{
position: 39960,
title: 'Olivia Rodrigo - All I Want (Official Video)',
author: 'DisneyMusicVEVO',
url: 'https://www.youtube.com/watch?v=OOgvDiXl6hA',
identifier: 'OOgvDiXl6hA',
duration: 185000,
isSeekable: true,
track: 'QAAAlQIALE9saXZpYSBSb2RyaWdvIC0gQWxsIEkgV2FudCAoT2ZmaWNpYWwgVmlkZW8pAA9EaXNuZXlNdXNpY1ZFVk8AAAAAAALSqAALT09ndkRpWGw2aEEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1PT2d2RGlYbDZoQQAHeW91dHViZQAAAAAAAAAA',
source: 'youtube',
requester: undefined,
thumbnail: 'https://img.youtube.com/vi/OOgvDiXl6hA/sddefault.jpg'
}
{
position: 39960,
title: 'Olivia Rodrigo - All I Want (Official Video)',
author: 'DisneyMusicVEVO',
url: 'https://www.youtube.com/watch?v=OOgvDiXl6hA',
identifier: 'OOgvDiXl6hA',
duration: 185000,
isSeekable: true,
track: 'QAAAlQIALE9saXZpYSBSb2RyaWdvIC0gQWxsIEkgV2FudCAoT2ZmaWNpYWwgVmlkZW8pAA9EaXNuZXlNdXNpY1ZFVk8AAAAAAALSqAALT09ndkRpWGw2aEEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1PT2d2RGlYbDZoQQAHeW91dHViZQAAAAAAAAAA',
source: 'youtube',
requester: undefined,
thumbnail: 'https://img.youtube.com/vi/OOgvDiXl6hA/sddefault.jpg'
}
mute-gold
mute-goldOPā€¢3y ago
why requester is undefined
1Lucas1.apk
1Lucas1.apkā€¢3y ago
Parameter to put user I haven't made a function for this yet, but there's a way to put it
let track = res.tracks[0]
track.requester = interaction.user
player.queue.add(track)
let track = res.tracks[0]
track.requester = interaction.user
player.queue.add(track)

Did you find this page helpful?