Relative Content

Tag Archive for node.jsdiscorddiscord.js

discord-player track instantly ending after starting (only sometimes)

I am having a lot of trouble with this bug, and is almost impossible to track through error-tracking. The track begins, and as soon as it begins, it will end (only sometimes). This is not track-specific and can happen at seemingly random times when the /play command executes. Any help?

Node/Discord.js creating a Bot to automatic remove members from threads

Another day another project. Today I am using Node.js to create a Discord bot to automatically remove members from a Discord thread or post who lost the “view channel” permission to said category or parent channel.
Normally you would see a strike-through in the list of participants in the channel, then rightclick on the member and choose “Remove x from thread”. Now the bot has to do this from ALL existing threads.

node.js bot is not playing sound

I have tried to make a simple discord bot to play music from youtube using ytdl and yt-search, but for some reason, after running the command to play the video, the bot connects to a channel, and is just… silent, no errors in the console, nothing, the bot returns the function.