Naseem
Naseem
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
?
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
can u send link of github?
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
damn any documentation available?
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
but the handlers for lavaclient and commands are same?
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
oh ok
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
yes
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
uhhh @Gino sorry if im annoying u but now im getting this err:
{
timestamp: 1701459894090,
status: 404,
error: 'Not Found',
message: 'Not Found',
path: '/loadtracks'
}
{
timestamp: 1701459894090,
status: 404,
error: 'Not Found',
message: 'Not Found',
path: '/loadtracks'
}
Here is play command code:
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
category: 'music',
data: new SlashCommandBuilder()
.setName('play')
.setDescription('Play a song!')
.addStringOption(option => option.setName('name').setDescription('Name of the song.').setRequired(true)),
run: async (client, interaction) => {
const results = await client.music.rest.loadTracks("ytsearch:kurdo business narcotic");
console.log(results)
await client.music
.createPlayer(interaction.guildId)
.connect(interaction.member.voice.channelId)
.play(results.tracks[0]);
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
category: 'music',
data: new SlashCommandBuilder()
.setName('play')
.setDescription('Play a song!')
.addStringOption(option => option.setName('name').setDescription('Name of the song.').setRequired(true)),
run: async (client, interaction) => {
const results = await client.music.rest.loadTracks("ytsearch:kurdo business narcotic");
console.log(results)
await client.music
.createPlayer(interaction.guildId)
.connect(interaction.member.voice.channelId)
.play(results.tracks[0]);
},
};
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
alr thx
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
discord.js is: 14.14.1 lavaclient: 4.1.1
22 replies
DFDimensional Fun
Created by Naseem on 12/1/2023 in #lavaclient
ReferenceError: sendWithDiscordLib is not defined
@Gino
22 replies
DFDimensional Fun
Created by Naseem on 7/28/2023 in #lavaclient
Error: Unexpected server response: 404
thx!
6 replies
DFDimensional Fun
Created by Naseem on 7/28/2023 in #lavaclient
Error: Unexpected server response: 404
oh ok
6 replies
DFDimensional Fun
Created by Naseem on 7/28/2023 in #lavaclient
Error: Unexpected server response: 404
6 replies