djs-questions

9202 threads · Page 98 of 185

/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}' 8 messages
hallow marlin I'm having difficulty pinpointing which bracket is causing a syntax error in my code. I've tried various fixes, but I ca...
bot perms 11 messages
dusky tusk anyone knows why is this not working? i don't have a handler, its on the start of the code right above the commands ``...
bulk delete 2 messages
night needle I am using bulk delete and if there only 5 messages in the channel but I try to delete 100 it sends unkown message error...
Missing Access Error 7 messages
fathom cliff I get this error: pretty sure it's from this code: ``` client.channels.fetch(BANKLOGCHANNEL).then(channel => { ...
It does not read the ready.js module when it is in the events folder. 170 messages
woeful plaza I am not reading the ready.js file that is inside the events folder, which is marked to be read. I need help please
How to manage channel and role permissions for context menu commands ? 8 messages
worthy veldt Hello ! I'm sorry if that's quite a beginner question but I'm trying to set some channel and role permissions for a cont...
Button confirmation system 7 messages
drowsy crescent Hey, im trying to make a bot where when you click on a button the bot replies with another two buttons, so that you can ...
InteractionCreate.js / deploy-command.js 11 messages
dusk violet so i put them both into deploy-commands.js right, https://pastebin.com/YkXsdYic and this is what my interactionCreate....
All events running twice 19 messages
wooden dawn Running locally, the same code for two bots. One is the prod bot and one is dev. Dev bot seems to be running twice. Note...
how do you modularize your subcommands so their implementation is in different files? 26 messages
light elk can someone link me to a resource? https://discordjs.guide/slash-commands/advanced-creation.html#subcommands i understan...
embeds[0].description[BASE_TYPE_REQUIRED]: This field is required V14 14 messages
tribal cave const banEmbed = { "content": "", "tts": false, "embeds": [ ...
Slash Command Parsing 8 messages
lucid dagger Good morning, afternoon, and night to those it applies to. I'm attempting to make a slash command that can take a rather...
Make a website interact with discord 18 messages
cosmic wraith Hi, is it possible to make a website that interact with discord realtime, such as chatting, send file without widget
Module not found: Can't resolve 'worker_threads' 15 messages
frank niche ```js ./node_modules/@discordjs/ws/dist/index.js:113:0 Module not found: Can't resolve 'worker_threads' https://nextjs....
partial channels 5 messages
hollow zinc i didnt get an answer in <#824411059443204127> so ill ask here if i have the Channel partial but have the Guilds intent,...
UND_ERR_CONNECT_TIMEOUT 3 messages
dark dawn I am getting this error, my bot was working fine a week ago when I was working on it. ```node:internal/process/promises:...
Buttons working on past activities 16 messages
rain scroll Hey everyone. I'm making an interaction with an embed and buttons. The problem is, when a new interaction is called, the...
embed limits - what happens when they're reached/exceeded? 2 messages
nocturne garnet What happens when the embed limits are exceeded? Will the embed be truncated, or will it just throw an error message whe...
986538542350086175
interaction user export 2 messages
frigid copper I made private market bot. if I want to sell something use /sell and put data then bot will send data with embed and buy...
How do i get the current voice topic from a voice channel id? 3 messages
signal mist How do i get the current voice topic from a voice channel id?
v13.6.0 djs - getting cache error 36 messages
rancid shuttle I couldn't find it when I looked in the library. what should i change here?
how do I change the topic of stage Instances in the scene channel? 2 messages
grand pier there is a channel this is a scene it has stage Instances set how to change the topic for this stage Instances the chann...
connect two commands 12 messages
dense nimbus the Hi, I've built two separate commands. one that generates image from text input, and the other one generates video fr...
998292157150535700
Discord JS music playback via ffmpeg on stage 4 messages
grand pier I understand that in ffmpeg I pass the path to the file and how do I redirect the music playback stream to the voice of ...
How do I check that the bot is connected to the stage and releases on it? 5 messages
grand pier How do I check that the bot is connected to the stage and releases on it? To avoid catching an exception when connecting...
Inline field title 5 messages
grand pier Hi, I want to make an Inline Title in my Embed object, as in the example of one of my kicks with a timeout error, what c...
Global commands push cause dev/local commands guild to have duplicates 7 messages
winged dragon Hello, I'm currently trying to setup a system where in development I run local commands, but for production I global dep...
TypeError 27 messages
hallow marlin I am currently on a discord music bot which has a 247 command and for some reason the bot just times out after few hours...
The bot does not read the command although it does appear in the slash bar 60 messages
woeful plaza Hello, I am creating commands for my bot, but I do not know what happens that although the code is 100% right, there is ...
Permission system not working 26 messages
rare reef Hello, I'm currently coding a steal command where you are able to add emojis. But the Permission system isnt working... ...
Discord bot not starting even tho code hasn't been changed for a long time 27 messages
alpine holly Is this a api bug or is it just that i screwed up my code? It worked a bit ago but then i added a file and then it would...
Modal input types 5 messages
red gyro How many types of inputs can we have in Discord modals? I know of short and paragraph text inputs. But can we have dropd...
Send message to channel using channel ID 3 messages
spark bison Hello. I need some help with getting my bot to send a message to a specific channel. The idea is to eventually replace t...
Message Collector Filter not working 10 messages
gusty thistle The filter is not working for some reason ```js console.log(codeValue); const filterDelete = msg => msg.author.id === u...
connection_timeout when using [Register a slash command against the Discord API] 's code 21 messages
little turret ok, so i m just getting started in doing discord, i open the discord.js, followed the instructions to npm installed the ...
Invalid body form Error 7 messages
signal cape Im making a counting command that allows you to set up the command in any channel you like. However, a 'invalid Body For...
channel.messages.fetch is giving messages outside the after/before range 4 messages
digital nova I am encountering an issue where ```ts const messages = await channel.messages.fetch({ ...
Get a list of all mutual severs 24 messages
frosty mulch I'd like to get a list of every server that the bot shares with a user. I've looked around here and tried things like `c...
Multiple options but only one can be used 2 messages
opal breach Is it possible to have multiple options but only one can selected/used, kind of like subcommands, but the subcommand tak...
channel filter 5 messages
dusky tusk so im updating to v14.13.0 and im having problem with the serverinfo command i had this ```js (`:speech_balloon: Channe...
key system 2 messages
livid heron How can I do key-api system?
Button that opens a DM 8 messages
rain pine Hi, I've been wondering if it's possible to create a button in DMs that-- once pressed --will create a direct message ch...
The ID is displayed instead of the user. 5 messages
tender sable The bot creates an Embed with a new member and in the line with a link to the user ".setDescription(`We have ${member.us...
Slash commands: choice options limit 6 messages
wet silo Hi, what's the limit of choices in .setChoices please ? I need to place 57 choices but i don't know what's the limit so ...
Webhook not sending 16 messages
cold folio This is compiled Typescript, but im just lost on where the issue is... my console.log()s arent passing the hook.send() a...
Modal Submissions aren't working 11 messages
full folio Code: ```js client.on("interactionCreate", async (interaction) => { if (!interaction.isModalSubmit()) return; con...
create a SlashCommandBuilder 1 messages
sweet light i tried: ```js new Discord.SlashCommandBuilder() .setName('ping') .setDescription('Replies with Pong!'); bot.on('i...
Cannot read properties of null. 3 messages
last wagon ```js const { SlashCommandBuilder, PermissionsBitField, EmbedBuilder } = require('discord.js'); const warningSchema = re...
Issues with two collectors 4 messages
topaz mirage Howdy, I have a parent interaction with buttons and what not. I have another interaction that responds to the buttons wi...
How do I provide a variable for my interactionCreate event in another file? 6 messages
worn yoke archive "getdata.js" ```js async run({client, interaction, options}){ const filtered = choicesUsers.filter(...