djs-questions

13317 threads · Page 97 of 267

get forum channel list of role permissions 5 messages
wooden tree I am trying to get a list of role permissions for a specific channel, because I need to get the ID of the 4th role in th...
Bot wont show a status. No errors in the code or displayed. 7 messages
novel shell My bot just wont display a status. Been troubleshooting for hours trying it on my own. My node version is 18.18.0. Never...
node
Storing Giveaway information 11 messages
bright bough When making a giveaway bot - How would you store the entries and the users?
Wrong docs..? 6 messages
bright bough Hey, can someone please explain this as I've spent 2+ hours on it lol. Basically on the docs it says to use `const use...
onInteractionCreate doesn't get called when I select a previously deselected parameter 7 messages
delicate bay I have a command that has 2 autocomplete parameters: ```ts const data = new SlashCommandBuilder() .setName(name) ...
node @discordjs package
button label wont update after message.edit 36 messages
white adder discord.js@latest
node
Log if user got disconnected and from who? 20 messages
vestal iris Something aint right. I am currently trying to make something like: Yeah user x disconnected user x. But when I try to d...
problems of bot choosing the person on whome the context command was run 2 messages
cobalt zephyr so i have this code for a contextMenuCommand:- https://pastebin.com/KeEWUdAm and this is the file for the button(1st bu...
node
Response: 500 Internal Server Error when bot tries to post a message 3 messages
fathom cliff Recently my bot has had issues occasionally when posting an automated message to certain threads. Is this a discord prob...
Channel.messages.fetch(id) giving mixed results 36 messages
raw raptor My bot uses the embed fields to match an Array from the embed to their character stats. On Desktop this issue doesn't se...
Send to specific channel 4 messages
bright bough I used the docs To get "const channel = client.channels.cache.get('1153350608082964592');" but I get this error. Any hel...
Valid way to check if role? 3 messages
bright bough Hey, if this is a valid method to check if a user has the specific role needed? If not, is there any other ways? Haven't...
Command Problem 2 messages
halcyon scarab Are other users experiencing the same issue as mine? Occasionally, my commands with 100% accuracy do not function as exp...
How to pull interaction username? 4 messages
bright bough Hello, I want to post an embed with the username of the person who ran the / command. Can anyone help me? Kinda lost in ...
DiscordAPIError[10062]: Unknown interaction 6 messages
bold fractal DiscordAPIError[10062]: Unknown interaction at handleErrors (/home/runner/VGs-Bot-v2/node_modules/@discordjs/rest/...
Questions about @discordjs/core 6 messages
night hemlock Why is the main discord.js library now under the `old` subdomain? Are they retiring it for @discordjs/core? And why?
@discordjs package
setInterval not accurate 2 messages
rigid knot Hello, I'm using `setInterval` for every 10 seconds to store 10000 in json file and adding another 10000 so total 20000 ...
How To check the time active 4 messages
rigid knot How do I check the time active that members in the voice, I used the `voiceStateUpdate` Event and it will calculates by ...
Error with Flag Guilds and more. 19 messages
lost hound This is my code: const { Client, Intents, MessageEmbed } = require('discord.js'); const client = new Client({ intents:...
How many times per hour can you update role color? 22 messages
heady axle Hey guys, can somebody tell me how many times per hour I can update role color? Doing this with setInterval with 1 or 2 ...
Cache growing too huge too fast for interacting with members in a role 202 messages
lapis spoke I have a bot that sends money to a specified role at a certain time of the day. I'd like to send money to all the indivi...
how to sync the global command manually by myself 9 messages
sage meteor I have a main index.js file for my bot and I have a separate file for syncing the slash commands. Since I don't want to ...
Model to Webhook 5 messages
marsh orbit Im exploring Modals atm, the idea of it is a user fills out a simple 1 question form and that info gets sent to make.com...
Getting this error a lot on my self host PC 12 messages
hybrid sonnet `node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ^ Co...
node
Security actions implemented, yet? 4 messages
fickle spear Is this feature implemented to DJS? I didnt find it, so im guessing no, but im a blind dummie
Bot not replying 8 messages
astral basalt Hi! My bot is not replying. Message intents are enabled, I used a tutorial from a year ago and haven't been able to find...
mongodb error 2 messages
vital birch events/messageCreate.js ```const { Events } = require('discord.js'); const model = require('../schema/profileschema') m...
How to make the bot perform something every 10 mins? 13 messages
marble inlet How to make the bot do something every 10 min, such as updating the channel name, as a user counter
node
Can't Edit Message in DM 3 messages
gleaming schooner I can't edit a message in DM Code: https://pastebin.com/PQ2n0gvZ Error: https://pastebin.com/MZcrkSzP Obliviously t...
How to send a DM to a specific user id on a sharded bot? 23 messages
whole veldt I need to send a DM to a specific user id on my sharded bot, how do I do this?
Cannot edit interaction after modal input 66 messages
sand ravine Ok so here is my problem, I want to achieve something like so: Step 1: send interaction with button Step 2: user clicks ...
@discordjs package
DiscordAPIError[50007]: Cannot send messages to this user 3 messages
onyx wasp So i made a bot that reads messages and deletes them when there is a specific word in them. and after that i want to sen...
deno
button not being added 3 messages
torpid holly .
Separate content into pages 2 messages
graceful lodge lets say i make an api call and it returns a massive paragraph which i would like to put in an embed with different page...
Awaiting component interactions in Discord.js and optimization concerns when scaling up 7 messages
mossy tapir Hey! I have a concern regarding awaiting components when serving a large amount of users. I am building a bot that is a...
node
Why am I getting this error? 26 messages
smoky stag ```=== UNCAUGHT EXCEPTION MONITOR === === UNCAUGHT EXCEPTION === Exception: TypeError: channel.isText is not a functio...
@discordjs package node
Role in SlashCommand showing @Undefined 3 messages
edgy fox I'm making a slash command where role is a required parameter but when I try using it, it is auto filled with @ Undefine...
Interaction Managing Duty 31 messages
mild sage Hello, i'm making message & interaction manager system and got wonder why the interaction should requires to edit/add/re...
node
Using @discordjs/rest to make requests using Bearer access token 7 messages
fervent ridge Is it possible to use the rest functions to fetch data for users with their OAuth access_token? Currently I've tried th...
node @discordjs package
Unknow Interaction 12 messages
mental goblet idk why when i try use Translate or other cmd its work like second picture, but I always got error like first picture, i...
Using the base command and the subcommand as well 4 messages
autumn cove Hey! I am currently migrating an old bot to use slash commands but I am currently stuck with the following issue. I am b...
New DJS 23 messages
bright bough Hey, I just put in all the coding information from the github and followed the documentation.. My index.js and deploy-co...
@discordjs package
Mass Dm mention bot 17 messages
mortal otter Hey I want to make a bot that mass dm everyone on my server I have a server which sell courses ( E-commerce) and I need ...
Getting an error when deploying commands 16 messages
ashen topaz Error Message: ``` Started refreshing 13 application (/) commands. DiscordAPIError[50035]: Invalid Form Body 10[APPLICAT...
Error While loading prefix commands 34 messages
craggy ferry Greetings Devs and Staff Members I am trying to make some prefix command. But I am Getting this Error I tried to look a...
Edit message in thread 5 messages
edgy fox I'm trying to edit a message inside a thread, I've channelID(Contains thread), threadID(Contains message) and messageID,...
Node js not starting 59 messages
fair gulch Hi, sorry if I do something wrong but I'm really new to this world. My problem is that I made a code for a bot in Visual...
node
Unknown interaction error when responding to RateLimitError 13 messages
shrewd lintel So I've been running into this very annoying `Unknown interaction` bug, randomly triggering when I get rate limited on c...
node
Cache Sweeper 53 messages
icy stag Hello, I wanted to know why, even with these cache sweepers, my ram usage continues to increase as the bot's uptime incr...
Unable to use updateMessage() on a message that has already used updateMessage() 7 messages
sand ravine So I have this modal that when it is submitted, it modifies the message that had the button to show the modal to say "Lo...
@discordjs package