djs-questions

9202 threads · Page 62 of 185

Modals in Node-Red using Discord JS 5 messages
daring lava A little offtopic but its based on discord.js, i hope to find some support here anyways. In node red i try to show a mo...
How can I create a private thread? (discord.js@14.14.1) 8 messages
old haven I tried this type: "GUILD_PRIVATE_THREAD" and that type: ChannelType.PrivateThread, both didn't work. Thanks for help!
How can I get the message id after channel.send? 6 messages
potent thunder How can I get the message id after channel.send? Please provide a link to the documentation where I can find the returne...
Is it possible to separate interaction for 2 subcommands? 2 messages
kind salmon I want to have a command /clan add and /clan change which I want to implement as a subcommand. After the usual (it's a...
Discord API Error 5 messages
fallow linden I had made a purge command. But the issue is I didn't set any cooldown on it and I am not sure if that's creating the is...
Discord Embed not sending 10 messages
timid hamlet # Code ```js if (previousTokenAddress !== rowData.tokenAddress) { console.log('rowData:', rowData); // Log r...
Restart every 1 hour 7 messages
deft moon I want to make a function that restarts the bot every 1 hour, is this possible? And if its possible how?
Hello, I would like to know how to call the functionality that only one user can see the message, th 8 messages
hexed jasper Hello, I would like to know how to call the functionality that only one user can see the message, the typical message th...
1150878580193116250
Follow Up to interaction.deferUpdate() throws error 10 messages
mellow hemlock Hey guys, When I try to followUp() to an ButtonInteraction I get the error `InteractionAlreadyReplied`. A print of inte...
1150878580193116250
discord bot works on my laptop and not on my rdp 9 messages
marble jewel my bot works on one pc not the other, i made sure all node.js version are the same and discord.js versions are the same ...
Output a message to any channel 22 messages
potent thunder Please tell me how I can display a message in any channel of any server? I mean like: ```const channel = client.channels...
Are forum posts supported for channel select menu default_values? 11 messages
river monolith I'm trying to load the configured channel from the database but whenever I try to do so for a forum post it sends my mes...
1113356221962010634
sending a message to a channel a user cannot see 3 messages
agile pagoda I am having issues sending a message to a log channel if the user who initiates a slash command is not able to see that ...
Roll For UGC (Issue with epheremal message out of stock message, not showing up at correct time.) 2 messages
dense cliff So, my code is working properly, the only issue I'm running into is that when someone gets dmed a code when they roll th...
1150878580193116250
Collector Timeouts 3 messages
spring shuttle Just wondering, when you set a timeout for the collector, what unit does it use? Seconds? Milliseconds?
Bulk delete stopping at 50 5 messages
unkempt tartan Hi, i'm trying to use the bulk delete function (all messages are from today so no 14 days limit etc.) But when I tell it...
How many options can I add in a select menu? 5 messages
urban vale I need to make a select menu with lots of options, how much can I add?
need help trying to fix discord api error 405 9 messages
undone nexus ive been trying to setup a discord bot and i keep getting Aapi error 405 can someone plz help
1150878580193116250
Reason in Thread 4 messages
glass dome Hello, Despite some research, what is the purpose of "reason" when creating a thread? Is it a custom field where you ca...
Why bot send and delete message 11 messages
1150878580193116250
Creating an embed for polling 33 messages
rigid kestrel hey guys, i was wondering where I can find some info on fields for embeds in discord js. I'm trying to recreate the foll...
/wouldyourather (slash command, issue with buttons) 26 messages
dense cliff Can anyone look at my code to see why buttons are not working I am trying to make code for /wouldyourrather slash comman...
Issues with channel ID fetched from MySQL database. 6 messages
simple terrace I have been wracking my brain on this one. I'm trying to create a very command that shows me what channel it is assigned...
1150878580193116250
deferUpdate() problem 5 messages
tacit osprey discord.js@14.9.0 node v20.11.1 Hi guys, im having a problem using iteractions, im trying to make one collector inside a...
Discord.js 14.14.1 Type Errors 3 messages
dusky remnant Hi, I'm trying to upgrade from 14.7.1 to 14.14.1. However, when I now go to transpile my code I get 97 errors from the ...
"This Interaction Failed" Error 14 messages
red echo The code functions as followed: Once I do `/blacklist-server add`, the owner of the blacklisted server will receive an D...
1150878580193116250
Adding role to a user 15 messages
grand ledge I have a function that should add a role to a user. ```js async function assignRole(userId, roleId) { try { ...
1150878580193116250
Already reacted 6 messages
spiral inlet Hey I’m making a starboard system and it works fine except is there a way to check if someone already reacted before wit...
Error when starting bot 14 messages
untold stirrup `node:internal/modules/cjs/loader:1447 throw err; ^ SyntaxError: C:\Users\conor\Desktop\auto delivery\config.js...
bitfield whateva 13 messages
obtuse cave ```js const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Int...
Is there a way to check if the bot has the applications.commands scope in a given guild? 5 messages
proper citrus As title says, is there any way to check this? Either through DiscordJS itself, or I'd settle for settings on Discord or...
npm i discord.js error 3 messages
red echo https://media.discordapp.net/attachments/1173046934299222026/1216445931424317493/image.png?ex=66006a8e&is=65edf58e&hm=a2...
998292157150535700
Fetching message in a thread 20 messages
last lantern ill explain after i post
Collectro recieved no interaction before ending with reason: time 31 messages
grand ledge I have a signup modal that has a collector on it. But I don't know how to prevent it from crashing if the time expires. ...
1150878580193116250
remove and add roles stop after time of running ? 15 messages
hazy zephyr hi guy's i want to ask about this problem My bot works on my server to organize the server in general, remove roles, g...
1150878580193116250
Hello 7 messages
woven socket the image is my question and thank you for making discord.js its very convenient
1150878580193116250
when is shards: 'auto' recommended? 6 messages
mortal kestrel from https://discordjs.guide/sharding: > Apart from ShardingManager, discord.js also supports a sharding mode known as I...
1150878580193116250
Error in my ban command 3 messages
night pagoda ```js const { EmbedBuilder } = require('discord.js'); module.exports = { name: "ban", description: "Permet de b...
fetching scheduled events 12 messages
frozen dirge Im having trouble figuring out how to fetch the scheduled events for a guild using. djs ver: 14.14.1 node ver 20.11.0 ...
1150878580193116250
Channel not being created 3 messages
patent epoch Bot is not rate limited. ```ts await Promise.all( data.channels .filter( (channel) => "isThread" in channel ...
How can i tag the message sender 6 messages
placid bone ``` if(interaction.commandName === 'vouch'){ const embed = new EmbedBuilder() .setTitle("Vouch!") .setDescr...
Im trying to make a discord bot in replit, Please help 12 messages
normal ginkgo plz help
How can i make an add role command 8 messages
placid bone im using slash commands so how can i add a command that adds a specific role to a defined user? ``` client.on('interacti...
Typescript 4 messages
drowsy hawk How do I set it up for typescript?
1150878580193116250
Member Server Kick reason is not defined 5 messages
static light Hey, I have a /server kick command but the reason somehow doesn't come through in Discord. Here's my code: In the logs,...
getInteger not working for one option but is working for another? 9 messages
last jetty Basically, I have a dice roller bot and in a new command I'm working on, I can get one of my integers options but not th...
401 not authorized 16 messages
balmy oasis everytime i try to start my bot i get this error.
Make a Discord bot reply when a user sends an image in chat (continued) 61 messages
proud sundial I have a discord bot up and running and working on slash commands. But I'm having trouble getting it to reply when someo...
Commands 21 messages
dense kernel my commands for some reason will not delete from my server ```ts console output Commands Count: 0 Commands Fetched: 0 `...
message update issue 13 messages
hardy violet i have a bot which listen to message update event and do calculation based on the message and save to database then send...