djs-questions

9202 threads · Page 120 of 185

I am getting random undefined errors? something is wrong with discord.js 35 messages
regal spear I need some help with this.
i was first useing replit but peaples keep saying its bad so i exported the code to visual studio 6 messages
high flicker but now i cant find how to run the code :/ ps: its in my browser cose for some reason my pc dont want to downal it
error with pm2 nodejs server 2 messages
pseudo compass SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (intern...
help with buttons 55 messages
wet pier is it possible for the bot to send another message after clicking a URL style button?
Hide Embed Content 12 messages
viscid zinc So I have something like this working for my bot. Essential the bottom embed tells the bot to consume any reply made to ...
Is there any way to know when a user has purchased or cancelled/not renewed a server subscription? 23 messages
ebon pond Couldn't find anything about it in the guide. I'm on `14.11.0`. Thank you!
Autocomplete failing to load choices 38 messages
snow galleon Here is my code: ```JS async function handleAutocomplete(interaction, gamesCache) { console.log('handleAutocomplete...
bump reminder with discordjs 21 messages
wet pier how can i make a bump reminder for disboard with discordjs?
applied Tags 42 messages
wet pier so im trying to make my bot send a message when a certain tag is applied to a thread ```js client.on(Events.ThreadUpdat...
Exit the Client Ready event 7 messages
jolly hare Good evening, I have a js script which is used for a cron task, so I would like it to stop by itself after execution, bu...
interaction.reply and web3 library issue 6 messages
wind path I receive an error during `interaction.reply` . I use discord.js (ver. 13.16) and web3 library to send transaction from ...
Needing help with turning a discord bot online. 46 messages
versed dock 🙏 The bloody video I followed isnt working for me. Needing some help here.
Bot staying online when code isn’t running 4 messages
scenic steppe In Discord.py, when I stop the code from running the bot account instantly goes offline. Why does it take a few minutes ...
shardCreate/ShardingManager with shards: 'auto'? 6 messages
slender mirage Possibly a dumb question about sharding — I apologize if it is. I'm using `shards: 'auto'`. This is because for this sp...
How to get a list of all pinged members in a message (not interaction) 9 messages
sage aspen ye
Question 15 messages
viral girder So, I am just wondering how do I make an application form with a context menu popup and send results to a channel?
Bot role with emoji 19 messages
lean pond Hi, I wrote the code for the bot. The essence of the code: When writing the !create command in the chat, the bot displa...
send message to user in PresenceUpdate event 31 messages
hardy phoenix How can I send a message to an user when the PresenceUpdate event was called?
1003448629866020986
Dynamic Command Arg. 5 messages
stoic wave Hi, can i do dynamic command arguments with completion? For Example `/trade offer <user> <item>` `<item>` Should have Au...
Need Help with Launching Multiple Shards Simultaneously in Discord.js 6 messages
opal osprey Hello everyone, I'm currently working on a relatively large bot that utilizes more than 200 shards. We're receiving a m...
998292157150535700
Modal is not showing after selecting an option 22 messages
wooden wharf Help me pls gonna send the code
conversion of ApplicationCommand to SlashCommandBuilder object 45 messages
dense summit is there a way to convert `ApplicationCommand` to `SlashCommandBuilder` object? coz the object received from fetching th...
discordjs managers 9 messages
lethal spire Hello. I'm making my own discord api wrapper module with @discordjs/core, @discordjs/ws and @discordjs/rest, but do you ...
998292157150535700
SequelizeDatabaseError because of array? 5 messages
wispy mountain Hello 👋 So I am trying to make a database This code works just fine ``` const Sequelize = require("sequelize"); const...
How does RequestManager work? 5 messages
river wave I was looking at the source for `@discordjs/rest` to see if I should stop the sweepers (*since I only use REST, trying t...
998292157150535700
Emoji shows in a server but not on another (host on a third one) 6 messages
sacred dirge Hi, i'm wondering why the same embed show differently on a given server but not on another. Both are community servers. ...
how to add tag to thread? 2 messages
hasty elk I want to add a tag to a thread
help with function(?) 2 messages
wet pier trying to make an if statement out of the not scrambled word if that makes sense https://sourceb.in/gxwDVtkYvN
Weird bug (?) with typescript and SlashCommandBuilders 7 messages
waxen jay I've ran into a weird issue with ts and SlashCommandBuilders
`guildCreate` event doesn't give the discord user ID who added a bot inside guild except super admin 6 messages
granite ginkgo When the `guildCreate` event is triggered, I am only able to retrieve the `ownerId` of the guild. However, when a modera...
guild members data not refreshing on .fetch() 12 messages
toxic elbow ```js async function fetchMember(memberID) { const guild = await client.guilds.fetch(guildID); const guildFetched = ...
Bot not seeing all users in v14 19 messages
spiral cairn I'm trying to update my bot to d.js v14 and I am running into a problem where the bot does not cache all users of the gu...
userUpdate event is not being emitted 123 messages
eager trellis I want to have an UpdateUser event but I got an intents error.
how to add slash commands to a discord bot 3 messages
sturdy moon I tried this and it didnt work, I followed a tutorial to make it, I dont know how to code, and I have no idea what versi...
Using Buttons Properly 5 messages
wispy mountain Hello 👋 So I am creating a staff application Modal, I haven't actually gotten to the modal part of things yet tho ahah...
Getting a Type Error on getApplicationCommand function 16 messages
wispy mountain Hello 👋 I have been learning how to make a discord bot and wanted to make an advanced command + event handler. One of ...
998292157150535700
what this mean by this 19 messages
silent pewter idk what this mean about modules
Use a webhook in a forum channel 18 messages
wanton fox We can create webhooks in forum channels but can we send messages with the webhook in a specific forum post ?
i need help 5 messages
silent pewter what do this mean
How to update a v12 bot to current 318 messages
dire sundial i made a bot "rick-bot" 2 years ago and it has been working fine until the 3rd May 2023 and i have the replit but i didn...
Cannot send an empty messag - embed 7 messages
toxic elbow ```js const embed = new MessageEmbed() .setColor('#000033') .setTitle('Achievements') .setDescription('Here is a list o...
V12 msg.content = empty 9 messages
toxic elbow as you see in title ``msg.content`` return empty string
Would i be able to get help from some people updating my older code to a newer version? 6 messages
night hearth Title explains itself. I have some code that I have form an old bot I made before and now, I'm looking to revive said bo...
messages not being read? 17 messages
torpid hazel hello! i have the following code and when i use the command it does not run the code under it, so i added the line to lo...
cant get slash command to handle 9 messages
twin ibex Im following this guide (by the way, I can't believe this guide spends so much time writing extra code to build director...
Handling error? 41 messages
loud agate I guess its an error in my command handler. as No commands will register
Editing a button issue 5 messages
lunar cedar So im basically trying to make a slash command that edits one of 2 buttons in Embed Message. And after invoking command,...
Module Not Found errors, trying to use @discordjs/core v0.6.0 with nextjs v13.4.6 24 messages
grave shore A totally fresh project, I assume nextjs and @discordjs/core might be having some conflicts, but I don't find zlib-sync ...
998292157150535700
Why does this code result in the screenshot? 1 messages
Get multiple user 37 messages
pliant sun i want to do is only users that got pinged in that content can use the cmd otherwise you cant use it