djs-questions

9202 threads · Page 57 of 185

modal with select menu (answered - not possible) 25 messages
runic siren This modal has features such as a select menu and an on/off button, but there are only text inputs in discord.js. Will t...
986538542350086175
i need help making a bot for a schedule locking and unlocking for a channel automatically daily 30 messages
violet sky hello im new in coding i just started but i know and understand some stuff, i just want to get this bot working i found ...
Way to listen for MessageReactionRemove when the messages aren't cached 22 messages
neat fractal I am trying to detect when reactions are removed from a post in a forum channel. The relevant code looks like this: ```j...
General questions I have in mind, any help is greatly appreciated. 5 messages
honest quarry Hi! I am trying to learn JavaScript (coming from Lua, specifically Roblox’s Luau) with the goal of eventually being able...
1150878580193116250
Command handler, loading commands in 2 messages
pulsar wedge ```js const { Routes } = require('discord.js'); module.exports = (client) => { client.commandHandler = async () => {...
Interacting with a kicked user 9 messages
balmy pelican Hey yall, I am trying to make a verification bot that dose not use a external website (Just checking if the user can ent...
Register Global Command 124 messages
pseudo quiver Hi everyone, this code takes care of recording all commands globally. However, currently it doesn't work, in the console...
New discord Poll detection 18 messages
wispy blaze is it possible to detect if a message is actually a poll (new discord poll) via API?
Display a random button array 5 messages
quick notch Hello, I created several buttons in a file, then put them in an array to mix them up for random output. Random works f...
1150878580193116250
Set initial volume without enabling inlineVolume 6 messages
timid gull Im using @discordjs/voice and would like set the initial volume for playback because the default is way too loud. But I ...
WebhookClient vs raw request 4 messages
slender elbow What are the benefits of using `WebhookClient` over sending a raw request, and vice versa? Currently, it is just being ...
986538542350086175
Help 46 messages
nimble moth is this actually a thing
Discordjs/voice 2 messages
exotic marsh First time working with it, I have a cron job running eery 5 minutes. In the callback, the bot fetches an array and loop...
TOKEN_INVALID 7 messages
old thunder I'm not able to fix this. Tried resetting the token and adding the new token in secrets
Inviting Bot after authing, occruing 500 error 7 messages
visual rain hello, i have a problem by inviting discord bot. i occur 500 error while authenticating. Bots are invited normally, bu...
Autocomplete options 4 messages
winter minnow hey i have two commands and both have the autocomplete option color, but only one of them works. any idea why?
408 Request Timeout when sending messages 5 messages
glad canopy Hello! Some shards of my bots regularly experience that single messages can't be sent or are sent but it still throws th...
1150878498534199426
multiple autocomplete 4 messages
whole crown hi, i have a subcommand like this and an autocomplete function that gets the interaction, how can i "see" what option it...
Get Users Message Count 3 messages
shell citrus Hey there folks! Is there a simple way to get the number of messages sent by a user that is not that storage or memory i...
fetchReply() SOLVED 5 messages
iron hollow So I'm making a npm module for discord games using js, I'm having troubles getting the inital messsage of start game in ...
Message Delete is not logging to channel when messaged deleted 2 messages
hushed pond im trying to make a messge delete log embed but its no errors its just not logging to the channel any reasons why? ```c...
presenceUpdate 2 messages
warped wind The presenceUpdate event is not triggering. The intent is passed through and its turned on in the developer dashboard
TS Error 16 messages
buoyant maple ```ts export interface Command { name?: string; // Command names are taken from file names description: string; ty...
Whenever my slash command gets used for 2 times it gives an error 7 messages
empty tree ```node:events:492 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction a...
Switch users screen view to current created channel on guild. 5 messages
vale mesa Hello, can i change thhe users screen/view to a created channel on ModalSubmitInteraction.
1150878580193116250
Send DM if invited 2 messages
kindred rock When a bot is invited to a server, how to send a DM to the person who invited it? using api?
1150878580193116250
Detect when bot webhook has moved to another channel 11 messages
tired field I'm looking to use webhooks to send messages to specific channels in a guild. Unfortunately, Discord provides no way to ...
1150878580193116250
how can i get thestatus 5 messages
vague forum const members = await guild.members.fetch(); const shuffledMembers = Array.from(members.values()).filter(member => !...
Invalid token 61 messages
sweet nest I'm trying to setup the .env file but whenever I try to run the bot its saying invalid token. I've reset the token and p...
Issue with roles 7 messages
obsidian bane .
Keep getting "DiscordAPIError[50035]: Invalid Form Body tried a couple of changes but same stuff. 3 messages
eternal depot ```js const { SlashCommandBuilder } = require('@discordjs/builders'); const { PermissionsBitField, ButtonStyle, ActionRo...
1150878580193116250 998292157150535700
i tried modals but it doesnt work 31 messages
empty tree i got a few errors before then fixed them but now the modals dont work. and ı was following the guide, did i do somethin...
problem with modal 15 messages
elfin coyote hello i have problem. when two people fill out the modal at the same time, it bugs out and throws an error in the consol...
1150878580193116250
Ping User 4 messages
warped wind Hey there, is there a way to go around the fact that pinging a member looks like this? I want to be able to show the pi...
About slash command deploy 2 messages
lone elk What do I have to change in the slash command to be considered deploying to the discord API? and what can I change witho...
Logic confusion when querying data with mongodb 4 messages
fickle sparrow Hello, good morning, I have a problem and I don't know if the query is being performed correctly and this is the query c...
Emoji click interaction 46 messages
unique dust Hey, i made code when author click on reaction get ViewChannel Permission but i didn't work can any body help ?? ```j...
createmessageComponentCollector is not working 7 messages
zinc hull https://srcb.in/NN6a4J8qzS This is my code all the select Manu are working except this one Previously I have faced thi...
1150878580193116250
Sharding Djs 6 messages
languid geyser how to make bot leave and join server logs by bypassing all sharding, so bots that leave and join from sharding will app...
how to handle "unknown interaction" error 9 messages
glossy dove ```ts try { return await interaction.reply(...); } catch (error) { if ((error as...
bot not running 10 messages
main nymph fix plz
1150878580193116250
User App Added Event? 3 messages
restive thistle Similar to client.on guildCreate, is there a way to get an event when someone adds the app to their user?
Discord bot keeps going offline for no reason 24 messages
candid zephyr There are no errors in the logs, I'm using PM2 so I don't think its anything related to the bot not receiving requests, ...
contextmenubuilder 25 messages
junior widget ```const { ContextMenuCommandBuilder,ApplicationCommandType, PermissionFlagsBits } = require('discord.js'); module.expor...
Upload file 3 messages
old ferry hi, it is possible to make this with discord.js plz ? ```js module.exports = { data: new SlashCommandBuilder() ...
1150878580193116250
Find bot in server 4 messages
desert mango I need to find all bots in the server even if it does offline ```js const bots = message.guild.members.cache.filter(m...
1150878580193116250
RoleSelectMenuBuilder interaction failed 13 messages
zinc hull Hey i am get interaction failed and no interaction i am getting ```js // Ask for moderation role ...
1150878580193116250
owner.send isn't working properly 24 messages
acoustic hedge Hey, for some reason when I my bot runs this if statement: ```js if (await isToggled(guildId2) === ...
1150878580193116250
I cannout untimeout a user 18 messages
mortal badger ``` const { MongoClient, ObjectId } = require('mongodb'); const findCase = require('./findcase.js') // Connection URI c...
Adding permissions to bot that is already used in many servers 6 messages
atomic nacelle Hello everyone, hope you doing great, in short words, I want to start using webhooks with my bot but I never added that...