djs-questions

9202 threads · Page 115 of 185

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 10 messages
alpine haven Help me please 🙄
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...
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...
998292157150535700
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) { ...
998292157150535700
Error - Following tutorial and BONKERS 4 messages
pallid portal PS C:\Users\Torren\Desktop\JS-Bot-Apeture> node deploy-commands.js C:\Users\Torren\Desktop\JS-Bot-Apeture\node_modules\@...
998292157150535700
TypeError: Cannot read properties of undefined (reading 'id') 22 messages
dawn zephyr Hey, I want to make a setlan command for my bot, when it sends the embed, it seems that the collector collects something...
an autocomplet with more than 25 help-me options 10 messages
nimble wolf does anyone know how to do it if it has more than 25 , it shows up to 24 a part of the name it shows, to avoid this erro...
AuditLog Grouped "event" ? 3 messages
rich canopy Regarding the AuditLogEntryCreate event. I just learned that if something is grouped ( like separate message deletes ) t...
986538542350086175
Newlines in `message.content` 5 messages
raw arch Is there any way for my bot to get the message content with newlines included? I have profiles that people post that I'm...
Reaction button sent only once 2 messages
mint dagger Hello there ! I would like to create a message embed with buttons attached to it like "Reaction Bots" do. I wonder how...
slash commands 4 messages
latent owl How to check which sub options they used in the slash commands?
hi my bot v12 but ı upgrade to v14 but nor working beacuse ı cant do intents who can help me ?pls 21 messages
high ether ı dont know why not working but ı can send error and code
Application failed to respond 35 messages
icy cosmos Keep getting application failed to respond with no error on the log i think it has something to do with the command hand...
user.global_name 5 messages
torn glen HI from which version this property is available in user object "global_name, the user's display name, if it is set. For...
Issue adding and removing roles in same command 11 messages
nimble glade I have a select menu command where you select the roles you want to add/remove from a list when roles are selected it ch...
Cannot use `{data.length}` (Typescript) 7 messages
summer crest i dont know the reason why `{data.length}` get error, it announced that `'data' is of type 'unknown'.ts(18046)` Here is...
how do I handle modalsubmits in typescript? 5 messages
north juniper even if I use a collector, it wont work
discord js core issue 127 messages
worthy beacon Sometime halfway through guilds.map(async (guild) =>{..} ) cpu usage goes abnormally high ,ram usage increases by like ...
998292157150535700
Issues With Permissions 77 messages
icy pine Im going to say it now, Im terrible at coding and I have zero idea what I'm doing. Anyways I'm getting a permissions err...
Having choices as both strings and numbers for the same option? 53 messages
terse star I am trying to make an option for a slash command have a choices of one being a number and the other being a word/string...
Button Interaction 8 messages
crimson grove Hello, this is my code: ```const { MessageActionRow, MessageButton, ActionRowBuilder, EmbedBuilder, ...
Could anyone help with a question? :D 3 messages
ancient valve this is right isn't it? I also wanted to know if it is possible to create buttons in these embeds via webhook
V13 - <User>.global_name 6 messages
drifting sky Hi, will the `global_name` information be available on a future v13 update?
Does anyone know why the choices do not appear? 9 messages
button interaction doesnt work (d.js 14.11.0) 15 messages
faint echo Im making a bot and button interactions dont work, when you hit a button it responds with "the application did not respo...
Edit message on button click DJS14 3 messages
warm carbon Hey, I'm trying to make a slash command on my bot to fetch a list of users in my database. It'll work that way : `/info...
where is the documentations of this? 11 messages
Can we shorten the emojis? 9 messages
jovial burrow Whenever my admins register new messages inside the JSON file by a command, my bot updates the message where it displays...
Typing Oauth2Guild 6 messages
balmy flame Does anyone know if `discord-api-types` has a builtin type for an Oauth2Guild (i.e. a guild fetched via the oauth2 `api/...
How Collection() works? 8 messages
frosty mortar https://discord.js.org/docs/packages/collection/1.5.1/Collection:Class
Help width interactions 8 messages
blissful ferry Hello I have this code in slash conmmand, when I try to interact outside the if works perfectly but if y try into the i...
adding a button to a ticket bot 3 messages
smoky drift I found a ticket bot on GitHub.. and it has a button to create a ticket all I need is to add another button like for don...
I wanted to know if the way to send an axios is correct 5 messages
jaunty current it is giving error of FAILED_UPLOAD
My discord bot is not reply messages 20 messages
prefix command not working 17 messages
past isle I tried to add the commands in separate files, but it did not turn out to be comfortable for me, it also did not work, s...
Pagination problem 6 messages
slender geyser Hello, I have a problem with pagination. I'm working on some stock management commands, and here I would like to display...
Modals 6 messages
meager dagger ```ts button.showModal( new Modal() .setCustomId("test") .setTitle("This is a test modal")...
Anti spam 21 messages
real reef how would you go about making an anti spam, so say as if someone was spam messaging how would I log that with my bot?
Discord Embed inline field gets out of line 3 messages
cinder chasm This happen when I expect it all to stay in-line. Code snippet: ```javascript .addFields( ...
Fetching Guild Commands returns nothing 11 messages
gusty thistle I am using the ApplicationCommandPermissionsUpdate event. I am trying to fetch the command using the `guild.commands.fet...
Label Character Limit 3 messages
wanton smelt I searched something on discord-api-types and I saw that there it says that Text Input's label is max. of 80 characters ...