djs-questions

13317 threads · Page 140 of 267

React to a webhook message 35 messages
marsh plank Hello. i would like to know how i could react to a webhook message right after sending it. the code snippet is below
Unknown Interaction [even though it is not] 32 messages
rough hedge uploading the code in the forum because the message is to long
Extreme delay for sending messages 11 messages
spark oracle I've been working on a bot and I left it for a while, but when I came back I realized that messages (sending, not reciev...
Model.findOne() no longer accepts a callback 4 messages
smoky quail code: ```js const levelSchema = require("./Schemas.js/level"); client.on(Events.MessageCreate, async (message) => { ...
The `avatarUrl` object in the `WebHookClient.send` is not doing anything, apparently. 12 messages
wicked scroll Here is the code I'm working on: ```js client.on('messageDelete', async message => { await webhookClient.send({ c...
DNS Slash command doesn't respond 9 messages
near drum I'm trying to implement a traceroute slash command using an API as follows : ```js require('dotenv').config() const { ...
Controlling multiple bots with the same application? 12 messages
silk salmon Is there any issue creating multiple bot clients within the same application? My bots run in one very large server, and ...
Discord.js: Error with setting intents in Client options 90 messages
mystic spruce I'm trying to set the intents for my Discord bot using the Client constructor in Discord.js version 14.9.0 but I'm recei...
SyntaxError: Unexpected token '.' (in djs file) 3 messages
dense storm my bot works on my conputer and a upload it on the plateform "sparkedhost", i reinstall all package and [email protected]....
discord.js on html css website 8 messages
crude roost How? I know require is for nodejs but I heard something about that can compile it so the website can read it, but it doe...
Cannot read properties of undefined (reading 'has') 5 messages
dense storm Hi, i'am trying to do a delete ticket button only alive for mods, but i can't find the interaction user permissions.
hello 2 messages
coral blade The bot is connected, everything is fine, but when I do the command, it doesn't respond
dev release
DiscordAPIError[10062]: Unknown interaction at handleErrors 18 messages
copper thorn here is my code: ```const { SlashCommandBuilder } = require('@discordjs/builders'); module.exports = { data: new S...
Error: ENOTDIR: not a directory, scandir 'C:\Users\k_der\developing\JS\bots\commands\ping.js' 32 messages
dim bane Hi, so i'm making my first bot in JS. Now i want to deploy the slash commands inside the DIR `commands`. But it gives th...
Question 48 messages
acoustic pasture Does anyone have a premium command? example, /give premium `user` `duration`
TypeError: Cannot read properties of undefined (reading 'FLAGS') after attempting to update v13tov14 5 messages
Cannot read properties of undefined (reading 'send') 19 messages
Getting a module error when running a bot 7 messages
frank crow Greetings! I've been getting this error and I'm not too sure how to solve this. If anyone could provide some input that ...
can i bind discord.js codes with html codes 14 messages
drifting haven Hi bro i actually want to know , Can i bind discord.js codes with html codes If i want to make for example email verifi...
checking server boosters without roles 5 messages
untold cloud Is there a way to check if a user is server boosting a server without having to check roles. (and is there a way to chec...
[Resolved] Cannot find module '.../node_modules/discord-api-types/v10.js' 4 messages
pliant veldt Hopefully this will be a quick fix but I can't seem to figure it out. I'm getting this error after updating my productio...
how would you code a bot that sends a random 6 character code to your dm's and if you type the code 4 messages
inland nimbus I know how make a bot but this hard to set up
Super Reactions 6 messages
chilly vapor Hey there! I just wanted to ask how long it might take to implement Super Reactions into the MessageReaction. I've alr...
dev release
Trying to get the content from the parent message in a forum post 2 messages
amber abyss I feel a little silly asking this because it's probably obvious. In a forum channel, I'm trying to get the content of th...
DiscordAPIError[10062]: Unknown interaction 6 messages
copper thorn get this error: DiscordAPIError[10062]: Unknown interaction HERE IS MY CODE: ```const { MessageCollector } = requir...
Custom Button Component Color 13 messages
void mural Is there any way to make a button a custom color?
Automod api 16 messages
blissful raven Hi is there integration for the automod api already or will there be?
Manually Close Modal for Timeout 8 messages
ripe pewter I want to manually close the modal if the user doesn't respond within 5 seconds. Is there a way to hide/close modals man...
When will the select menu be returned to discord modals? 2 messages
brittle oyster When will the select menu be returned to discord modals?
@discordjs package
unable to create a channel when the bot doesn’t have admin permissions 35 messages
spiral lark Whenever the bot’s admin permissions are rmeoved it provides a `Missing Permissions` error. The bot has every other perm...
error on index.js 15 messages
nocturne delta throw this.error; ^ ExpectedConstraintError: Invalid string format at Object.run (C:\Users\7mccr\Desktop\discor...
how would you code a bot that sends a random 6 character code to your dm's and if you type the code 5 messages
inland nimbus please help
Docs 16 messages
last relic Is the new docs page thing for the v15 update if its getting to there?
Channel Topics 2 messages
snow scroll How to read and return channel topics
Event on scheduledEvent start 4 messages
robust sentinel Hello ! I would like to send a message in a channel when a scheduledEvent starts. I didn't found any event on the docs f...
Max Messages Per Fetch 4 messages
finite iron What's the maximum amount of messages the fetch method will return? https://old.discordjs.dev/#/docs/discord.js/main/cla...
How can I use custom emoji with my bot? 2 messages
small tide like Lara discord bot
how would you code a bot that sends a random 6 character code to your dm's and if you type the code 2 messages
DiscordAPIError[40060]: Interaction has already been acknowledged. 10 messages
sleek shuttle I have no idea how this error is occurring, can someone help me out?
Remove user from all private threads 15 messages
pliant swift As described - I have the user added to a private thread and want a way to remove the user from their private threads, w...
cannot delete guild command 3 messages
viscid anchor i think i accidentally posted commands as both guild and global, so now in one server i have two copies of commands but ...
Discord JS Version 3 messages
rare burrow What is the most stable version of discord.js?
What happened 2 messages
upper torrent I have this error TypeError [ClientMissingIntents] in node, does anyone know why it is and how to fix it?
Get channel from context menu command 2 messages
gaunt ether Is it possible to get channel, which was selected by user, when he executed avatar contextmenu command?
SelectMenuBuilder [deprec] vs StringSelectMenuBuilder 9 messages
paper sluice What's the difference between the two besides the SelectMenuBuilder being deprecated? Do I need to change anything else ...
reply to replied message 4 messages
timber night I'm trying to create a morse decoder. Right now I need to copy and paste morse code to command option. But I want to rep...
Creating ScheduledEvents 4 messages
robust sentinel Hello ! I was trying to make a command that will start a ScheduledEvent with the time given ( I did all format to get it...
No handler available for this interaction (ApplicationCommand > add) 4 messages
sleek shuttle My code was working fine a day ago, what does this actually mean?
Command Buttons 5 messages
viral egret How i do that when a button is pressed it sends another message with different information
Why it isn't working (no error) 4 messages
wraith ore ```js const { EmbedBuilder, SlashCommandBuilder } = require('discord.js'); var timeout = []; module.exports = { da...