djs-questions

13317 threads · Page 115 of 267

What is the difference between autocomplete and string input options? 8 messages
slate basalt I'm kinda confused, how does autocomplete differ from normal string input options? If I understand correctly it is able ...
Emitter Not Firing 44 messages
dawn mica I'm currently using the `voiceStateUpdate` event emitter, and I believe I've come across a problem. When a user leaves t...
How can I retrieve messages from a channel with a script 3 messages
jagged geode I need to retrieve messages from a channel that only my discord client has access to, my bot does not have access to it
i need help to make it work. 4 messages
hearty wave i need help to make it work. https://drive.google.com/file/d/143vhAo3gx3IOuFPq4UAOEAhBtZ0RHc8L/view?usp=sharing
can someone check my bot file and fix some errors? thank you so much dms me 2 messages
Can you help me? 3 messages
hearty wave I'm learning to code a bot, can someone help me, if you're bothered, I'm sorry
are the isCommand() is isText() etc, functions are going to get deprecated? 41 messages
hollow sandal i recall seeing this somewhere, but either im going crazy and i can't find it anywhere.
Discord bot not playing audio 5 messages
shrewd magnet Hey everyone, i just created my first discord music bot (or did my best attempt since i'm very new to discord.js or jav...
Help on code 5 messages
steel rampart Hello! New bot developer here! Can someone help me on how to make a level system? I can't seem to figure it out.. And i ...
Problem with oldMessage 2 messages
vital scarab Please tell me what to do. In Events.MessageUpdate oldMessage gives me a message in small letters, although I wrote in c...
user undefined 38 messages
torpid slate I am encounting following error: `TypeError: Cannot read properties of undefined (reading 'user')` Here is the code: ``...
Bot works on windows, but not on ubuntu. 29 messages
blissful holly I am following the tutorial for slash commands and have copied exactly what is in the documentation. When running the /u...
cmd not working after 1st time 27 messages
failed to fetch user guilds 9 messages
can someone help me with this doubt 6 messages
nimble wolf is there any way for me to link the slashcommands with the language of the person disagrees, example command /criar in p...
500 on editing thread parent interaction reply 10 messages
hushed void Hey there. I'm getting Internal Server Errors when attempting to edit an interaction response that is now the parent me...
Lightweight PermissionsBitField package 10 messages
rare wasp Hey! I want to use the PermissionsBitField class in an API of mine, without having to import all of DiscordJS. I did som...
Why do I have my commands twice? 16 messages
Discriminator showing up as #0 5 messages
polar kiln I have a dashboard for my discord bot and I have seen that the discriminator is showing up as 0 now and the username is ...
Why isnt my eventHandler being loaded? 25 messages
hallow briar ```js async function loadEvents(client) { const { loadFiles } = require('../Functions/fileLoader'); const ascii ...
How to allow a bot to receive DM's from server members 8 messages
empty crater Hello, I'm looking to see what I can do to make my bot allow DM's from server members. It currently says this: "Your mes...
How to respond to events that aren't messages? 12 messages
trail thicket iv'e been trying to make my bot welcome a user on joining, but im stuck at this point.
How do i make my bot welcome users when they join the guild? 11 messages
trail thicket I wanna make it so that my bot can welcome users when they join the guild, and a need to make it toggleable. Any pointer...
Check If Channel Permission is null 16 messages
random beacon So basically i have a voice channel with permissions set for user ids. am having trouble figuring out how to check if a ...
Why isnt this working. 5 messages
hallow briar ```error Error reading directory: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received...
banner 14 messages
fringe rampart How to display banner ? I tried to fetch user.bannerURL or banner, but it dosent work, i have this error ```error C:\Use...
How to send embed and common text in one message? 5 messages
quasi crystal it must look like message on the picture
member.createdAt 5 messages
cobalt perch What is the proper way to use member.createdAt? I have tried <t:${parseInt(member.createdAt / 1000)}:R> and it returned ...
New slash commands not registering 4 messages
@discordjs package
discord.js bot help 39 messages
steep robin so I am trying to use this bot for my own personal use. the original owner has gave me permission to fork the bot obviou...
Commands not working for some reason 7 messages
deft cove after I turned on the bot and typed "-ping" in my server, it didn't do anything BUT if I say /ping the bot says "The app...
Assistance with registering commands and typescript 34 messages
oak hatch Hello, I was following the guide in the documentation and reached this point: `client.commands = new Collection();` I'v...
need help for register / commands (error) 15 messages
how to verify if the DM of an user is open/close? 2 messages
sinful fossil I make a modmail bot, but I don't find how to check if a DM is open or close. Is there a method to do that ? thx
Cannot read properties of undefined (reading 'Flags') 17 messages
ornate notch My Code: ```js const { SlashCommandBuilder } = require("@discordjs/builders") const { EmbedBuilder, PermissionsBitFieldB...
Is there a way to send a message when the bot is about to turn off ? 2 messages
high raven I want to send a message kinda like that : "Bot off" when the bot is about to turn off.
client is not defined in interactionCreate.js, but it is defined in main.js 112 messages
spark fulcrum If im not wrong, i dont have to defind it again ;=;
How do I get the number of roles that a user has on the server? 5 messages
ornate notch How do I get the number of roles that a user has on the server?
I tried to repeat the "Registering slash commands" page on discord.js guide 6 messages
spark fulcrum Finally, i could get rid of all the errors, registered the command and then i started the bot, but when i tried to use t...
So, i tried to repeat the Registering slash commands page from djs guide website 9 messages
spark fulcrum (https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration) But something went wrong, i did...
Modifying internal functions 5 messages
mighty birch Is it safe to modify any Discord.js function to add my own code before and after the execution. Example: ```js const def...
Structuring within discord.js 6 messages
torpid slate I am fairly new to discord.js but have quite a bit of experience in web-development. I know that structuring a project i...
env is not grey 2 messages
acoustic prairie When i put my mongodb link in .env it's not fully greyed out because there's a "=". How do I fix this? I suppose I can't...
Trying to receive and log individual responses from two servers. 42 messages
terse star I am using Rcon to remotely connect to two game servers. I have created a slash command for my Discord bot to send whate...
Forum thread tag not working 28 messages
median frost Why doesn't my bot add the tag to the forum thread? ```js const serverId = interaction.guild.id; const foru...
Collector filter editing after creation 15 messages
dawn mica So I have an embed with buttons (panel) and each voice channel has one panel to itself. I've filtered the panel using t...
Why is threadChannel.messageCount possibly null? 2 messages
lucid girder I'm trying to get the count of messages in a forum channel thread but i get the error `threadChannel.messageCount is pos...
What property is display name 2 messages
cold imp Title. What is the property for the proper display name? In my script I ask for displayname but certain users display th...
Guide doesn't match up with my needs. 8 messages
trail thicket I was trying to make a deploy-commands file /w the guide, but then i realized it only works if i "organized" the command...
Getting an error when im trying to node main.js 13 messages
spark fulcrum The code const { Client, Intents } = require('discord.js'); const { token: token } = require('./config.json'); const cli...