djs-questions

9202 threads · Page 26 of 185

message.embeds empty 11 messages
deep mountain I am working on a bot that checks the embeds on a message, but its just always empty, if I take the message link and tak...
1150878580193116250
running scripts is disabled 2 messages
late elk ive recently moved from Mac to Windows. ive got no problem running code in vsc on the Mac but on Windows it says my perm...
1150878580193116250
Delay Issue 8 messages
gloomy flame Hello there, I got bots in many servers but only in 1 server i face delay issue that need some seconds to execute. Ev...
Error while DM user 10 messages
carmine cloak ``` Cannot read properties of undefined (reading 'createDM') at Object.execute (E:\0giochi-miei\Js\bot discord\imper...
1150878580193116250
GuildScheduledEvent triggers 2 messages
hearty marsh Can anyone point me in the right direction? Trying to handle when a user subscribes/unsubscribes from a guild event. di...
1150878580193116250
Discord slash command 3 messages
crisp cliff Hello, I made a slash command - everything works well on the server, and I installed the user app, however I do not see ...
1150878580193116250
Registration Request on Startup 80 messages
candid sage I've asked AI as well and for some reason my bot just isn't launching properly. I'm not sure if it's related to discord....
1150878580193116250
Bot hosting problem 6 messages
tawdry vale i will give my code in message
998292157150535700
Automatic publish announcements 9 messages
atomic nacelle Hello, I have an announcement channel which I send webhooks to it and I want it to automatically send it to the servers ...
Shards are still being spawned 4 messages
stray pier I am attempting to restart my bot and getting these error messages. - The bot is not running elsewhere - This error only...
Duplicate entitlement event 25 messages
visual locust I don't understand why the event on entitlements returns the information to me twice. I am looking for a solution so tha...
1150878580193116250
leave (non command) 10 messages
ancient saffron Get this error when tryna leave server i dont own
Leave (NOT COMMAND) 38 messages
ancient saffron How do I leave a server through my VSCode if i don't own the server (i have no permissions to kick the bot) and I want m...
setNameLocalizations 8 messages
gleaming saddle Hello, with the localizations commands, I would like to make my setNameLocalizations clickable, except the only clickabl...
Embed image doesn't show since couple of days. 15 messages
obtuse mural I am not sure if it is discord.js problem. My bot once a day posts 3 embeds with images. In 2 of 3 embeds images are dis...
1150878580193116250
Interaction emitting 2 times 12 messages
buoyant basin So basically I have 4 buttons (3 for claim) and a reroll button (once an hour). if a user doesn't have enough currency ...
there is way to add options to input in modal ? 5 messages
wind ravine everyhting in the question i want a select menu in modal but i saw only possible to have input i saw in the doc there is...
Activities Event 2 messages
sleek heath is there an event that listens for the start of activities in voice channels?
1150878580193116250
Memory leak when sharding 12 messages
gaunt blade I'm experiencing a memory leak when using sharding in my bot, obviously memory leaks are hard to debug so I just would l...
1150878580193116250
thread.members.add is not a function 13 messages
carmine cloak Hi can anyone help me with this code? code: ```js const { getThreadId } = require('../util/database/getThreadId.js'); co...
1150878580193116250
Per Server Currency System 3 messages
bold fossil I know the currency system tutorial exists on the discord.js guide (https://discordjs.guide/sequelize/currency.html#file...
selectmenu dont working 11 messages
neat zodiac Hi, I'm making a ticket system in discord.js v14, but when selecting in selectmenu, it shows that this action failed and...
What is the best way to detect a change in server ownership when the bot happens to be offline? 11 messages
honest quarry Hi, I am using Discord.JS and am trying to figure out how I might change a server in my database's owner_id field when ...
1150878580193116250 998292157150535700
Slash Command Not working 60 messages
vestal sable ## PING COMMAND ```js module.exports.run = async (interaction) => { const pingEmbed = new EmbedBuilder() .setAut...
1150878580193116250
message event not working 8 messages
quartz junco sorry, accidently marked the previous post i made as "resolved" ```javascript import express from "express"; import Di...
message event not working 1 messages
quartz junco ```javascript import express from "express"; import Discord, { ActionRowBuilder, ActivityType, ButtonBuilder...
TS Bot Handlers not running with correct envs 45 messages
stable stag can anyone figure out why the handlers in this bot is not working? I have provided correct envs. https://github.com/Tea...
1150878498534199426
can't set role to user (user.roles.add is not a function) 11 messages
late pier If I have a code like this ```ts const member = interaction.options.getMember("user"); const type = interaction.options....
1150878890307358882
Button Image 22 messages
ionic monolith Hello, Is there a way to add an emoji to the button like so: I've been searching for quite a bit on this discord, webs...
1150878580193116250
How to check server's subscription without API call ? 11 messages
visual locust Is it possible to check the entitlement of a server without having to make a query after each interaction? I search alt...
1150878580193116250
Locate (multiple) images in post and repost to different channel 6 messages
hexed maple I'm able to read the original message, locate the image URL and repost a single image. However, if multiple images get p...
1150878580193116250
SystemChannelFlagsBitField 18 messages
buoyant maple Why is `new SystemChannelFlagsBitField(systemMessageFlagsChange?.new).serialize().SuppressRoleSubscriptionPurchaseNotifi...
This interaction failed, button not working, djs v14 22 messages
How to handle unhandled rejections? 35 messages
pure vapor My app usually crashes when a very weird unhandled rejection occurs, usually when it's an event where I don't have a gen...
1150878580193116250
client is undefined error 35 messages
stuck bane Hey, I have the problem that I get an error with "client is undefined" after I call my script via "const script = requir...
Why are my embeds not sent but Files are? 44 messages
pure vapor I'm using this payload in a raw `rest.post()` request and the files are being sent, but not the embeds. Why? I have base...
998292157150535700
npx create-discord-bot generates broken code 12 messages
ruby apex I'm picking up Discord.JS in order to expand my choices for clients, so I figured I should take a look at Discord.JS, ho...
1150878580193116250
Problem with guildMemberRemove.js (duplicate leave message) 22 messages
grave dock hi i have problem with my code, general when someone leave bot duplicate the message x2... but my guildMemberAdd looks V...
1150878580193116250
Is the promise rejected when a REST.post request fails? 6 messages
pure vapor I'm doing something like this and I'm wondering in which case the promise is rejected (when the body and all stuff is co...
Hello I can't solve the problem can anyone help me? 3 messages
slender pawn in V18.17.1 with npm i
Cron Job doing what it wants 5 messages
neat monolith I used cron job several times and I googled how to correctly use it, but my command here executes in different times whe...
1150878580193116250
Could someone help me with a problem I’m getting 18 messages
blissful oracle I run my bot from my pc using npm index.js or node index. Js cannot remember of the top Of my head and when I run it it ...
1150878580193116250
Can't get this to work Interaction failed discord.js 7 messages
supple jetty I've been coding a discord ticket bot that opens a private channel with a user after they've opened a ticket, I've also ...
djs v14.16.3 - unknown interaction 3 messages
golden verge so ive got this weird problem, when i'm developing the bot local everything works fine, but when i deploy it to my serve...
djs 14.16.3 - voiceStateUpdate - what do "sessionId" changes mean? 6 messages
split fable Hello, I have asked this in <#824411059443204127> before and someone replied, but never got an actual answer. I've got...
Making a bot - COMPLETELY new 9 messages
ancient saffron have no idea where to start, i have a chatbase bot that works on chatbase (an ai website thingy) and i want to link a di...
Cannot run node.js 3 messages
primal radish Below is the error I’m getting when running node index.js “node:internal/modules/cjs/loader:1252 throw err; ^ Err...
1150878580193116250 998292157150535700
Interaction has already been acknowledged 17 messages
blissful patrol Hi, I am making a Discord bot which utilizes interactions and message ids. Basically, whenever a message id is supplied ...
Following a tutorial from 2020 and unsure of how I'm supposed to define Intents. 29 messages
spring ingot I'm following this tutorial by Sethey17 to make a simple Discord bot for my server that would be able to bulk delete mes...
Discord.JS First Slash command guide not working 31 messages
tribal drum when I use the /ping command I get "The Application did not respond in time": I have deployed the deploy-commands.ts cod...
998292157150535700