djs-questions

13317 threads · Page 27 of 267

Property 'voice' does not exist on type 'GuildMember | APIInteractionGuildMember'. 7 messages
cosmic briar Hi, how can I make this typesafe? ```js if (!interaction.member?.voice?.channel) { return await interaction.reply...
node
Destroy a client (logout) after using it 32 messages
signal birch So for the past 2 days i've been searching for a way to **logout** of the token after destroying it. Is there any way?
Slash commands not working 6 messages
worldly lake So I have registered my / commands and when I type them, I have a console log to show that it has received the interacti...
Fetching entitlements of an app 2 messages
rotund kiln Relatively new with the library, is it possible from a backend service to use discord js to fetch the entitlements of a ...
How to handle multiple slash commands simultaenously? 57 messages
frigid warren When multiple people run slash commands on my bot, it always makes the commands fail until the current process is comple...
@discordjs package
Handler 8 messages
cunning relic Does anyone have a good handler for djs v14 with slash commands, buttons, menus, etc?
node
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...
node
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...
node
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...
node
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...
node
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 ...
node
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....
node
Bot hosting problem 9 messages
tawdry vale i will give my code in message
@discordjs package
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...
node
leave (non command) 10 messages
ancient saffron Get this error when tryna leave server i dont own
Leave (NOT COMMAND) 40 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...
node
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 5 messages
sleek heath is there an event that listens for the start of activities in voice channels?
node
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...
node
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...
node
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 ...
node @discordjs package
Slash Command Not working 60 messages
vestal sable ## PING COMMAND ```js module.exports.run = async (interaction) => { const pingEmbed = new EmbedBuilder() .setAut...
node
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...
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...
bun
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....
deno
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...
node
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...
node
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...
node
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? 36 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...
node
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...
@discordjs package
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...
node
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...
node
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...
node
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 ...
node
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...