djs-questions

13317 threads · Page 78 of 267

Cannot read properties of undefined (reading 'Guilds') 9 messages
verbal sentinel ```cmd C:\Users\Administrator2\Desktop\discordbots\Core-main>node index.js C:\Users\Administrator2\Desktop\discordbots\C...
node @discordjs package
Query about Modals 21 messages
hardy briar Quick query, I'm using the short style in modals to collect demographic data and I'm not too sure where it is but. ```j...
Can't use method "getString()" on interaction.options 13 messages
upper wyvern Hello, I've been searching for some time now but I couldn't find why I can't use the "getString()" method on the options...
Discord bot 3 messages
lime thorn Is it possible to turn my discord account into a bot?
Error Npm Install 8 messages
wide ivy Node: v18.17.0 $ npm list discord.js [email protected] /home/ec2-user/Tsundere-Bot └── (empty)
node
How to make a leaderboard command with keyv? 6 messages
blazing pulsar Hey! I’m running the latest version of djs and using v 19 of node. I am using keyv for my economy commands and I would l...
Community mod 15 messages
fierce lava Hi ! Can bots disable community mode?
but receiving commands but not responding and not restarting 46 messages
near gate Hi! I've got a problem with my bot. It works fine most of the time and restarts correctly every day. However, it sometim...
TypeError: Modal is not a constructor 5 messages
long river I am recieving this error even though I am fully up to date with latest release?
how to do this? 4 messages
high igloo I dont understand how to do this for example
error 12 messages
peak widget as
What is happening? 10 messages
queen parrot I'm using code from here: https://github.com/Psiol/awesomebot Running in bun 1.0.0
bun
The simplest way to add the number of words in the sent message as points to the user? 5 messages
severe nexus I'm trying to do something. When a new message is sent, add the number of words in the message as points to the message ...
Sharing Question 3 messages
undone karma Does the API calls like 'member.ban' work on the shard it's executed on? And does fetching users work just as well even...
node @discordjs package
Event Emitter emits custom event twice 3 messages
gusty thistle ```js client.emit("loggerAdd", loggerData) console.log("emitted") ``` ```js client.on("loggerAdd", () => { console.lo...
How i do that? 2 messages
harsh oracle Just how?
how can I do this ? 25 messages
elfin bronze how can I do this ?
How can I make a /emoji-steal command? 3 messages
thin solar I want to make a slash command named /steal-emoji and you enter the emoji id from another server and when you run it it ...
how to add a listener so if someone sent message in the server, the bot does action ? 40 messages
covert nova i want to make console.log that there is a user sent message .. how to do that ? it's like a listener ig .. i used this ...
How to get the user's "custom status" and "about me" v14.9.0 12 messages
silent kettle I want to get the user's "custom status" and "about me".
node
Does <GuildMessageManager>.fetch({ limit: x }) return a sorted Collection of message ? 4 messages
dawn thistle Hi When I call the method **fetch** from GuildMessageManager, I'd like to know if we can be sure that the collection re...
Error ; FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 7 messages
lucid goblet Good morning, for a few days I have had this error which occurred even though I have never had this error. Could you hel...
node
weird UnknownInteractionError 16 messages
gentle vector i've sent my slashCommand file, i just get randomly UnknownInteractionError on the first run of command.
Bot goes offline after like a day 64 messages
ebon spade I host my discord bot has a file "warn_bot" so I write cd ... then node warn_bot.js the bot works flawlessly but after l...
Is there any way I can edit an ephemeral from the message? or by message id? 3 messages
elfin bronze await interaction.update({message: t.msg, content: `teste`, embeds: [], components: []}).then(msg =>{msg.delete()})
Application didnt respond/No command matching was found 22 messages
round dirge my slash cmd didnt reply and in the terminal, it says "No command matching ping was found."
Not getting the interaction reply message id 4 messages
jovial girder Hey there, im trying to get the message id from a interaction.reply, how would one tackle this? I am trying the followin...
Message Commands 5 messages
heavy coyote Hey, I am new to Discord.Js and I want to rewrite my bot here, and I saw that there is nothing in the guide about messag...
Error format 9 messages
mellow dragon Hello ! I'm testing to create a channel when the category is full. I get this error in a catch() of create(): ```json ...
ping.js is missing a required "data" or "execute" property 17 messages
Bypass the limited choices for string options on slashcommand 3 messages
jovial girder Hey there, I was looking at some bots and I found a music bot which allows the user to do `/play` `name:I'm still` and i...
edit existing Embed 5 messages
fringe girder Hello guys, is there a way to edit an existing Embed? I tried the Guide on Discord.js Guides, but it didnt work :(
node
Updating Select Menu 16 messages
sick moss Hello, I need to refresh the select menu, so nothing would be selected and my description would be updated. I saw the on...
Weird roles issue 5 messages
thorny breach ```java const { Events } = require('discord.js'); module.exports = { name: Events.GuildMemberUpdate, async execute(...
bot appears offline after first reply 48 messages
honest lodge My Discord bot goes offline after I send the first reply, but it still appears active on the terminal, it does not throw...
Is it possible to save hidden data in embed? 13 messages
gentle vector Is there anyway to save hidden data in embed, because i have command sending an embed and that embed has buttons, after ...
guildMemberAdd - Canvas 11 messages
fierce lava Hello, when a member joins my server a canva is generated the problem is that if my member has special characters in his...
Limiting interaction to a specific user 8 messages
umbral thorn Hi, I'm working with interaction that uses buttonbuilders. Is there some way to limit the interaction to a specific use...
Adding SubCommand to commands. 8 messages
hardy briar I'm using this snippet to load my slash commands. ```js // Function to register commands from the "./commands" director...
Frequent inconsistent connection timeout on Raspberry Pi 5 8 messages
tranquil jewel I made a bot that works fine on my pc and decided to purchase a RPi 5 so I can keep it running even when my pc is off. ...
Why does this shows error? 17 messages
error getting the value of a embed's field. 27 messages
lucid bolt In this ticket sistem when a ticket is closed it gets a specific value of the first field of the embed message that the ...
I am new to Typescript and I am trying to convert my Js code to ts 23 messages
Editing embeds to preserve original content 25 messages
slate abyss I have this set into an embed builder in a listener.ts file: ```ts .setDescription(`Ansøgning fra <@${interactio...
'MessageEmbed' is declared but its value is never read. 72 messages
rugged jackal I have no idea why this has happened, its my first encounter with this error.
Event, guildMemberRemove is emitted when someone got banned 4 messages
molten moss The document says the event is emitted when a member left or kicked, but it is also emitted when someone got banned. The...
node
Preventing Unknown Interaction Crash 6 messages
graceful lodge i get "unknown interaction" error at random times... like sometimes a button works fine and sometimes it gives the said ...
Anyone Know how to catch this error so the bot doesn't go offline? 4 messages
warm pagoda ```Error: WebSocket was closed before the connection was established at WebSocket.close (C:\Users\Admin\Desktop\Disc...
Subcommands show up as individual commands 3 messages
bronze oak Hey! I'm having some trouble with commands and subcommands. I've already implemented the code for /count create and /co...
How to check if user has 2FA enabled or not 3 messages
tribal thunder I viewed the docs and the mfaEnabled is only for bot owner. Is it not possible to get other user status if they have 2FA...