Maxzie
Maxzie
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
I'll try it tomorrow because I have to go soon
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
Thanks
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
i only know html javascript and i forgot most of it 💀
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
Wait a second, how do I import it again?
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
I’ll try
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
Code:
const express = require("express");
const app = express()

app.listen(3000, () => {
console.log("Project started!");
})

app.get("/", (req, res) => {
res.send("Hello world!");
})

const Discord = require("discord.js");
const client = new Discord.Client({ intents: ['Guilds','GuildMessages','MessageContent', 'GuildMessageReactions', 'GuildVoiceStates'] })


client.on("messageCreate", message => {
if(message.content === "test") {
message.channel.send("Now playing some awesome background music")
message.channel.send("Music: ???")
const connection = joinVoiceChannel({
channelId: "1144178228550959184",
guildId: "760830214564610048",
adapterCreator: channel.guild.voiceAdapterCreator,
});
}
})


client.login(process.env.token);
const express = require("express");
const app = express()

app.listen(3000, () => {
console.log("Project started!");
})

app.get("/", (req, res) => {
res.send("Hello world!");
})

const Discord = require("discord.js");
const client = new Discord.Client({ intents: ['Guilds','GuildMessages','MessageContent', 'GuildMessageReactions', 'GuildVoiceStates'] })


client.on("messageCreate", message => {
if(message.content === "test") {
message.channel.send("Now playing some awesome background music")
message.channel.send("Music: ???")
const connection = joinVoiceChannel({
channelId: "1144178228550959184",
guildId: "760830214564610048",
adapterCreator: channel.guild.voiceAdapterCreator,
});
}
})


client.login(process.env.token);
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
I tried it, and it still doesn't work. Error:
/home/runner/BackgroundMusicBotRepl-1/index.js:20
const connection = joinVoiceChannel({
^

ReferenceError: joinVoiceChannel is not defined
at Client.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/index.js:20:24)
at Client.emit (node:events:513:28)
at Client.emit (node:domain:489:12)
at MessageCreateAction.handle (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/actions/MessageCreate.js:28:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
at WebSocketManager.emit (/home/runner/BackgroundMusicBotRepl-1/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31)
at WebSocketShard.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/node_modules/@discordjs/ws/dist/index.js:1173:51)
repl process died unexpectedly: exit status 1
/home/runner/BackgroundMusicBotRepl-1/index.js:20
const connection = joinVoiceChannel({
^

ReferenceError: joinVoiceChannel is not defined
at Client.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/index.js:20:24)
at Client.emit (node:events:513:28)
at Client.emit (node:domain:489:12)
at MessageCreateAction.handle (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/actions/MessageCreate.js:28:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
at WebSocketManager.emit (/home/runner/BackgroundMusicBotRepl-1/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:31)
at WebSocketShard.<anonymous> (/home/runner/BackgroundMusicBotRepl-1/node_modules/@discordjs/ws/dist/index.js:1173:51)
repl process died unexpectedly: exit status 1
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
Oh, okay.
18 replies
DIAdiscord.js - Imagine an app
Created by Maxzie on 8/26/2023 in #djs-questions
Can't join voice channel
Documentation: https://discordjs.guide/voice/voice-connections.html#voice-connections Errors: No errors, but bot refuses to respond. Code:
const express = require("express");
const app = express()

app.listen(3000, () => {
console.log("Project started!");
})

app.get("/", (req, res) => {
res.send("Hello world!");
})

const Discord = require("discord.js");
const client = new Discord.Client({ intents: ['Guilds','GuildMessages','MessageContent', 'GuildMessageReactions'] })
const { ActivityType } = require('discord.js');

client.on("messageCreate", message => {
if(message.content === "test") {
message.channel.send("Now playing some awesome background music")
message.channel.send("Music: ???")
const connection = joinVoiceChannel({
channelId: 1144178228550959184,
guildId: 760830214564610048,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}
})


client.login(process.env.token)
const express = require("express");
const app = express()

app.listen(3000, () => {
console.log("Project started!");
})

app.get("/", (req, res) => {
res.send("Hello world!");
})

const Discord = require("discord.js");
const client = new Discord.Client({ intents: ['Guilds','GuildMessages','MessageContent', 'GuildMessageReactions'] })
const { ActivityType } = require('discord.js');

client.on("messageCreate", message => {
if(message.content === "test") {
message.channel.send("Now playing some awesome background music")
message.channel.send("Music: ???")
const connection = joinVoiceChannel({
channelId: 1144178228550959184,
guildId: 760830214564610048,
adapterCreator: channel.guild.voiceAdapterCreator,
});
}
})


client.login(process.env.token)
18 replies