djs-questions

9202 threads · Page 159 of 185

Error executing buttons 8 messages
dim ether ```javascript if (interaction.isButton()) { const button = interaction.client.buttons.get(interaction.customId); ...
autocomplete not working 12 messages
west iron https://srcb.in/pyDqFiRLS2
How i can Successfully Lunch Shard ? 24 messages
dim dock [SHARDS]: Launched shard 0 ?
I can run multiple bots with a single discord.js file, but I can't split these bots into shards 2 messages
tiny gulch I have multiple bots with the same function, some of them now require shards, when I try to run them with shard I get th...
bot cant go online 3 messages
void sun idk what happened
Unable to create a new channel 10 messages
old stream So I'm trying to create a new channel via ```js guild.channels.create({ name: "mafia", parent: parentId, t...
StringOption and IntegerOption return null 20 messages
real cradle I am trying to write 2 option values into a sqlite database. Although, the 2 options always return NULL. ```module.expor...
Issue with making a Dynamic Help Command 19 messages
deep ledge Some issue with .addFields?
obligation to update the role on the user so that the bot understands that he has a role 6 messages
analog lynx Good morning. I try to list all users who have a defined role. the problem is that if I don't update the role on the per...
Help setting up TypeScript DJS Project 5 messages
distant kettle Hello there! I'm trying to set up a new Discord bot using TypeScript instead of JavaScript, and I want to find out where...
Error handling within an interaction 15 messages
stable crown Hi! I have a slash command for my bot and given it is collecting a lot of data, I defer the reply at the start, how can...
How to listen for a user being timed out? 8 messages
final condor Hi, is there a way to listen for people being timed out like a bot.on("event") type of way? Thanks :)
Normal message modals 17 messages
waxen galleon Hello, I would like to know if it's possible to use Modals through normal messages since buttons can be used ? I tried b...
WS dies and never reconnects 4 messages
exotic flicker It has happened a couple times now that my WS just dies, taking the bot down with it. I have attached a commented log be...
ai 5 messages
inland swift can i create ai bot that will be stupid but over time, when it will be used, it will develop and become smarter and the ...
cooldown added to command not working 5 messages
deft heron Anyone knows why my cooldown isn't working to my commands, there is no error shown and the command works itself fine but...
EXP Boosts for Event Attendance 4 messages
south forum Hello! I would like to know if it is possible for the bot to know when an event is active? So let's say if my bot has ex...
Can't edit a message in DM sent by bot 3 messages
drowsy shoal - `discord.js@14.7.1` and node version `v18.10.0` I'm trying to edit a message in DM sent by the bot via a button press....
error 45 messages
rare snow Djs v14.7.1
Skip Trust This Domain Button 2 messages
random vine I am wondering is there a way to skip that button, ```javascript row.addComponents( new But...
interaction.update break emojis 6 messages
fallen dome Hello all discord devs <:wumpus_love:815963419559329874> I'm using custom emojis in an embed, no problem on the server ...
intents ? no functionned 25 messages
balmy widget my codage for the bot const Discord = require('discord.js'); const client = new Discord.Client({ partials: ['MESSAG...
Get all users 6 messages
graceful oasis How do i get all the users on the server?
Error is null when fetching recommended shard count 20 messages
muted beacon I am trying to start up my bot and when I fetch the recommended shard count it always fails, however, when it does fail,...
How to get name and avatar url from WebhookClient? 5 messages
paper oyster Is it possible?
Are interactions effected by rate limits? 22 messages
muted beacon My dev bot responds to commands perfectly but production continuously gets the `The application did not respond` error m...
Hey how can i send message embeds like bot and not webhook 11 messages
sleek loom please take note that i have no idea of bot programming
Better way to plugin slash commands support with existing msg content commands 22 messages
summer wagon Can someone suggest a way to plugin interactions with existing command structure for djs? like it's mentioned on djs gui...
How to handle message deletions when the message in question is already gone? 14 messages
thorn sand Helo! I ran into an issue where a message was already deleted and i cant get the bot to not throw an error "Unknown Mess...
How to collect user input in an event file after a button press? 21 messages
pearl hedge I'm attempting to create a message collector in one my event files. Essentially acting as a verification system, when a ...
Shards are fucked up. Random shards die every now and then and never respawn. 20 messages
charred raft Version: v14.3.0 This issue has been happening since discord.js v13 and I've never been able to figure out what's causin...
Autocomplete - "cache" choices list 22 messages
little temple Hello, I wrote a function to change voice regions and it uses an autocomplete list which is fetched from discord's voice...
Discord Shutdown Bot script 5 messages
inland nimbus Hi, can someone help me make a bot shutdown script
Automatically revive archived threads 3 messages
fickle spear Hello, I'm trying to do a simple thing. When a forum post gets archived, then automatically unarchive it. ```client.on("...
Daily function 6 messages
graceful oasis Hey guys! How can I create a function which runs once every day?
How to join 2 collections using map() 48 messages
fervent hollow I have mapped out these two collections: role.id & role.name. What I am trying to do is join them together so that the r...
Crash because of undefined _sharedAddOptionMethod 7 messages
distant bear I created a CommandConstructor but when adding options to it, it always gives me following error: ``` WizRepoBot\node_mo...
Why currency returns null? 5 messages
edgy mortar .addStringOption(option => option.setName('currency').setDescription('Select currency').setRequired(true).addChoices( ...
How to update node.js version in replit 2 messages
tired notch Help plssss
Help me with subcommands for slash 4 messages
zenith coral This is my code: ```const fs = require('fs'); const { EmbedBuilder } = require("discord.js"); module.exports = { na...
How can i get all members that have a specific role? 2 messages
drowsy crescent Like the title says. Cant find anything that wroks online. I tried using this: `interaction.guild.roles.cache.get('10627...
What is the best character set and collation for MySQL databases for Discord bot purposes? 2 messages
surreal remnant Hello! As many people use MongoDB, I do know Mongo. However before you say to just use Mongo, I personally prefer MySQL ...
inventory command not working 1 messages
gloomy haven code: https://pastebin.com/psqqn6Tq when i try it it only gives the ifrst item in the shop even if i dont own it (also a...
Find guilds where user has a certain permission 9 messages
lyric kiln I want to get all the guilds where a user has a certain permission (manage guild in this case). I've got something worki...
Error: ECONNRESET 14 messages
fallow coyote `node:events:491 throw er; // Unhandled 'error' event ^ Error: socket hang up at connResetException (no...
How can I display 'Bot is typing...' ? 7 messages
small tide How can I display 'Bot is typing...' ? And stop it? I know display it, but I don't know how to stop it.
not giving second role 5 messages
zenith cloak hi there, i'm trying to give two roles, and it doesn't want to give the second role (which is below the comment "Followe...
Is there a way to pass buffers containing gateway events to discord.js? 96 messages
spice zodiac read title
request command not functioning properly 12 messages
silk dagger making a req command, implemented a feature where the command can only be ran in a certain channel however, when command...
Adding options of select menu in if statements using select menu builder before it is sent 15 messages
thorny skiff I have a question about updating components. I have it so in the function it previously does up to this: ```js let m...