djs-questions

9202 threads · Page 118 of 185

Verification system with a button on an Embed 4 messages
rancid flume Hello, I'm trying to make a verifitcation system. Here is my code: ```js const { EmbedBuilder, ButtonStyle, ActionRow...
Editing embeds 22 messages
ashen topaz How would I edit the embed to include the ping?
Hidden SlashCommandChannelOption 20 messages
native holly Can you put an option that people can select channels that they don't have permission to?
Embeds being sent twice 78 messages
ashen topaz ```Javascript async execute(interaction) { const type = interaction.options.getString('type'); const channel = inter...
Interactions Endpoint Instead? 7 messages
rapid bridge Is there a way for Discord.js to use a interaction endpoint instead of over a gateway?
998292157150535700
Button that sends a form and a select menu that are updated does not work 7 messages
blissful ferry Hello, I have a problem, I am creating a command that when pressing a button sends an embed and a menuselect and when ch...
DiscordAPIError[40060]: Interaction has already been acknowledged. 28 messages
nimble wolf I'm having a problem with a button with this error when I click the first time it goes normally, then I go back to the B...
Click a button and edit the embed 8 messages
hexed escarp Good morning. I come to you because I would like that when I click on my button, my embed is modified. What I do is that...
Member boost counter and detecting "current active boost count" of a member 4 messages
zealous willow These days, boosting has become a crucial aspect on Discord. However, developers are not fully informed about the inform...
fetchStarterMessage on threadCreate doesn't work 9 messages
trim juniper I'm trying to fetch the first message when a thread (in a forum) is created. But it doesn't work. How can i Do ? ```j...
duplicate client for shard 1 messages
floral torrent When connecting this file after authorization of the client with the line: `require('commands.js').init(client);` there ...
ActionRowBuilder in a new thread 15 messages
trim juniper Hello, how can I make an Action rows just after a thread creation ? I would like to moderate them and add after each new...
/play command not working 6 messages
tribal swallow client.commands = new Map(); client.commands.set("play", async (message) => { if (message.content.startsWith("/play"))...
Why is global_name not showing up? 5 messages
mild coral When importing user information such as guilds and rules ex) guild.fetchOwner Why doesn't it show global_name? I am us...
Bot crashing when calling custom /suggest command 49 messages
coarse nebula So I have a /suggest command for my discord bot that should take the user's input, and output it to a private text chann...
I'm getting `TypeError: ActionRowBuilder is not a constructor` 8 messages
waxen heart I am importing it correctly like so ```js const { Client, ActionRowBuilder, ButtonBuilder, EmbedBuilder, Modal...
Fetch messages older than certain date 4 messages
runic quail I'd like to fetch the most recent messages from a channel that are older than a specific timestamp. E.g. if my limit is ...
Am I able to show a .txt file in the ini language? 8 messages
frail verge The language "ini" makes my ticket's transcript look nice, but I would like to keep it a .txt file instead of .ini
Not finding an announcement channel 11 messages
rare reef Hello, I dont know why, but it seems like it doesnt find the announcement channel. ```js const banGlobalChannelId = '112...
Setting autocomplete options based on other option's value 11 messages
ebon pond I'm trying to make it so one autocomplete option (`type`)'s choices are based on the value of another option (`category`...
Reaction Roles 20 messages
rancid wasp How can I make Reactions that give you roles when you click it is there a simple way to do this most I've seen are long ...
Checking permission to create channels/roles 22 messages
muted beacon I have a command which can create a channel and/or role so I have code to ensure the bot has the correct permission to d...
ShardingManager doesnt work with .ts files 13 messages
fading mason I am trying to make a discord bot with typescript that uses shards, however the sharding manager crashes when I pass in ...
Bot seems to be uploading the same media file multiple times? 23 messages
west grotto Bot has been perfectly fine for the past week. However, when simply posting a message as a bot that only contains a medi...
Rate limits for /interactions & /webhooks 5 messages
minor shoal https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints On this page it says "The endpoints ...
998292157150535700
Shard 76's Client took too long to become ready. 3 messages
crimson sonnet ```js Error [SHARDING_READY_TIMEOUT]: Shard 76's Client took too long to become ready. at Timeout.onTimeout (...\nod...
Pagination error 75 messages
median frost Hey, I have a problem with my pagination. I'll attach a video so you can understand the problem. Here's my code: <https:...
Storing & retreving input from slash command strings 3 messages
inland fiber Is there a way I can store the input from a slash command to use later in another command? I have been following the dis...
discord bot in same server as NEXTJS Backend 45 messages
wheat wyvern How to make (export) discord bot to be alive (import) to rest of the NEXTJS server files?
I made it look like an image, but I get the error "something went worng!" 11 messages
mellow kite https://www.youtube.com/watch?v=qNB7pQBhqDQ Modal code was created as in the corresponding image. However, the error "s...
const client = new Client({ intents: [GatewayIntentBits.Guilds] }); 2 messages
valid sinew Is there a whole list of intents that I can add on to GatewayIntentBits? Also GateWayIntentBits is websocket right?
[MONGOOSE/MONGODB] How can I get a specific users schema? 3 messages
tidal yoke Hello! I've been coding for the past few hours and can't exactly seem to figure this out so I've been trying to get a s...
how do i use ``Role.icon`` hash? to get the icon? 3 messages
toxic elbow how do I use ``Role.icon`` hash? to get the icon? like URL for image etc.
What is returned when getting the value of a .addChannelOption subcommand? 57 messages
ashen topaz ^
Embed Using Options Content 43 messages
terse star I can create a slash command that has multiple options. I just am drawing the short straw trying to have my bot respond ...
Assistance getting role by ID 10 messages
nimble badger Im trying to get a role via ID, however, whenever i pass that roleID to permissions override in channel.create, it throw...
Proper error handling with awaitMessages 15 messages
frank tree I'm trying to optimize my code as best as possible, and this includes error handling. I understand how to catch an error...
awaitMessageComponent breaks if separate message is deleted 11 messages
molten moth I have the following code that awaits either a message, a string select menu or a button: ```ts export default async fun...
channel.isTextBased is not a function 22 messages
past hemlock Every once in a while, I get the error "channel.isTextBased" is not a function, which crashes my bot, and to fix it, I n...
mongodb node_module error 4 messages
neat sphinx the error ```[{ "resource": "/c:/Users/jack/Desktop/esno bot/node_modules/mongodb/tsconfig.json", "owner": "type...
How to check if a member has a role with the role id? 2 messages
lucid bolt instead of the role name node 18.16.0
Is it possible to fetch all messages that came after a certain message ID ? 4 messages
reef musk I have found the fetch method but not if it is possible to get all messages that came after this message id https://old....
not response without any error 13 messages
summer storm hey there idk whay recently (2-3 days) i have got this problem ready callback event and everything is ok but all interac...
package problem 16 messages
neat sphinx https://sourceb.in/peWFtMDyBx i get this error everytime i try and run
automodrule command 109 messages
young ruin no error but not responding
How to limit a slash command to a specific role? 42 messages
lucid bolt node = 18.16.0 discordjs = 14.11.0
How to get the member that used the slash command? 11 messages
lucid bolt node = 18.16.0 discordjs = 14.11.0
DiscordAPIError[40060]: Interaction has already been acknowledged. 6 messages
wet pier `DiscordAPIError[40060]: Interaction has already been acknowledged.` how can i fix this if the error doesnt give me the...
Status 3 messages
gilded dragon if I make a rice present with repl.it to have a custom status and have the account online 24/7, is it illegal?
can someone help fix this? im using the latest discord.js 2 messages
vale relic C:\Program Files\nodejs\node.exe .\bot.js Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'FL...