djs-questions

9202 threads · Page 28 of 185

A collector that collects messages from a predetermined channel 6 messages
long violet ```js const collectorFilter = m => m.content.includes('discord'); const collector = interaction.channel.createMessageCol...
1150878498534199426
Thread fetchStarterMessage with Attachments 9 messages
soft aspen Working on a bot that detects when a thread is created in a particular forum, and then returns the first starter message...
1150878580193116250
ephemeral is not working on button interaction. 23 messages
echo iris I don't know the reason, can someone help me?
1150878580193116250 986538542350086175
More URL schemes on link buttons 3 messages
lyric rose https://github.com/discordjs/discord.js/blob/main/packages/builders/src/components/button/LinkButton.ts#L22-L29 I was h...
How deploy slash commands only in one specific guild 3 messages
open minnow I would like to register a slash commands only in one specific guild but not in the others in which my bot is. How can I...
1150878580193116250
Bot not starting invalid token 79 messages
summer hawk Yesterday, I coded a bot and got it running. I tried adding it to Ghostbot to test something, but it didn’t work. This m...
1150878580193116250
Shard Variables 3 messages
quick fjord ``` bot.once(Events.ShardReady, async () => { imgchannel = bot.channels.cache.get(process.env.IMAGE_CHANNEL); vidcha...
It doesnt work. 7 messages
sullen merlin So I have a discord bot that always when someone deleting a message it could not find the deleter. can anyone help me? t...
Bot Preformance - Sending the same message to many servers 17 messages
jagged folio My bot sends he same message to many servers (nearly 1,600) at once. The message includes: - Embed - Content (Role menti...
998292157150535700
title embed text forms 17 messages
wary quartz # how can i put like this text in title embed
Website interaction for discord api 6 messages
hollow spade It's very frustrating to do this. I am trying to interact with Discord API with a website such as Google Sites or HTML. ...
1150878580193116250
I am getting this error when the snippet is right. 13 messages
acoustic glade Hello! I am making a bot, very complex handling system which works perfectly, until now... I have made a command and yet...
1150878580193116250
Quick question : Do I need to reconnect the SQL database / use a pool connection lib in js or no? 5 messages
rugged eagle Hi, I was making my bot with Java and I was using Hikari, but I am learning JS now and I don't know if using pool connec...
[Moved] 12 messages
fading ginkgo It's as the title says. I've been trying to solve this problem for hours and I just don't understand it.
1150878890307358882
im having problems to get all users with certain role 3 messages
dusk sand let usuarios =interaction.guild.roles.cache.get('1299746941327904779').members.map(user => user.displayName); im gettin...
Quick question on managers 6 messages
formal nova I just wanted to ask a quick question on managers (specifically a `GuildMessageManager`): how do I use this? Is it a cla...
How to create a thread with user permission for viewing? 2 messages
faint pasture I use members.add, but I want to create the Thread With "permissionwrite" discord.js v14.14.1 ```js async function cre...
Giving users one coin, when they join a server through a command. 3 messages
storm rune The bot rewards users with coins each time they join a server from a command "farm" The bot automatically tracks when a ...
How to get how many users have installed the app 4 messages
clear veldt On discord.dev, you can see how many users have installed the app, but I don't know how to get this value inside of Disc...
Is there a way to prevent messages from being grouped when posted by the same bot? 3 messages
stuck shadow Is it possible to prevent messages from grouping when they are sent by the same bot? I'm writing a bot that relays messa...
Is there an efficient way to get date as option for interaction ? 14 messages
green lichen I am actually making a discord bot for my university and I need to add a command to get the timetable, but the problem i...
1150878580193116250 998292157150535700
Can I pass a props into `interaction.showModal()` ? 4 messages
full radish I would like to pass a props into `interaction.showModal()` , because I've got separated events and my value `channel` i...
Discord Changes to Autofill - Invalid Entry Since Recent Discord Client Update 13 messages
lusty helm Hello. In the latest discord update, I've gotten reports from clients that they are unable to use one of my bots atm due...
1113356221962010634
Discord slash command(s) deleting itself. (Sorry closed last post too early) 70 messages
honest quarry Hi. Sorry, I marked my last post as solved too early. I cannot figure out why when the bot launches and the slash comm...
1150878890307358882
Why might a slash command delete itself after one use? 18 messages
honest quarry Hi. I just created a command for my bot which works as expected the first time, and then just deletes itself from the r...
1150878890307358882 998292157150535700
Why users can't dm bot 3 messages
lean owl help
Bot tries to reply to a system message.. but what is it? 13 messages
quaint loom What would the system message even be? I thought only users get these DMs from Discord 'SYSTEM' or is it bots too? If so...
GuildForumTag not working on discord.js v14.16.3 on my API 11 messages
true robin It shows null even though the user has a tag.
1150878580193116250
error message and i cant solve it 29 messages
shell vault there is a error that i cant fix, idk why, but can the dev community please help me 😭🙏 - **included files:** - Scre...
1150878580193116250 998292157150535700
Not showing avatarDecoration on my API 17 messages
1150878580193116250
How to run recommended ("auto") shard count all in one thread? 8 messages
cunning elbow As far as I can tell, the shard manager is always [either multi-process or multi-threaded](<https://discord.js.org/docs/...
1150878580193116250
Context Commands Registering 15 messages
merry nexus I try in more than one way to record my commands, but they do not register my code: ```js const rest = new REST({ versio...
What happens at 2,500 guilds/shard if you don't automatically reshard 26 messages
tired field What happens if a shard exceeds its maximum number of guilds? Does that shard crash (due to discord disconnecting the ga...
1150878580193116250
Guilds request AI 2 messages
dreamy shoal ```js app.get('/users/guilds', async (req, res) => { const token = req.cookies.token; console.log('Token receive...
How do I convert this a permission int into an PermissionString[] 8 messages
glacial nexus Hello, I am watching the `GuildAuditLogEntryCreate` event and when a permission is updated i am getting this in the entr...
1150878580193116250
Does the REST handler retry failed requests? 26 messages
cunning elbow See title. I'm mainly referring to errors with a 5xx code, but I do want to know if the REST handler retries any request...
1150878580193116250
Fetch all reactions from a message but without cache 14 messages
burnt hollow Hey there, is that a way to fetch all reactions attached to a message without using the cache function? This is my curr...
Any1 knows why i might be getting this error ? 5 messages
orchid ruin Code and error in the chat
Make a select menu builder for certain roles? 12 messages
torpid horizon I am kinda new to coding and confused on how I can make a select menu for certain roles. I can get the menu sent but don...
Bot that listens to code words 5 messages
fleet hawk How do I make a bot that listens to a "secret code word" and performs an action when someone says it? This cannot be a s...
Cmds not loading 4 messages
lean owl e
Ephemeral didn't work 11 messages
next cedar i have no idea why this code not working
Why can't I click to view the user profile? 6 messages
cobalt plinth - **My code**: ```javascript module.exports = async function welcomeMember(member) { try { const fetchedMemb...
1150878580193116250
I need help to make the messages personal in a Discord channel for newcome 3 messages
lusty pendant I am facing an issue where I am unable to send a personal message to new users on my Discord server. I want the message ...
value of autocomplete gets lost after switching to other channel and back 6 messages
dusty wadi I have encountered an issue where the value of my autoselect gets lost in the execute method after i switch to another c...
1150878580193116250
How do add a user to a thread silently? 32 messages
tidal hinge My discord bot currently adds people to a thread like this: ```ts await threadChannel.members.add(userID); ``` But this ...
998292157150535700
Typescript Error 'typeof Client' incorrectly extends base class 29 messages
oblique prawn ``` Node v20.16.0 djs v14.16.3 TS v5.6.3 ``` Hi! Recently updated some packages and started running into this ts build ...
Sharding questions. 36 messages
honest quarry Hi. I am building a Discord bot which I can anticipate will eventually be in more than 2500 guilds pretty quick. I hav...
1150878890307358882 998292157150535700
How to respond negatively to an autocomplete interaction? 2 messages
cunning elbow Discord's documentation really doesn't make this clear unless I'm missing something... Should I `interaction.respond()`...
1150878580193116250
How to check whether a user can be DMed? 9 messages
cunning elbow See title. The best I can figure out is actually trying to send a DM, but by the point I'm doing that there's nothing I ...
1150878580193116250