Thanks to JetBrains for providing me free license for developing my projects!
<This is an introduction>
NOT developing The Bro Bots, two Discord bots
Currently learning react ☣️
discord.js v14 music bot w/mongoDB
License: MIT License
Thanks to JetBrains for providing me free license for developing my projects!
<This is an introduction>
NOT developing The Bro Bots, two Discord bots
Currently learning react ☣️
When playing a short song in loop, there is no problem, but when playing a long song, the music player is aborted.
(after 10 ~ 30 mins)
But I don't know if this problem only happens to me.
(It seems to be a problem with ytdl-core. [version: 4.11.2])
What should i do to change the name and description of slash commands?
Also this bot is the one of the best bot I've seen.
it's do it lavalink
I was about to fix it but I saw that the problem is in your code. You updated discord.js without getting the last version of this repository, which already has all the changes correctly made
Originally posted by @elbkr in #98 (comment)
I cloned the repository again just now and typed in "npm i", but I still get the same error whenever I try to use any command?
TypeError: channel.isVoice is not a function
TypeError: channel.isVoice is not a function
at Queue.join (C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord-music-player\dist\managers\Queue.js:91:22)
at Bot.play (C:\Users\adrian\Desktop\dev\music-bot\src\player\functions\play.js:25:17)
at Play.exec (C:\Users\adrian\Desktop\dev\music-bot\src\commands\music\play.js:88:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\music-bot\src\events\interactions\slashCommands.js:15:13)
C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101
if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
^
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ChatInputCommandInteraction.reply (C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101:46)
at Bot.play (C:\Users\adrian\Desktop\dev\music-bot\src\player\functions\play.js:42:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\music-bot\src\events\interactions\slashCommands.js:15:13) {
[Symbol(code)]: 90
}
When I do any command, I get this error:
[17-08-2022 18:25:58]: [Player] Couldn't join the voice channel
TypeError: channel.isVoice is not a function
TypeError: channel.isVoice is not a function
at Queue.join (C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord-music-player\dist\managers\Queue.js:91:22)
at Bot.play (C:\Users\adrian\Desktop\dev\discord\music-bot\src\player\functions\play.js:25:17)
at Play.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\commands\music\play.js:88:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\events\interactions\slashCommands.js:15:13)
C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101
if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
^
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ChatInputCommandInteraction.reply (C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101:46)
at Bot.play (C:\Users\adrian\Desktop\dev\discord\music-bot\src\player\functions\play.js:42:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\events\interactions\slashCommands.js:15:13) {
[Symbol(code)]: 90
}
How can I fix this?
Hello! How can i add multi guild emoji support?
Ahh, I updated discord-music-player to the newest version, and it works now, ty!
Originally posted by @dxkyy in #99 (comment)
Sorry for opening up all these issues, but whenever I do /play, the bot joins the VC and then I get this error:
[18-08-2022 01:07:17]: [Player] There was an error with the music player
Invalid regular expression: missing /
[18-08-2022 01:07:17]: [Player] There was an error with the music player
Invalid regular expression: missing /
This also happens for example when I do /search. The bot then joins and I can then send the track number, but when I send the track number I get the same error again.
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_GUILD.
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_GUILD.
at Function.resolve (/home/ubuntu/discord-music/node_modules/discord.js/src/util/BitField.js:168:11)
at PermissionsBitField.has (/home/ubuntu/discord-music/node_modules/discord.js/src/util/BitField.js:60:28)
at PermissionsBitField.has (/home/ubuntu/discord-music/node_modules/discord.js/src/util/PermissionsBitField.js:92:82)
at Skip.exec (/home/ubuntu/discord-music/src/commands/music/skip.js:48:66)
at SlashCommands.exec (/home/ubuntu/discord-music/src/events/interactions/slashCommands.js:15:23)
at Bot.<anonymous> (/home/ubuntu/discord-music/src/struct/Bot.js:144:80)
at Bot.emit (node:events:513:28)
at InteractionCreate.exec (/home/ubuntu/discord-music/src/events/interactions/interactionCreate.js:15:93) at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.