djs-questions

9202 threads · Page 88 of 185

Termux - npm install discord.js > error 128 1 messages
wary brook Could anyone help me? I'm having this issue on Termux and I can't install Discord.js
998292157150535700
User.client.presence is null 9 messages
rotund birch HI! I want to detect if user is on discord mobile version or on desktop/ web one. In documentation I try to get it t...
Anyone knows how to make a collector from a previously ran command disable after running a new cmd? 5 messages
timid marten Anyone knows how to make a collector from a previously ran command disable after running a new command?? So lets say I ...
1150878580193116250 998292157150535700
new EmbedBuilder().from(...) is not a function - since when? 5 messages
odd igloo Error: ```js TypeError: (intermediate value).from is not a function at Object.execute (C:\Users\truly\Documents\src\...
1150878580193116250 998292157150535700
Message content is empty despite of intents 3 messages
frozen tusk Hello! I'm trying to get the content of the message being reacted to with my bot but the content is always empty. I have...
Unknown Interaction 10 messages
mossy notch I keep reaching the Unknown Interaction error as showed in the picture. Do note that I have a defer on each file as I am...
1150878580193116250 998292157150535700
Is create-discord-bot maintained anymore? 7 messages
wooden dawn What is the future of create-discord-bot?
1150878580193116250 998292157150535700
GuildMember extends Base implements TextBasedChannel ??! 4 messages
vocal vault Is this a docs error?
hey Guys, quick question 2 messages
latent hill do you know how many times i can chaange my discord varnity url of the server per day?
Get Original message or interaction by id 11 messages
blissful ferry Hello I want to get the originalMeesage or interaction by id, What can i do it?
Removing last embed. 6 messages
hardy briar ```js const handlers = require("../handlerLoader.js"); const { EmbedBuilder, AttachmentBuilder, ActionRowBui...
1150878580193116250
Edit last message 5 messages
void siren How can edit last last message in voice channel
No types for @discordjs/core/http-only 31 messages
verbal nebula so `@discordjs/core/http-only` isn't giving any type declarations for some reason. easy workaround is to just import the...
1150878580193116250 998292157150535700
Error in discord.js v14 4 messages
velvet latch ` throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ...
Mass adding of roles 10 messages
tidal yoke When running a mass adding command, does discord take care of the rate limit, i.e., gives it in batches, or does that ha...
Empty Array when trying to get Guild Application Commands 7 messages
severe dragon I'm trying to retrieve all of the application commands from a discord.js slash command interaction. I have the below cod...
1150878580193116250
client undefined 9 messages
turbid oxide I got this code to emit a custom event in my database manager class : ```js console.log(this.client); <== works ...
problem with interactionCreate 9 messages
velvet latch i am receiving this error `/Users/macbookdrink/Desktop/Rito Gomes/events/discord/interactionCreate.js:17 command.run...
1150878580193116250
How is the documentation generated 6 messages
twilit reef I see you might use @discordjs/docgen to make the docs.json file but how do you turn that into an actual website with a ...
998292157150535700
Program can't locate file. 56 messages
hardy briar > viewCaptcha.js ```js const handlers = require("../handlerLoader.js"); const { EmbedBuilder, AttachmentBuilder } = requ...
1150878580193116250
Bot that goes down for no reason 8 messages
velvet basin Hello, I have my bot discord. I run the script, it launches the bot and the bot is connected. But a few minutes later, t...
Attaching local file in embed. 9 messages
hardy briar So i'm using this code. ```js const handlers = require("../handlerLoader.js"); const { EmbedBuilder, MessageAttachment ...
1150878580193116250
Split command 10 messages
inland merlin Hello, I'm asking for help because I don't even know how to implement this I have 2 commands **/creative work** and **/...
private message 5 messages
dark schooner I have a strange issue occurring when trying to read messages in my Discord Bot DM. If I remove my Discord bot from my s...
Rich presence for Electron application 4 messages
lament veldt node 18.12.1 electron 23.0.0 discord.js 14.13.0 how can I setup custom presence like in attached screenshot for my ele...
1003448629866020986
Rich presence for Electron application 1 messages
lament veldt node 18.12.1 electron 23.0.0 discord.js 14.13.0 how can I setup custom presence like in attached screenshot for my ele...
1003448629866020986 998292157150535700
Upgrading from djs v12 (commando) to djs v14 (and sapphire framework) - Unsure on how to Parse Types 8 messages
placid notch Hello! I have recently started upgrading an outdated open source project, and got stuck for a couple days on a specifi...
problème getString 3 messages
rich pulsar j'ai un problème quand je lance mon programme en mode debug il y a un message d'erreur qui apparait et qui dit que getSt...
1150878580193116250
"Application did not respond" 5 messages
sudden hill I can't find the error, and I've tried incredibly simple commands like 'hello.js' where it literally responds with hello...
Interaction already replied on bot restart 7 messages
sonic stag Hello, I am getting the interaction already replied when my bot re-deploys after changes are pushed to github. It seems...
Client cannot login 77 messages
oblique musk After 6 months of running, I began having random issues yesterday with my bot not responding to interactions, and eventu...
How to end the typing indicator without having to send a message in the channel 3 messages
silk talon You can start the typing indicator for a channel by just doing `channel.sendTyping()`. You can stop the indicator by eit...
1150878580193116250
External buttons, QOL. 3 messages
woven crow Using external buttons (the ones that redirect) is there anyway to make the button go to the site without asking for con...
Pulling API Data in DiscordJS 3 messages
icy pine So, I'm not a pro and I don't understand what the docs are talking about for pulling data from APIs, so can someone help...
what is the problem 18 messages
dire wing i have a problem but idk what is it
I don't get a command 15 messages
frank thicket Hello, I'm testing a code so that when a person enters my roleplay discord by entering !register Name_Surname, the bot w...
Im trying to set permission for 10-12 users 18 messages
willow summit Im struggling with the way discord.js `<Channel>.edit()` works, cuz i can't pass all users as array for example I trying...
1150878580193116250
Websocket not working 60 messages
tall sleet I am not receiving any events or even if I do it just cuts out in 5 second
Question about modals 7 messages
outer forum i want to make a login page like websites have using discord-modals, is it possible to do this somehow by using database...
Prevent link embeds while sending a message 6 messages
digital nova How can I prevent link embeds while sending a message? I'd like to avoid `<url>` if possible since I'm working with user...
How to handle bot restarts with sharding 4 messages
ember ibex So basically we are running into the following issue: We have an discord bot, built with typescript which is clusterd a...
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent 22 messages
fringe sluice This is my code : ```ts const message = await interaction.reply({ embeds: [embed], ephemeral: true, components: [row] }...
Issue: discord.js ^14.9.0 - TS - 401 Unauthorized 13 messages
visual locust Hello, When trying to put permissions on the commands in the integration part, it throws me a 401 error. Need help pl...
1150878580193116250
listening to buttons... 37 messages
lucid bolt this is the handler for components that i use, but i want to be able to listen to buttons also only by the first argumen...
why i cant paste in node js 3 messages
lost river why why i cant paste in node js
1150878580193116250
How to refresh Select Menu after interaction? 3 messages
faint fox Hello! I'm trying create a role select menu that refreshes after after a selection so that people can select a role and ...
role.members returns undefined 44 messages
sage kestrel This property was working fine but then suddenly it stopped working. i am using fetch command to load role using id.
How do I set the request timeout to a larger period of time? 3 messages
spring thorn I'm trying to make my bot send a file to a user -- it's an automated exe compiler for NodeJS scripts that sends the exes...
Emoji order not being followed 40 messages
scarlet geyser So I've been having this issue where reacting using ```js await message.react(emoji) ``` does not work as intended. My ...
Collector o client.on 1 messages
mental frigate What's better to use, a Collector or client.on(Events.InteractionCreate)?