djs-questions

9202 threads · Page 44 of 185

getString() issue 3 messages
lucid star ```ts export interface CommandOptions { name: string; description: string; type: ApplicationCommandOptionTyp...
1150878580193116250
problem with the bot 22 messages
tawdry bane Hi, Until a week ago, the bot was working fine, but now I'm experiencing some issues. For example, it repeats certain m...
1150878580193116250
Running commands asynchronously 29 messages
timid hamlet I have a script that uses puppeteer to webscrape different URL's based on user's choice. I wanted to know if there's a w...
cannot find the text input value 5 messages
astral drift https://sourceb.in/oId6V4Tfp0
1150878580193116250
Duplicated commands (not global) 8 messages
pliant void im starting out with a very basic command ping-pong! when i use deploy-command.ts script multiple times, i see the comma...
TypeError: Cannot read properties of undefined (reading 'send') 39 messages
hidden dust with settings.channel being a channel ID ```const channel = client.channels.cache.get(settings.channel) channel.send("e"...
1150878580193116250
i can still fetch the message 4 messages
normal laurel ``` const ticketMessage = await ticketChannel.messages.fetch(data.messageID); console.log(ticketMess...
Error while adding option to command. 8 messages
static skiff Whenever I try to add an option to my command, it breaks. Can anyone tell me why? My commands: ```js var modCommandsLis...
1150878580193116250
TypeError [ClientMissingIntents]: Valid intents must be provided for the Client. 20 messages
hidden dust This is what i have in my file : ```const fs = require("fs"); const mineflayer = require("mineflayer"); const Discord =...
1150878580193116250
Problem while creating category 37 messages
split finch i have a problem while creating channel is specific category. Sometime one of the two category i'm creating (the first o...
1150878580193116250
is there is a way to make down menu never expire? 13 messages
lean owl code
reaction leaderboard 8 messages
exotic marsh making a leaderboard for reactions, i wanna store in a json file the points , each point correspond to the emoji. Now i ...
1150878580193116250
Slash commands are not registering 4 messages
still arch Hey everyone, I am having a problem with slash commands registering in only one guild. I managed to register one slash c...
1150878580193116250
Interaction + Reaction collector 3 messages
brisk lintel I'm trying to update some code. I move from messages to interactions. My bot adds the emoji but does nothing when I add...
How can I check if a user id has permission to send messages to a channel? 11 messages
silver venture Hello, I am trying to check if a user has permission to send messages to a channel like this: ``` const canSpeak = chann...
Interaction already replied issue 14 messages
midnight sonnet ```const { MessageEmbed } = require('discord.js'); module.exports = { name: 'flightlog', description: 'Log a flight...
Failed to load slash commands 32 messages
slow trout const prefix = 'K.'; client.commands = new Collection(); const readCommands = (dir) => { const files = fs.readdirSync(...
button interaction failed (collector/interaction create?) 56 messages
grave stone Hello, I am trying to setup a ticket bot by using collector, my ticket_create button works very well, however my interac...
Cannot read properties of undefined (reading 'getUser') 9 messages
shut spindle Hi I need to take the OWNER string of this code and put it on the interactioncreate event, however it gives me error "Ca...
Forum tags - Create a new tag if not exists 3 messages
jade vector I try to create a new tags in a forum if the tag exists: ```ts const availableTags: GuildForumTagData[] = allTags.map((t...
The reply to this interaction has already been sent or deferred. 39 messages
shut spindle Hi I have a problem. When I run the command "/partnership" "owner..." it gives me the error "Unhandled promise rejection...
1150878580193116250
How to resolve this error, it happens when I try to send an image(only sometimes) 1 messages
lean anchor Unhandled Rejection: SocketError: other side closed at TLSSocket.<anonymous> (/home/container/node_modules/@discordj...
How to send custom emoji in embed description 12 messages
junior widget ``` const eventtic = new EmbedBuilder() .setColor('#AC00FF') .setTitle('Booking us') .setDescription('...
1150878580193116250
guild.members.fetch will still fetch those who have left the server 17 messages
silver venture Hey everyone, I am trying to make a simple function that checks if a user is in a server. ``` export async function user...
Sending attachment with message edit 16 messages
warm charm Hi guys, I need a hand i'm struggling af. I took a 2-4 month old code, added webpack and update libs, what worked befo...
1150878580193116250
I need help with my code 33 messages
tender moat it send ```C:\Program Files\nodejs\node.exe .\my-discord-bot\index.js Uncaught TypeError TypeError: Cannot read properti...
What are `idHints`? 8 messages
chilly silo Question is clear when registering slash cmds or making them
Unknown Interaction 33 messages
midnight sonnet for some reason I keep getting this error when trying to run a command, this only happens sometimes. ```DiscordAPIError:...
Sychro problem 12 messages
pearl egret I'd like to know a little more about automatic rate limit management with Discord.js For example, if I make a function ...
messageCreate event 3 messages
lilac hull Does messageCreate event affect the bot stability because it get called every time a message got sent ? And is interacti...
Message interaction is null 4 messages
clear blaze is there still a way to get the interaction associated with the message? Because i have a bot where if you use a slash ...
I am confused with interactions 23 messages
lapis grail How I can create a script that switch the message with interaction.update there is a "edit" message I don't like to show...
Guild member caching 5 messages
tired field What is the default behavior for guild member caching? Are guild members swept at all by default? Basically, if a bot h...
Everything executes fine, but then it crashes 6 messages
ionic mulch I was having an issue ages ago where the code after the interaction.reply was being run twice, then it just randomly wen...
"The application did not respond" 28 messages
halcyon rampart I don't understand what is wrong. I have followed what https://discordjs.guide/ says, and it doesn't work. I have search...
Code organisation 7 messages
misty sierra Does discord.js have a feature like `Composer` in Telegraf (the library to make Telegram bots)? I don't think so (or at...
Chanel Creation 21 messages
gloomy flame any idea why dont creating channels but no errors?
Images randomly not loading 9 messages
quasi latch I have a code to log removed images. However, sometimes the image is displayed correctly, and sometimes it's just not sh...
Can't upload emojis: TypeError: terminated 3 messages
glad canopy Hi, when I try to upload emojis using a URL, it works fine locally but not in production. ```js await guild.emojis.crea...
1150878498534199426
Is there any method that i can use 26 messages
lapis grail to update my embed message? I hope I describe my problem right. I send a embed messege in a channel and then the bot res...
Undici timeout errors 3 messages
outer cargo Hello! I have a Anti-Nuke bot which is in around ~1300 servers and I have recently started getting connection timeout e...
1150878580193116250
Registering slash-commands 3 messages
vernal prairie why when i use server registering its all okey BUT when i left `GuildID` it crushes
The application did not respond 32 messages
final field Why are the commands not working. I fixed it earlier but after some editing on the code it doesn't work anymore.
1150878580193116250
What does it mean for a channel to be "threadOnly"? 3 messages
turbid viper Is it like voice and stage channels that don't have a text message history but a thread thingy on the side where people ...
The application did not respond 5 messages
final field Why is my command not working
1150878580193116250
'å', 'ä', 'ö' all turn into (check post) when in a message 21 messages
silk orchid When my bot post a message (embed in this case) it wont use UTF-8 letters. On top of this '┃' becomes '?'. My node vers...
1150878580193116250
discord.js won't update. 9 messages
silk orchid When i run `npm discord.js -v` it says `10.8.1` even tough i tried `npm install discord.js@14.15.3` and `npm install dis...
Shop with pages update too slow 4 messages
hushed sequoia Hi, i have a command for a shop with items that users can buy. I want to be able to add and remove items so the command...
DiscordAPIError[10062] 17 messages
young lion Hi everyone, I have a question about the DiscordAPIError[10062]. I understand this error is related to interaction timin...
Just double checking to be extra sure: Do ALL DiscordJS fetch methods check the cache first? 3 messages
honest quarry I'm trying to understand if I should still make my own cache module, or if I can (or if it is *okay * to) trust that the...
1150878580193116250