djs-questions

13317 threads · Page 116 of 267

An error when i try node main.js, im absolutely new at javascript and i wanna try to do my small bot 41 messages
robust pecan PS C:\Users\User\Desktop\Discord Bot> node main.js node:internal/modules/cjs/loader:1327 throw err; ^ SyntaxErr...
Message Specific Collector 4 messages
dawn mica So I have a embed with buttons which acts as a panel to control a voice channel. There can be multiple of these panels f...
Edit button for only one user 3 messages
spare barn Hey, I try to update a button after one user click on it. Like, one button say "Join" and after clicking on it, the butt...
Can I ask what are the all errors that can happen when bot DMs a user? 3 messages
woven escarp Title
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function 14 messages
rapid bridge I'm getting the error `TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function` for some reas...
discord api error 50001 13 messages
ancient thistle ```js const { SlashCommandBuilder } = require('discord.js'); const { EmbedBuilder } = require('discord.js') module.expo...
cant seem to find the error 7 messages
DiscordAPIError[10062]: Unknown interaction 15 messages
zealous carbon Hello guys, I just updated to v14 version and I'm trying to do a store command using buttons My problem is that when 2 ...
Question about menu builder 2 messages
gloomy flame is there any way to get data from a json file and every one of them as option in the menu?
i need help on fixing this error please 5 messages
@discordjs package
Discord API Buffering edits to embed? 6 messages
deep kindle I have a status embed message that gets edited every 2 minutes with the most accurate information, however it takes abou...
interaction.inGuild() doesn't work as a typeguard 7 messages
lucid girder I'm using TypeScript and i need a typeguard for `interaction.guild` but `interaction.inGuild()` doesn't seem to work. Am...
Error Events 21 messages
wild raptor I have the channelUpdate event that has been executed when mee6 has updated the roles to a user and that should not be a...
How do I use Client.updatePresence()? 22 messages
shut belfry The core library's Client class has an `updatePresence` function, how do I use this?
@discordjs package
execute function not ending after return statement? 11 messages
finite fox Hello, I have the following `assign.js` command that I am trying to use to assign a targeted user to a specific team, wh...
hi ı update my bot v12 to v14. my bot online but not working. what is the problem 106 messages
high ether hi ı update my bot v12 to v14. my bot online but not working. what is the problem but dont came error in console
errorhandler 2 messages
hasty forum Heyo peeps! I was wondering if anyone had tried creating an error handler that would catch every type of error and log ...
guildCreate 2 messages
jaunty crescent is there a way to check who invited the bot to the guild without using auditlog?
How to begin with Discord js 2 messages
fallen glade Hi I am absolute Beginner in discord js i explored with documentation provided by the server but i am too beginner don't...
User Content 2 messages
median hamlet How can a userContent be made visible/usable to a certain position or to everyone without having to manually modify the ...
How can discord.js cache all users, channels, guilds into Collection? 12 messages
plain lily Title
Command Handler Issues 18 messages
mortal hemlock I would like to use my command handler to execute this code whenever someone types a message in a specific channel. This...
Image still shows 33 messages
naive python Hi, I have the following code as an update to a previous interaction, as you can see, I have set the files: [] to an emp...
Banning doesn't delete msgs 13 messages
compact walrus I have made a ban code and will attach the important part below. The problem is that when I use the code, it bans the us...
does any one know how to get discord to display your bots command for auto complete 16 messages
meager glacier hello I just finished coding my bot and i want to make it so that when you type the commands can be auto filled with tab...
slash cmd doesn't work 18 messages
neon flame hey! i have recently created a bot, but the ping slash cmd don't work, can you help me?
Voice log 6 messages
Deferring ButtonInteraction response and then update 6 messages
lucid girder I have a message with two buttons and i want to update the message after one has been clicked, although the operation pe...
get "Global display name" 3 messages
jade vector Hello! Since the discord update, discriminator disappear, and we have now the option to set a "global display name". For...
Expected a string primitive 14 messages
south surge Keep getting this from my embed fields input.value | | ValidationError > s.string | | Expected a string prim...
Cannot read 'edit' 4 messages
supple pumice I cannot resolve this error, pls help me to fix it. ```javascript … collector.on('collect', i => { if (i.customId ...
Pass variables into <ShardingManager>.broadcastEval 4 messages
weak narwhal I have this code: ```ts const params = { guild_id: "", channel_id: "", shard_id: 0 } // @ts-ignore const result =...
Embed interaction replys 5 messages
cobalt perch How would I go about doing embeds in interaction replys (slash commands)
Embed Help 16 messages
burnt niche Can someone tell me why this doesn't work. ```const { EmbedBuilder } = require('discord.js'); if (message.content =...
ReferenceError: client is not defined 18 messages
lime shore I have followed the guide on "https://discordjs.guide/#before-you-begin" and when I run the code "node deploy-commands.j...
Member count help 5 messages
burnt niche I have the following code but I want it to exclude bots, any hep would be appreciated. Thanks! `client.on('ready' , (c)...
bot is online but not resieving messages 22 messages
meager glacier Hello i am new to coding and i got my bot to go online but when i send a command in the discord it doesnt show up in the...
I wanted to make a code to start the bot and get it online, I tried all the ways but doesnt work 11 messages
alpine haven Help me please 🙄
Reacting to message or removing reactions creates clutter in the console 2 messages
Anchor GUI Menu to bottom 2 messages
daring cave Is it possible to anchor a GUI menu to the bottom of the chat so when messages from other users come in it doesn't push ...
StringSelectMenuBuilder 7 messages
daring cave This: https://old.discordjs.dev/#/docs/discord.js/main/class/StringSelectMenuOptionBuilder seems to be missing some set...
Error ActionRowBuilder() and TypeScript 7 messages
worthy spruce ```ts const avanzarDis = new ButtonBuilder() .setCustomId("avanzar") .setLabel(">") .setStyle(ButtonStyle.Pr...
GUI Component: Next/Previous Page Buttons 6 messages
send base64 string on Embed 10 messages
fierce fjord I have an image in a base64 string. how to send this image when embedding in EmbedBuilder? like: ```ts const myBase64 =...
ERROR MODULE 3 messages
pulsar sluice Hi, /home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:48 if (channel && !channel....
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at <time> 5 messages
jade vector Hello! My bot [Knitting](https://github.com/Lisandra-dev/Knitting-bot) is host on a VPS (oracle free tier). I have two ...
Who working with Distube? Can you help me? 2 messages
ember harbor How i can fix this error?
@discordjs/rest question 19 messages
open forge Hi everyone, I have this code right here ```const botGuilds = await rest .get(Routes.userGuilds({ after: allBo...
@discordjs package
How can I check if an ID is a category? 23 messages
nimble wolf How can I check if an ID is a category?
I don't understand... 20 messages
pallid portal C:\Users\Torren\Desktop\JS-Bot-Apeture\index.js:27 if ('data' in command && 'execute' in command) { ...
@discordjs package