djs-questions

9202 threads · Page 85 of 185

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'...
1003448629866020986 1150878580193116250
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 "...
1150878498534199426
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...
1150878580193116250
Slash commands options 1 messages
bitter sorrel Hey, I wanted to know if I put a limit of like 90 on an interger option, does it checks only on the client-side or on th...
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...
1150878580193116250
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...
1150878580193116250
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...
998292157150535700
(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? ...
1150878580193116250
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...
1150878580193116250 998292157150535700
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\@...
1150878580193116250
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 2 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...
1150878580193116250
can't receive event (no console message) 34 messages
gilded wren i am trying to receive a user joining but i don't seem to receive it, don't know why...
1150878580193116250
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...
1150878580193116250
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
1150878580193116250
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.
1150878580193116250
I need help with my Discord bot 1 messages
iron violet Hello! I need help with my Discord bot. I have already set the status (of the bot), but when the bot starts it is not di...
1150878580193116250
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...
1150878890307358882
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...
images in an embed don't load 16 messages
native magnet i'm creating an embed which contains an image in it. it's been working in numerous test servers, but recently they haven...
1150878580193116250
website doc 13 messages
edgy condor idk
998292157150535700
why does this work in dev but not production 4 messages
fathom cliff ```client.guilds.cache.get(CONFIG.guildId).channels.cache.get(CONFIG.siteLogChannelId).send('Bot started');``` on my de...
I am getting this following error 11 messages
warm scaffold ```js if (interaction.commandName == 'gerenciar_auth2') { //interaction.deferUpdate() ...
check to see if new channel is a category or a text channel 7 messages
untold imp is there away to see if the new channel is a category or text channel and only do something if so? ```js client.on("cha...
VS code autocomplete 8 messages
bitter cedar My vscode isn't showing me any suggestions for auto complete
1150878580193116250 998292157150535700
Send video as attachment from url 12 messages
digital nova I'm trying to send a video as an attachment but I'm getting an error ```js { url: 'https://cdn.discordapp.com/atta...
I need help with used-commands-logs in console. 2 messages
verbal sentinel __**https://mystb.in/BusesDevonMarijuana**__ - **code** I want to make used-commands-logs. When I type `/music play son...
1150878580193116250
How get arguments in slash command? 12 messages
last nest Registration: ```js const data = new SlashCommandBuilder() .setName('balance') .setDescription('Просмотр баланса') .addU...
How add arguments to slash command? 5 messages
last nest How add arguments to slash command and read it? ```js await bot.application.commands.create({name: 'test', description: ...
GuildAuditLogEntryCreate does not provide a guild 12 messages
onyx wasp in the documentation it says that the GuildAuditLogEntryCreate event a guild provides. but it seems to always be undefin...
1150878890307358882
Different modal IDs still trigger awaitModalSubmit multiple times 7 messages
zealous nest I need the user to click the button and enter feedback in the modal. After submission, update the embeds in the original...
How get bot latency? 9 messages
last nest `bot.ws.ping` return `-1` `bot.ping` return `NaN` `Date.now() - message.createdTimestamp` not is latency
How to mention slash command? 4 messages
last nest How to mention slash command like in the screenshot?
can you set custom properties for a guild member? 2 messages
red saffron let's say i want to store the exp of a given guild member. can i add a property to their guildmember object, or do i nee...
How to make a button open the modal after clicking it again? 3 messages
zealous nest I have a button that lets the user enter feedback. But if the user closes the modal midway, this button will become unav...
Reply to a message as bot 4 messages
leaden topaz This is less a question of help and more of curiosity, In Discord JS I know you can reply to the interaction using "`in...
Updating ephemeral 37 messages
timid inlet Hi, is it possible to update ephemeral in a message after it's been deferred, in v13 it was, can't find if it was remove...
Check if a member is already on timeout 15 messages
verbal tangle ```if(member.isCommunicationDisabled() === true) return interaction.reply ('User already muted')``` Why is it returning...
How to get all channels in a guild? 56 messages
buoyant epoch it looks like there is no way to get all channels in a guild, some posts were referring to .cache but thats not a real s...
1150878580193116250 998292157150535700
Service Unavailable 5 messages
jaunty crescent My bot is running for 23 days with no issues. I came across this following error trying to delete a channel: ``` HTTPEr...