djs-questions

13317 threads · Page 63 of 267

How to ping a role an a thread but not adding them to it 3 messages
old haven I want, that the member with the role get a notification and see that there is a new thread, but I don't want to add th...
Interaction CacheType in Typescript 8 messages
fathom hinge Hey everyone, I've started rewriting my bot in Typescript, and i'm running into problems with the generic Interaction ty...
What Im doing wrong? 6 messages
topaz kraken im trying to make a request trough API but instead I got 403 error everytime I try ```JS const { get, post } = require('...
embed 120 messages
covert pier ```js const { SlashCommandBuilder } = require('@discordjs/builders'); const { MessageEmbed } = require('discord.js'); //...
Invalid Bot Token 12 messages
leaden whale Heres my register commands code ```...(async () => { try { const rest = new REST({ version: '9' }).setToken(proce...
Cannot find value in JSON file of mentioned user (TypeError: Cannot read properties of undefined). 3 messages
rare moon I'm trying to check the value of variables ``ally1``, ``ally2``, ``ally3``, etc, and when using ``message.author.id``, i...
Looping through an array getting input each iteration 24 messages
prime ice I'm trying to loop through an array to get input each iteration of the loop. The issue I'm running into right now is the...
send file 3 messages
kind terrace messageCreate event. I want to when a message is created. it tells me is message video or image or no? how can I do that...
Discord Link Filter 11 messages
wary vigil Hello! So I have this filter in my bot setup to not allow links. However, I had recently setup a level system allowing l...
node
Couldn't resolve the user id to unban 21 messages
dusty linden I made a ban and unban commands for my bot. Even though my ban command works without any problems, I am having problems ...
Is there a way to have screenshare 3 messages
signal notch I would like to screenshare a website with my bot (or screenshots of the website every 3 sec if it’s not possible) and i...
Animated bot banner 3 messages
vestal spindle How to set animated banner on discord bot? Ik its through api, but how?
node @discordjs package
Help With permission on discord bot 16 messages
dapper geyser I have already given permission for application.commands on my discord bot https://discord.com/oauth2/authorize?client...
node
Discord js V14 modal submit error 11 messages
dapper geyser My data is being saved into database but the form on discord is not submitting it shows something went wrong on form but...
node
IntelliSense with voice not present 7 messages
mellow zephyr I'm working with discord.js/voice and it does not seem to have any autocompletions. I've been having similar issues late...
node
ReferenceError: client is not defined 13 messages
covert pier ```js const PTERO_URL = 'panel.'; const API_KEY = 'hheeh'; const NODES_ENDPOINT = `${PTERO_URL}/api/application/nodes`; ...
node
discord.js Can't run on hosting 7 messages
potent thunder ```/root/node_modules/discord.js/src/client/BaseClient.js:45 userAgentAppendix: options.rest?.userAgentAppendix ...
How can I change the VC status/description message? 10 messages
silver light I am looking to bypass rate limit on VC name by changing status Cant find in types anything about "status"
Discord
Search for a role by ID 4 messages
potent thunder How can I find a role by ID?
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? ([email protected]) 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...
node
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...
node
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...
Discord
I wanna make jarvis from iron man but need help 29 messages
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...
node
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
node
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
node
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...
node
deferUpdate() problem 5 messages
tacit osprey [email protected] 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...
node
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 { ...
node
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...