djs-questions

13317 threads · Page 146 of 267

Random disconnection 50 messages
keen kiln My WS Connection was closed randomly. Debug logs are as follows: ``` [WS => Shard 0] [HeartbeatTimer] Didn't receive a ...
Checking roles of user in server from their dm message 73 messages
hollow parrot i want to check if a user dms and also has a role in the server ```js if ((message.channel.type == 1) && member.roles.c...
Slash commands are not registered 10 messages
vital scarab I cleared commands with [], the commands cleared successfully. I re-register commands, commands that were previously reg...
How to send a hyperlink 27 messages
elfin solstice like this
Total member count 2 messages
thorn yew How can I display in my bots status the total member count of all of the servers it is in. Essentially taking each serv...
Two seperate bots, where either one is intercepting the commands meant for the other bot. 6 messages
manic tundra Error is in the title, how can I make my bots ignore, and not intercept/accept the commands that are not meant for them....
[answered] Get interaction.options after button press with a collector (or without) 21 messages
covert finch i have a slash command that sends an embed with button, then the user clicks a button, how can i get the original slash ...
Embed Message API Error 9 messages
fathom wraith I am splitting off my embeded messages into another folder but I am having this API error
Suggestions for DB integration 34 messages
drowsy trout I'm new to discord.js, and have very limited experience with DB integration, I'll be using planetscale hobby tier databa...
Button Interaction Handler 71 messages
winged cargo Okay, so I have a command handler where each command gets it's own file. Now I want to create an event handler where eac...
getting a error with a ticket code 9 messages
smoky quail ```js const {SlashCommandBuilder, ButtonBuilder } = require(`@discordjs/builders`); const { EmbedBuilder, ActionRowBuild...
Memory heap error 23 messages
upper otter Not quite sure whats going on here. Was wondering if I could get any help here. The problem is occuring when the user ex...
How can i make this? 20 messages
Button interaction replies are not working. 5 messages
tacit oxide It returns nothing
can a discord bot create an invite link for a server that it is in? 4 messages
thorn yew can a discord bot create an invite link for a server that it is in?
Have bot not go offline after error 3 messages
devout owl Is there a way for me to have my bot log an error instead of go offline after each one?
Error: Cannot find module './welcome.js' 9 messages
Is there a way to change "Use Soundboard" via discord.js at this moment in time? 5 messages
empty oxide I.e. to add / remove "View Channel" It's ViewChannel: true/false,
autocomplete length 11 messages
hard idol Hello to all of you, hope your well. There is a way to have more then 25 choices in autocomplete ?
How to use FLAGS 23 messages
strong skiff How to use flags?
TS interactions.options.getChannel() issue 4 messages
magic finch Hello, I recently switched from JS to TS on this bot that I'm working on and now I suddenly get this error that .getChan...
SlashCommand Global to Guild 2 messages
astral latch How can I convert a global command to a guild command? I need to add some choices to a string option for a specific guil...
Command localizations in guilds 3 messages
quasi latch When I create a slash command with description localization, I can fetch the command and it will show the localizations....
[RESOLVED] Button with embed 15 messages
static wyvern ```const myEmbed = new EmbedBuilder() .setTitle('**MyServerName**') .setDescription('Click on "Verification" button to t...
Change thread name without automated message? 3 messages
gentle timber How do we change a thread name without it sending a goofy "$BOT has changed the thread name" message. This is problemati...
Can I make a context menu command inside async function of another slash command? 2 messages
slender thistle I want to make a slash command which will make a context menu when It filled. Is this possible? If i put another context...
Embed 79 messages
Slash Mention 10 messages
unborn inlet How can I get id of slash command to mention it?
Bot not replying after deferring replies 2 messages
surreal fossil hi! i host my bot on daki.cc, and since some days ago, it has started to not reply to commands which use deferReply(). ...
Component Collector or Something else? 7 messages
molten fox Hey, so my bot utilizing buttons. I am currently using createMessageComponentCollector to collect when the buttons are p...
Embed Message string padding 8 messages
ripe coral Hello, was looking to get some advice on with string padding my embed message. On console I'm able to pad the string ju...
How can I get a user's role color from a message I got from channel.messages.fetch() 3 messages
sudden bronze .member is undefined for non admins.
Is it possible to replace attachment image within rich embed? 20 messages
chrome whale Hello! I am looking to use generated image files to support a Discord-based minigame. The attached screenshot shows the ...
looking for Multi Guilded Role Sync 13 messages
thin aurora I am looking for a role sync for multiple servers. Meaning, if someone has a certain role in one server, the bot auto gi...
cooldown 61 messages
night needle I get that message on the cooldown command, im not sure why it is undefined, here is my code: ```js const { Collect...
PermissionOverwrites error 12 messages
bold sigil ? TypeError: permissionOverwrites.map is not a function
Is it not possible to use a boolean with a user option? 4 messages
safe birch I have this command: https://gist.github.com/DudeThatsErin/b0231f2a38cb85309a33de14faac0107 I am receiving an error on t...
Discord-player error 2 messages
simple mulch Hello i have this error when i start a music from a research. Error: Could not extract stream for this track at Gui...
It is not being possible to send array? 6 messages
wide ivy In the past, I sent an array with a d20 scroll in a certain way, I tried the same way I always did, and it was giving an...
slashcommand input issue 3 messages
hallow briar Why isn't this working? ```js const { SlashCommandBuilder } = require('@discordjs/builders'); module.exports = { d...
CORS error 8 messages
slender tangle I created a bot in JS, I sent it to my friend and now he cannot use any of the commands because this error gets thrown, ...
Heberg 4 messages
Avatar error 13 messages
spare urchin TypeError: user.displayAvatarURL is not a function at Object.execute (C:\Users\csc21\OneDrive\Desktop\soapjs\src\com...
The bot gives and removes the role 8 messages
simple sierra How to fix the fact that the bot first gives out a role and then removes it after a second? Everything in the code shoul...
Dm user Error 4 messages
uneven wasp **Been getting this error and can not seem to see why it won't work** ```DiscordAPIError[50007]: Cannot send messages ...
Webhook token 11 messages
shrewd hinge how can i get a token from a webhook that the bot created?
I Need to send a Button in a webhook message 6 messages
shrewd hinge but no work...
find a customid 29 messages
spare urchin How do i find a customid that was used
ValidationError 28 messages
vocal coyote Hello guys hope you are fine , please i am facing this error
dev release
SocketError: other side closed 3 messages
slow ferry SocketError: other side closed 04.04 16:03:50 [Bot] at TLSSocket.onSocketEnd (/bot/node_modules/undici/lib/client.js:990...