Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
63 views

Discord bot is not playing given URL

I am working on a Discord music bot powered by discord-player v6.6.10 and discord.js v14.15.3. Currently, when the user executes the /play command, the bot properly searches for the given URL, grabs ...
itz_lexiii_'s user avatar
0 votes
0 answers
163 views

The bot connects but does not play music. Discord.js V14

I wanted to make myself a music bot using ytdl in Discord.js V14, but for some reason my player does not accept activity and goes into autopaused. Here is my code for the Play command: const { Client, ...
Ardescoin's user avatar
0 votes
0 answers
27 views

discord music bot is connecting and accepting the url but its giving me no audio

import discord import youtube_dl from discord.ext import commands from youtube_search import YoutubeSearch from typing import Union intents = discord.Intents.all() #(commands) bot = commands.Bot(...
idkwhattfimdoing's user avatar
0 votes
1 answer
59 views

Python bot does not read messages

Whatever I do my bot simply refuses to read any messages. Messages do not appear in the run menu. import discord from discord.ext import commands import youtube_dl intents = discord.Intents.default()...
Krutelik TM's user avatar
0 votes
1 answer
168 views

Discord js music player bot suddenly leaves

So I made a music bot for discord js that uses discord player package. The command runs perfectly but in the middle song suddenly stops I tried searching everywhere nothing works and i think its an ...
ImK's user avatar
  • 1
0 votes
1 answer
313 views

I cant seem to sync my / commands to discord [duplicate]

I asked ChatGPT to generate some code for a Discord bot that uses commands prefixed with /. It came up with: import discord import asyncio import aiohttp from discord import Object from discord.ext ...
Bubster's user avatar
0 votes
0 answers
109 views

Commands not working, and trying to add a queue/ability to add playlists

I'm trying to make a music bot for discord, everything appears to be working. It's turning on and detects the prefix, but when I do "?join" so it joins the Voice Channel it tells me "...
Him's user avatar
  • 17
0 votes
1 answer
514 views

Discord.py music bot Wavelink error: `TypeError: Type must meet VoiceProtocol abstract base class.`

The print: 0|Runa | <class 'wavelink.player.Player'> The error: 0|Runa | vc:wavelink.Player=await ctx.author.voice.channel.connect(cls= wavelink.Player) 0|Runa | File "/...
Fawn Nivalen's user avatar
0 votes
1 answer
227 views

Discord Music Bot: Cannot read properties of undefined

I have completed my bot. When I try to run a command such as /play (LINK) it is stuck thinking. After a brief moment the bot will return this error in the console and stops running: TypeError: Cannot ...
Tyler Lanier's user avatar
0 votes
1 answer
400 views

discord.py music used to work but now im getting an error

im not sure what this error is or how to fix it. is it possible to fix or should i just not try. i searched for this since other people had the same issue, but nothing helped my case. A while back ...
humor 0150's user avatar
1 vote
1 answer
5k views

TypeError: Cannot read properties of null (reading 'play')

I am trying to create a discord bot for the first time in my life so I would like to say that my code is far from being perfect and optimized ^^ ' I have a problem, TypeError: Cannot read properties ...
DONOPOTTER's user avatar
1 vote
1 answer
2k views

SyntaxError: 'await' outside async function

So i'm trying to add a queue to my bot. but it gives me the error in the title. This is the command to add something to the queue: @commands.command() async def remove(self, ctx, number): ...
vixitu's user avatar
  • 43
2 votes
1 answer
730 views

Discord.py doesn't play audio

Basically I made a bot that just simply plays music, I made a command that plays the song so you do ?play [url of song] and it will play, now I'm working on a ?search command that you can enter the ...
vixitu's user avatar
  • 43
1 vote
1 answer
705 views

Discord.py: How can I make a queue for a discord music bot?

I want to extend my play method so I can queue multiple songs. I tried to create a list and append songs everytime play is used, but I don't know how to start playing a song once a song has finished ...
Superhacker's user avatar
1 vote
1 answer
4k views

Discord.js v13, @discordjs/voice Play Music Command

This is my code, The command executes perfectly, The bot joins the voice channel and also sends the name of the song its about to play, but it doesnt play the song in the voice channel. This is my ...
Wari's user avatar
  • 11

15 30 50 per page