djs-questions

13317 threads · Page 150 of 267

Commands don't register even though the code is working properly 4 messages
dusty violet I'm talking about the bot tutorial from discord.js docs. So what I exactly mean is that when I write / on my test server...
deferReply() and ephemeral 2 messages
grave tulip Is it possible to use ephemeral with `editReplay()` after awaiting `deferReply()`?
Action Row 6 messages
rare bear hello mates, I wanted to know how I can use this ActionRowBuilder on a channel.send method ```ts const channel = awa...
correct path for running js 61 messages
tired cobalt Hello. I'm new with js and node. I installed discord.js and it created folder @discord.js. now i trying to run my script...
How To Get DDOCS ALOGLIA KEY & APP? 2 messages
dusty token Someone Please Help Me...
Emoji not properly showing 22 messages
jagged flame Trying to send an emoji in an embed but it shows up as `:testemoji:` and not the actual emoji. The emoji is in the same...
output user input for slash command 22 messages
Does a bot can fetch discord user connections ? 3 messages
dawn thistle Hello, I wonder if it is possible for a bot to read the connections of users (PSN name, Spotify, ...). I'm asking this e...
guild.members.fetch is outdated 7 messages
craggy lagoon Is it possible to retrieve most recent member object from fetch?
Trying to implement the bot using TypeScript, hit a wall on the guide's "Command registration". 3 messages
naive mulch I reached as far as https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands Looks like TS real...
IF statement inside slash command with different choices depending on the option chosen 33 messages
lunar canopy Hi, i am trying to have my bot output the input given, but i have multiple options for the user to use, is there a way t...
Context Menu is giving application did not respond 13 messages
bleak dawn Hi, My bot has a context menu, made in contextMenus.js, and then when someone uses it, it should activate the below cod...
Bot won't log on 31 messages
Interaction DeferReply Error 10 messages
how would i check if a certain post in a forum has a certain label and then close that post if it do 24 messages
night needle ^
Cannot read properties of undefined (reading 'BanMembers') 23 messages
Unknown Slash command error, done everything i can do try and fix 8 messages
warm pecan I am making a bot for the server, when the bot was in only the testing server, the slash commands worked perfectly, once...
How to attachment in message stream.pipe? 7 messages
halcyon meteor I have a stream received via ffmpeg, how do I attach it as a file in a message without creating the file via fs?
Receiving button interactions 24 messages
prime turtle Hello there, I'd like some help regarding button interactions. I know how to build a button row and send it (see code be...
Error [SHARDING_READY_DIED]: Shard 0's process exited before its Client became ready. 25 messages
Hook sends multiple messages 32 messages
flat crest Got problem when hook.send method result 2+ messages instead of 1. I just want to say a couple of words why I think pr...
Resolve user by ID upon bot restart? 14.6.0 9 messages
kind horizon I'm trying to make an alarm bot of sorts, which will ping users after a certain time. I'm storing only the IDs of users...
User @ not displaying correctly in embed 4 messages
slow stirrup I have an issue where sometimes the @ username will not display correctly in an embed but it depends on what user is cur...
When trying to get the channels in a guild I get undefined for channels. 4 messages
jolly latch Code const guild = await client.guilds.fetch(); console.log(guild.get('1057287057422172232').memberCount); const chann...
Select menu 2 messages
Problem understanding how to reliably get member roles. 48 messages
whole zinc Hi there I am trying to get the roles a guild member has. I am trying to get this information using an Interaction pro...
Private threads mention role does not invites peoples 19 messages
bitter turret My Bot create a private threads and ping this role, that should invite 5 peoples This has been working for month, but I...
Invalid String Format 16 messages
warm pecan Was changing my command handler to one that supports slash commands, got an error i have specifically ever seen before, ...
Command Handler with FS? v14 4 messages
hearty mesa I've been trying to look for resources on how to create a command handler that uses instead of using blob. If someone ca...
Running a new command on button interaction, with a provided string input 16 messages
bleak dawn Hi, I currently have a command (townSearch.js) that takes string input, gets information about the string (in this case...
Embed Button not doing anything 7 messages
mossy folio Im not getting any errors. This is v 14.8.0.
Ticket/Channel permissions in discordjs v14 16 messages
warm pecan So i was testing my bot cause im upgrading it from v13 -> v14 and when I tried the ticket system I had previously, it di...
DM Embed BOt 10 messages
fallen edge Hello, simple said. i want it to delete the !command, then send an embed, delete that after a period of time, then send...
client token error 82 messages
suggestion to djs a new code change role icon 6 messages
idle ravine I hope to add a new code and download the method in djs guide that the bot can change the role icon by means of an image...
embed dm 11 messages
fallen edge the app crashes and i get the same error everythime. the code: ```js client.on("messageCreate", (message) => { // ...
i need help 3 messages
proven epoch Hello. I make a Discord bot. And I have changed its status to dnd, but after a few minutes the status of the bot chang...
Creating private groups 4 messages
gilded wraith Have they made an update where you are able to now? Creating Private groups without OAUTH2 and token
@discordjs/rest ratelimit issues (likely) 3 messages
wanton geyser Hello, I've been using `@discordjs/rest` separately as a rest proxy in a separate process so my bot makes request to the...
@discordjs package
Error accessing discord API 15 messages
mossy folio ` node deploy-commands.js Started refreshing 6 application (/) commands. DiscordAPIError[0]: 401: Unauthorized at Se...
Slash command isnt working 68 messages
lyric stag I need help with slash command
My Embed isn't working 5 messages
hallow briar ```js const embed = new EmbedBuilder() .setColor("#2f3136") .setTitle("💵 **TICKETS - PU...
Platform 2 messages
iron sierra How get user platform?
Uploading emoji by URL doesn't work 2 messages
warm apex does anybody have know why uploading emoji by URL doesn't work anymore? It is giving me error everytime when I try to up...
save roles to json 28 messages
bold sigil Hi everyone, this is my code: ```fix async function getRoles(guild) { const roles = []; guild.roles.cache .filte...
embed 8 messages
harsh hill How to send embed message pls
Members not a valid property on channels.fetch? 5 messages
fallow hull I am trying to make my bot leave a voice channel when there are no more people in there, looking through the docs my cod...
@discordjs package
Detect webhook message 37 messages
dire nimbus ```js const { fetchWebhook } = require('discord.js'); const UserModel = require('./models/userModel.js'); const webhookI...
Discord Bot Status/Presence doesn't show 36 messages
warm pecan Please help me, i have no errors and am confused on why this isn't working.
How do I write code that performs commands to other channels with '.addChannelOption'? 2 messages
mellow kite If I write a command from an administrator channel to another channel, how do I make the command run on a channel other ...