djs-questions

9202 threads · Page 153 of 185

Interaction has already been acknowledged error. 7 messages
sudden creek Hello, this is my code that creates a simple selection box. This selection box is created when a command is ran. The fi...
Coding with Discord.js in Webstorm 9 messages
woven hinge Hello all, I'm having issues with initializing my bot in Webstorm using discord.js v14.7.1. The problem is with import...
Discord API Error: TypeError [ModalSubmitInteractionFieldNotFound]: Required field with custom id "u 2 messages
west iron https://srcshare.io/640774006649a477ba7aa962 error and code there
Button Interactions are "Touchy" 5 messages
dusk fern First off this isn't "Typescript as the URL states... Everything works, until after x amount of users interact with the...
how can i get user avatar url by id using discord api 19 messages
trail shadow how can i get user avatar url by id using discord api
Duplicate forum threads being created 14 messages
hearty stream Running : `Node v18.12.0` - `discord.js@14.7.1` I've got an application which dynamically creates forum thread channels...
Addchoices Error when trying to start the discord bot 6 messages
azure comet having the following slashcommandhandler discordjs version: ``discord.js": "^14.7.1"`` ``` module.exports = { data...
how can i get mutual guild between user and bot? 4 messages
chrome bobcat my bot is in around 50k server i am creating an dashboard so how can i get mututal server of user with bot
Disable after a click button 1 messages
random vine HI guys, I want to know how to disable after a click? How to get a button when interaction event is detect?
can you login with different tokens on 1 bot instance? 3 messages
charred sage Let say I have my bot code running on my server, If I want my users to let them personalize their bot by giving us their...
Delete last message in channel doesnt work 4 messages
outer vault Hello, so I am trying to delete the last message in a channel and then send a message. ```javascript const channe...
Is there any disadvantage when registering global commands on bot startup? 4 messages
fathom onyx I'm trying to create a bot that is simple to setup and run yourself, which would also require it to register its own com...
I need help on music command 4 messages
devout nymph Please help me to fix this…
types schema 8 messages
honest yacht Does discord-api-types provide some kind of machine readable schema? Preferably json but anything works. If not, is ther...
998292157150535700
Imported function is not being recognized 49 messages
tired scroll No matter what I do, it just won't recognize getChannel as a function it is being imported from index.js here is the fil...
How to communicate between shardings in discord.js 7 messages
forest sierra How can I exchange data between bot.js when sharding?
TypeError: Cannot read properties of undefined (reading 'FLAGS') 11 messages
candid dome I am creating an application (Bot in Discord) with NodeJS to interact with an AI through an API. When executing the app...
Need help with slash CMDS 18 messages
rancid wasp So I was just wondering how you add a prompt the commands so for example/ say`prompt:` Any one who has any pointers let ...
Export Bot Output to Google sheets 2 messages
lunar canopy I am trying to have my discord Bots channel output get exported to a google sheet when a user uses it. I tried setting ...
i need help with " await member.roles.add(role); " 9 messages
digital pawn Here's the code: ```ts import { SlashCommandBuilder } from '@discordjs/builders' import { Client, CommandInteraction, R...
How do you call a button interaction from a command file? 11 messages
radiant rose ```js const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Events } = require('disco...
How do I use Global Commands in Discord.js? 2 messages
radiant rose I was redirected here from the official Discord Developers server. I haven’t developed in discord.js for two years and I...
create channel 5 messages
timid hare Unable to create channel inside of category
GuildMember (options.getMember) 6 messages
last relic Hello im currently trying to get a guild member but i seem to get this issue Code: https://srcb.in/ndBGoKBDAz Issue: T...
No `Ready` event dispatached 3 messages
river wave I am using `@discordjs/ws` version `0.6.0`, and `@discord/rest` version `1.5.0`. It seems like I am not receiving the `...
998292157150535700
Trying to set the attachment a user gives as the embed image :) 12 messages
deft isle I have a suggestion command and it has the option to add an attachment. I want said attachment to be the embed image but...
998292157150535700
Is there a way to link a user inside embed.addFields ? 2 messages
grave tulip Seems that i only can link users inside the description field and not in custom fields.
Error occurred when install opus on centOS 7.9 5 messages
lofty ferry i have err when i trying to install discord js module on CentOs 7.9. And it return me an error when install opus part He...
GuildDelete Event somehow gets triggered when I restart my Bot 7 messages
vagrant sierra I have no idea what's happening but if my bot (docker container) restarts, this notification gets sent. A lot of inform...
Randomly broke 7 messages
dull wing I have been using discord.js 13.3.1 for a bit now, while yes I understand I should update my code has been running fine ...
`channel` property is nullable in ChatInputCommandInteraction 5 messages
near finch Why is the channel property inside a ChatInputCommandInteraction nullable? If it's a **chat **inputcommand, then it need...
are interaction id's and message id's unique across all guilds and channels? 3 messages
cerulean bloom i am storing guild and channel id's with my interaction id'd but if the interaction id is unique and a no interaction id...
Channel can be viewed by everyone when permission is set to deny viewing channel 17 messages
vast cloud My command creates a new text channel, it was working earlier but recently noticed it was allowing the everyone role to ...
guild.autoModerationRules.edit appending keyword to AutoMod rule 6 messages
eager nacelle ```js const { Client, Events, GatewayIntentBits } = require('discord.js'); const client = new Client({ intents: [Gateway...
Ping not working 12 messages
nocturne plank Code: ``` const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder(...
Buttons... 33 messages
dusk fern Built buttons into my slash command, they output correctly!. However once I added the event into `interactionCreate` eve...
Api error?? 23 messages
nocturne plank Idk what it meens The error: ``` Process exited with code 1 Uncaught DiscordAPIError DiscordAPIError[50035]: Invalid Fo...
how to get userName, tag and Id? 4 messages
summer coral I want to bring the user name, ID, and tag written on 'username' in `addStringOption`, how can I bring it? ```javascrip...
Global Chat 1 messages
civic falcon Is here someone who knows how to code a Global chat bot?
Can I fetch the `Application` of another bot? 9 messages
inner pebble tryna create a /botinfo command, and it would be nice to get some information about that bot's ClientApplication thingy
My Web app give me eror 4 messages
wet cape İnvalid request url
Event to detect whenever the member accept (or not) the rules on Rules Screening screen 10 messages
buoyant bramble I want to show a modal to user immediately after he accept the rules (to try to "restore" the unimplemented feature of i...
Difference between GuildMember#disableCommunicationUntil and #timeout 4 messages
full gulch Hi, I'm using Discord.JS v14.7.1, and I was wondering what's the difference between GuildMember#disableCommunicationUnti...
Handle multiple Autocomplete Events on the same Interaction 28 messages
sturdy dagger Okay so i am trying to handle more than one autocomplete interactions on one command> The command looks like this: ```ts...
GuildScheduledEvent#fetchSubscribers is not a function 12 messages
leaden tulip I try to call "fetchSubcribers" on a GuildScheduledEvent from a GuildScheduledEventUserAdd-Event. But it's always throwi...
Sending messages with Interactions 18 messages
dusk fern I have an unexpected result when sending a message with Intentions. ```js async execute(interaction) { await intera...
Is it possible to change modal submit button text? 6 messages
marsh sigil Is it possible to change the text on the submit button of a modal? e.g. Change Submit to Apply, or Send
Bitfields 6 messages
slender jewel Hi, I've been having an issue when trying to take the permissionOverwrites from one channel and trying to create a new c...
Buttons 33 messages
edgy laurel .
Weird Autocomplete Error 3 messages
modern mulch The error stems from the circled line