djs-questions

13317 threads · Page 86 of 267

channel is defnied but its says 9 messages
sharp glen const db = require('../../db/manager'); const { EmbedBuilder } = require('discord.js'); module.exports = async (client,...
Trouble pushing to heroku 2 messages
brisk trellis I'm trying to deploy my discordjs application to heroku, but i keep getting this error which I don't know how to fix: v...
Discord API Error with Setting Commands 5 messages
deep ledge I keep getting this error and I dont know why ```DiscordAPIError[50035]: Invalid Form Body 1.options[1].options[0].name[...
How to change the status of our bot on visual code studio 4 messages
halcyon oyster I have a question How to change the status of our bot on visual code studio
message not being read 96 messages
tough jacinth The bot is not reading the message and replying
My commands not uploading 33 messages
opal stump I didn't moved anything strange but my commands don't don't update once I restart my bot
Build Error with ts-node 26 messages
shut forum Hi, I'm using typescript and I'm getting a strange error that isn't actually in my file! ```Error: Failed to imp...
node
Fetching a slash command reply's ID before it's sent 5 messages
brisk solar Title basically explains what I'm trying to do. I'm creating a post system, but instead of constantly doing a chain of ...
"Interaction has already been acknowledged" after invoking a command twice in a row 3 messages
mint dagger Good morning, I've been encoutering an issue when trying to execute a command twice in a row. My button interaction c...
error 15 messages
hexed wyvern помогите (discord.js)```js node:internal/modules/cjs/loader:1051 throw err; ^ Error: Cannot find module 'C:\Users\G...
node
fetchWebhook and WebhookClient 6 messages
royal parrot Hi, As far as I know, instantiating a WebhookClient create a new Rest instance which is not a good thing if we already h...
slow deferUpdate 13 messages
scarlet geyser So I have been doing quite some debugging to increase my command speed and I noticed that `await interaction.deferUpdate...
Possible issue on IPhones, is this a DJS or Discord bug? 3 messages
full yew Reported by one of my users "Visible on an iPhone 15 pro and another player with an iPhone 14 reported it. Other iPhone ...
@discordjs package
Invalid Webhook token, code: 50027 12 messages
bot.guilds.cache.get("ID").members.get("ID") is not a function 3 messages
atomic ermine It used to work on old d.js version but now it doesnt.
Crashing on token switch 10 messages
brittle prawn For some reason, when I am switching the token for my bot the node modules don't like it and crash the application. Does...
node
Soundboard Missing? 31 messages
alpine olive Seems there is nothing related to soundboard on the docs. I Figured they'd be accessible similarly to how Emojis are und...
Soundboards missing? 16 messages
alpine olive Seems there is nothing related to soundboard on the docs. I Figured they'd be accessible similarly to how Emojis are und...
Mysql ORDER BY ... DESC 3 messages
silver warren Hello ! I am because I need your help, logic lol. I've created a ranking system with points, so far so good, I'm using...
Is it possible for my bot to see which message I've selected for reply? 7 messages
tight sail Essentially, if I select a message and try to reply to it, is it possible for my bot to see the message I'm trying to re...
Fetch data from the "new" members menu 4 messages
nocturne dragon Looks like in the new member menu discord provide who invited the member, but I can't find any support from discord.js t...
node
interaction is not defined 11 messages
sleek nacelle ```const { EmbedBuilder } = require('discord.js'); function errorMessage(message) { const reply = new EmbedBuilder...
RPC help 4 messages
visual arrow I want to only run this on my bot and no one else how can i got about that ```const DiscordRPC = require('discord-rpc'...
RPC node
Cannot find module "@discordjs/rest" 11 messages
half hound Whenever I try run any script that calls the discord.js library, I receive the following error: ``` Cannot find module "...
bun
esm loader error 5 messages
graceful pivot `C:\Users\abhay\OneDrive\Desktop\shelar academy iit\fixed_kumo_idk\RAT_Builder>node index.js (node:4064) ExperimentalWar...
node
StringSelectMenuInteraction doesn't have the `values` field? 9 messages
sonic spade This been driving me insane everytime I try to use `i.values` ts scream at me cus `values` is not a real field. Code run...
node
get category name of channel 7 messages
unreal idol Is it possible to get the category name of a specific channel? I want to list channels for a web based auto complete and...
node
Closed 2 messages
What to import when using the Client 22 messages
sullen rivet Hi guys, not really an issue regarding a piece of code, but I'm working on a little project on my own and I'd to know kn...
@discordjs package
(Kick_Members) permission 27 messages
iron violet Can someone add a permission for me (in the given script) that only people with the KickMembers permission can execute? ...
node
unable to access cache for member.roles 11 messages
ebon patrol for some reason the if(!member.roles.cache.find('')) is coming back as undefined. What did I do wrong? ``` const re...
Is there a quick and easy way to get a channels name by id? 14 messages
buoyant epoch this code drops an error so ig im doing it wrong ```js client.channels .fetch(message.channel) .then((ch) => conso...
node @discordjs package
only getting the user and the bot from interaction.guild.members.cache? 2 messages
node
code not working anymore, giving interaction failed 8 messages
thick steeple Hello, I hope someone can help me. I have developed a verification bot challenging myself and building something totally...
Unknown Interaction 26 messages
iron violet DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users\Anwender\Desktop\Hansis Manager\node_modules\@...
node
permissions in channel 9 messages
wicked meteor Here when checking permissions for a specific role in channel, if the role has Administrator whatever his permission is,...
DiscordAPIError[10062]: Unknown interaction 3 messages
granite hawk ```js async function handleReaction(client, interaction, challenger, opponent, embed, logs) { try { const co...
14.9.0 Client.on('guildMemberUpdate') Problem 44 messages
uneven belfry Hello! I am on discord js 14.9.0 and I am trying to use client.on('guildMemberUpdate') within an event file. The documen...
node
can't receive event (no console message) 35 messages
gilded wren i am trying to receive a user joining but i don't seem to receive it, don't know why...
node
client.channels.cache.get(channelId) returning undefined 34 messages
ebon patrol Hello, I'm unsure why a specific message is returning undefined from a channel. Could use another set of eyes since I've...
node
check if a variable is a interaction instance 2 messages
torpid holly Continuing from https://discord.com/channels/222078108977594368/824411059443204127/1171985032945094666. here's the func...
how can i welcome users? 9 messages
gilded wren so basically i want to welcome new users when they join my server
node
I need help with my Discord Bot 22 messages
iron violet Can anyone help me with my bot? The command is not executed and no error appears in the console.
node
not getting message content 7 messages
drowsy root when i tring log message object it shows but when i log content it returns empty string i did't get what the problem so ...
Reaction Error 16 messages
fading crystal ```js let lastNumb = 0; client.on("messageCreate", msg => { const num = Number(msg.content) if (num >= 0) { ...
Error when logging in 7 messages
wispy swift I get this error when logging the client in using deno `Warning: Not implemented: ClientRequest.options.createConnection...
deno
Why does my entire app crash when client.login fails? 4 messages
fathom cliff try { client.login(process.env.DISCORD_BOT_TOKEN); } catch (err) { console.error('failed...
Disocrd.js sharding 5 messages
drowsy root idk what i did wrong ibut iam an getting this error anyone know how to fix
SelectMenuBuilder Union Types 14 messages
queen glen I'm attempting to send a SelectMenu in a message but I'm getting this error ```Unhandled promise rejection: Invalid Form...
obj.forEach() does not work 28 messages
radiant dust I'm new to Discord ... so, no, I don't know what I'm doing ... & also no, I can't find any examples or discussion online...