djs-questions

9202 threads · Page 146 of 185

`message` argument doesnt work. 5 messages
sudden creek HI, I am following the discord.js guide and i am trying to get the MessageCreate event to work. event_registry.js ```ja...
how to make the button work even i restart my bot 10 messages
leaden hazel how to make the button work even i restart my bot i mean when i create a button and click on it , it works but qhen i re...
closing a DM channel between bot and user 25 messages
wicked sphinx I guess that some context will be in handy here: i have an application bot that goes into peoples DM's, asks them quest...
Can I CrossPost a webhook? 3 messages
magic basalt title
module_not_found 38 messages
spiral steppe so everytime i do nodemon it says module not found
what's the boolean in Client<boolean>? 7 messages
silent bay i'm using typescript and i see that Client is a generic type that takes a boolean (sub)class what can i do with that?
DiscordAPIError [50035] Invalid Form Body 13 messages
stiff rivet Completely new to Discord.js v14 and I'm completely lost. Is anyone able to look over my code and tell me if I'm on the ...
Slash command working locally but not when hosting 2 messages
ivory sable /Sound is working in local but when deploying i'm getting this error ``` /home/fgqnfdxm/nodevenv/ETIC-BOT-2/16/lib/node_...
Get user from just user ID? 4 messages
jagged flame Im stuck on the correct logic to get the username and discriminator of a user just from their ID. I found this on stack...
when i try to start my bot i get this message 33 messages
haughty canopy Waiting for the debugger to disconnect...desktop\desarrollo\mybot.js:2 const client = new Discord.client(); ...
How can I detect that the message is ephemeral message? 19 messages
small tide Same
ThreadUpdate 10 messages
night needle ```js const inactiveThreads = await threadchl.threads.fetchArchived() inactiveThreads.threads.forEach(asy...
Monitor or Log Channels & Roles 16 messages
vagrant canyon Is it possible to monitor throught and event or getting the list of people choices ?
intent error 11 messages
tired cobalt Hey. I'm trying to fix my code, but all time getting intent error. Hope it's ok, to ask programming questions here... Bo...
discord bot redirect URi? 3 messages
tired cobalt Hey there. I got really big issue with inviting my bot, to my server.... Why do i need some auth, if i only will use bot...
can we make sort of commands with Djs which can be work like a reminder or something 5 messages
sick trellis I am looking for the functionality where we can send chats or announcement in future using time or something i excuse if...
My bot send's messages in loop 9 messages
tepid sun ```javascript const { EmbedBuilder, ButtonBuilder, ActionRowBuilder, ChannelType, PermissionFlagsBits, SelectMenuBuilder...
Commands don't register even though the code is working properly 4 messages
dusty violet I'm talking about the bot tutorial from discord.js docs. So what I exactly mean is that when I write / on my test server...
deferReply() and ephemeral 2 messages
grave tulip Is it possible to use ephemeral with `editReplay()` after awaiting `deferReply()`?
Action Row 6 messages
rare bear hello mates, I wanted to know how I can use this ActionRowBuilder on a channel.send method ```ts const channel = awa...
correct path for running js 59 messages
tired cobalt Hello. I'm new with js and node. I installed discord.js and it created folder @discord.js. now i trying to run my script...
How To Get DDOCS ALOGLIA KEY & APP? 2 messages
dusty token Someone Please Help Me...
Emoji not properly showing 22 messages
jagged flame Trying to send an emoji in an embed but it shows up as `:testemoji:` and not the actual emoji. The emoji is in the same...
Does a bot can fetch discord user connections ? 3 messages
dawn thistle Hello, I wonder if it is possible for a bot to read the connections of users (PSN name, Spotify, ...). I'm asking this e...
passing more arguments to slash commands 1 messages
wicked sphinx so how can I make slash commands execute with more parameters than just `client`? Im using the command and event handl...
guild.members.fetch is outdated 7 messages
craggy lagoon Is it possible to retrieve most recent member object from fetch?
Trying to implement the bot using TypeScript, hit a wall on the guide's "Command registration". 3 messages
naive mulch I reached as far as https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands Looks like TS real...
Discord.js general question 1 messages
hushed pond Hey I’m wondering when did discord.js v13 get released and when did discord.js v14 get released?👍
IF statement inside slash command with different choices depending on the option chosen 33 messages
lunar canopy Hi, i am trying to have my bot output the input given, but i have multiple options for the user to use, is there a way t...
Context Menu is giving application did not respond 12 messages
bleak dawn Hi, My bot has a context menu, made in contextMenus.js, and then when someone uses it, it should activate the below cod...
how would i check if a certain post in a forum has a certain label and then close that post if it do 24 messages
night needle ^
Cannot read properties of undefined (reading 'BanMembers') 23 messages
Unknown Slash command error, done everything i can do try and fix 8 messages
warm pecan I am making a bot for the server, when the bot was in only the testing server, the slash commands worked perfectly, once...
How to attachment in message stream.pipe? 7 messages
halcyon meteor I have a stream received via ffmpeg, how do I attach it as a file in a message without creating the file via fs?
Receiving button interactions 24 messages
prime turtle Hello there, I'd like some help regarding button interactions. I know how to build a button row and send it (see code be...
Hook sends multiple messages 32 messages
flat crest Got problem when hook.send method result 2+ messages instead of 1. I just want to say a couple of words why I think pr...
Resolve user by ID upon bot restart? 14.6.0 9 messages
kind horizon I'm trying to make an alarm bot of sorts, which will ping users after a certain time. I'm storing only the IDs of users...
User @ not displaying correctly in embed 4 messages
slow stirrup I have an issue where sometimes the @ username will not display correctly in an embed but it depends on what user is cur...
When trying to get the channels in a guild I get undefined for channels. 4 messages
jolly latch Code const guild = await client.guilds.fetch(); console.log(guild.get('1057287057422172232').memberCount); const chann...
Problem understanding how to reliably get member roles. 48 messages
whole zinc Hi there I am trying to get the roles a guild member has. I am trying to get this information using an Interaction pro...
Private threads mention role does not invites peoples 19 messages
bitter turret My Bot create a private threads and ping this role, that should invite 5 peoples This has been working for month, but I...
Invalid String Format 16 messages
warm pecan Was changing my command handler to one that supports slash commands, got an error i have specifically ever seen before, ...
Command Handler with FS? v14 4 messages
hearty mesa I've been trying to look for resources on how to create a command handler that uses instead of using blob. If someone ca...
Running a new command on button interaction, with a provided string input 16 messages
bleak dawn Hi, I currently have a command (townSearch.js) that takes string input, gets information about the string (in this case...
Embed Button not doing anything 7 messages
mossy folio Im not getting any errors. This is v 14.8.0.
Ticket/Channel permissions in discordjs v14 16 messages
warm pecan So i was testing my bot cause im upgrading it from v13 -> v14 and when I tried the ticket system I had previously, it di...
DM Embed BOt 10 messages
fallen edge Hello, simple said. i want it to delete the !command, then send an embed, delete that after a period of time, then send...
suggestion to djs a new code change role icon 6 messages
idle ravine I hope to add a new code and download the method in djs guide that the bot can change the role icon by means of an image...
embed dm 11 messages
fallen edge the app crashes and i get the same error everythime. the code: ```js client.on("messageCreate", (message) => { // ...
i need help 3 messages
proven epoch Hello. I make a Discord bot. And I have changed its status to dnd, but after a few minutes the status of the bot chang...