djs-questions

13317 threads · Page 81 of 267

DB not updating 3 messages
languid umbra Hello! As you can see in screenshoots, the database keep not updating after a `data.save()`, but there are confirms mess...
node
type error : la commande pingn'a pas de nom 20 messages
tidal bobcat const fs = require ("fs") module.exports = async bot => { fs.readdirSync ("./Commandes").filter(f => f.endsWith(".j...
node
Tagging a role via http 10 messages
muted forge Is it possible to tag a discord role when sending a message via http only using a discord bot? It sends the message bu...
node
Message doesn't send to channel 18 messages
edgy dune ```js client.on(Events.GuildMemberAdd, async (member) => { if (member.guild.id != GUILD_ID) return; // Read the...
Join messages don't want to work? 7 messages
edgy dune For some reason, it can't read "messages.json" because it's not valid directory...but it's right there? ```js client.on...
to send a message in a specific channel 90 messages
harsh hill hello I would like to send a message in a specific channel here is my code
ExpectedConstraintError > s.string.regex 9 messages
golden plaza code: ```js const reactions = require('./src/Schemas/reactionrolesSchema'); client.on(Events.MessageReactionAdd, async ...
Bot doesn't reply, DJS v14 23 messages
astral tusk Index.js ```const fs = require('node:fs'); const path = require('node:path'); const { Client, Collection, GatewayInten...
node
How do i update my code to a new version of discord.js if i exactly know how to code 21 messages
node
SyntaxError: Unexpected token '{' 6 messages
arctic quiver I do not know why this is a major error all of sudden is their something i need to update ?
help me 2 messages
full nova Can someone help my server out by buying us a host for our Minecraft server? We’ve been struggling for months to start o...
node
reload command on new sever 15 messages
little shadow So right now when i bot is invited to a new server you cant cant see any commands untill i restart the bot
Interaction responses very slow on Raspberry Pi 12 messages
lethal panther When running a bot on my raspberry pi, all discord.js interaction response methods (.reply(), .deferReply(), etc) run ve...
Not creating channel overwrites 17 messages
naive shoal ```JS const rolename = roleToClone.name; const rolecolor = roleToClone.color; const roleposition...
Hi! I have a problem with roleinfo command 13 messages
verbal sentinel Let me explain: roleinfo works with some roles, but not with others. As I understand it, this does not depend on: the la...
node
ActionRows limits 3 messages
lost kettle What are the limits of `ActionRows`? (How many `ActionRows` a message can have? How many components can an `ActionRow` ...
@discordjs package
server location for VPS discord bot 4 messages
edgy warren what is the best server location for VPS discord bot ? i test german and it's 103 ping so bad
Discord
quick question: How can I send a message to the created thread? 2 messages
rotund vector After the bot creates a thread, I would like to post a message by the bot to that thread. I have a `ThreadChannel` obje...
node
Unknown Interaction 8 messages
red topaz I've been struggling with this error for a long time, I'm defering almost all my commands, and this still happens, so ...
The app does not repond 19 messages
lethal oyster Hello, I'm a new bot developer and I have a problem. At every command, button or what ever I interact with. My bot does ...
Querying server messages 5 messages
calm osprey What's the prefered way to query for messages that meet some criteria, like as it's done in the "Search" functionality o...
Permanent Collector? 6 messages
patent quail Hey all, just wondering if there was anything like a permanent collector. I haven't seen anything around the documentati...
Zombie Connection 206 messages
tall sleet I get zombie connection error and bot doesnt even startup, had this issue before but changed my hosting service Now it ...
bot not answering 16 messages
golden plaza i created command !membercount and when I enter the command, the bot does not display the membercount Theres no error co...
random user and avatar 3 messages
warm coral How to get avatar and name randomly and display it as embed
"this interaction failed" 10 messages
thorn perch ```javascript const seeRooms = async (interaction, embed, page, room_names, channel_id, room_pictures, count) => { ...
How to get forumchannel id of message? 3 messages
buoyant epoch Hello, i have message in forumposts where i need the id of the forumchannel of the message, i searched online and nothin...
node @discordjs package
How are circular Dependancies avoided in Djs 4 messages
thin ingot in djs, guilds needs to have roles: `<guild>.roles` and a role needs to have a guild: `<role>.guild` how does this not ...
MessageActionRow is not a constructor 32 messages
ember bluff Started refreshing application (/) commands. Successfully reloaded application (/) commands. Logged in as ɢ-ᴏᴋɪ#5601 Err...
discord-rpc 3 messages
spiral inlet Hey is there a way I can host discord-rpc on my vps and have it keep running without having the discord app open all the...
RPC
Unknown Interaction. Not sure what the cause is 6 messages
gleaming crypt I'm using openai for chat gpt for general chat. It works sometimes and other times it does not. The error I'm getting is...
Fetching the audit logs not returning as wanted 24 messages
mortal igloo ```js const kickWithinMinute = await guild.fetchAuditLogs({ type: AuditLogEvent.MemberKick, after: auditLogEntry.cre...
auto notification to a channel 14 messages
dense spindle node:events:491 throw er; // Unhandled 'error' event ^ TypeError: Cannot read properties of undefined (read...
How to know if user has more permissions than the bot? 6 messages
dense reef Hi, how can i get to know if a discord user has more perms than the bot, I want the bot to change a specified user usern...
is there a way to align text to center automatically in an embed? 3 messages
lapis chasm i wanna know : )
Fetching / Getting the id of a subcommand in a subcommandgroup 15 messages
gloomy bear So im trying to make a fully dynamic help embed which shows each command with their description. I need the id to make t...
What do you do if you have 100+ prefix commands but you can only make 100 of them slash commands? 16 messages
silk herald What do you do if you have 100+ prefix commands but you can only make 100 of them slash commands?
error 148 messages
peak widget not showing client online in console ??
node
How to differentiate an defer interaction 10 messages
dawn thistle Hi I would like to know how I can differentiate the method used to defer the interaction since there is ``deferReply`` ...
Channel Voice Mute BOT 19 messages
uneven wave Good morning, I had a question how the bot can mute itself into voice without the server mute, please help me ?
When replying to an interaction button press, how do I get the original interactions options? 21 messages
balmy oracle The response does not seems to have an options object
node
ActionRowBuilder type error with EditReply 7 messages
gusty thistle ```ts public paginationButtons(): ButtonBuilder[] { return [ new ButtonBuilder().setCustomId('pg-pre...
node
discord message reactions 4 messages
tacit wolf when i try to get the event from the messages with Events.MessageReactionAdd its not even reacting and printing out a si...
Is there a way to get slash command option values even after the slash command leads to a modal? 21 messages
thorny skiff Hi! So I was told to use a collector for this, but I'm not sure how exactly it works. I was taking a look at [this](http...
Editing a pinned message? 6 messages
lilac wadi Hello! I have a reply to an interaction that I'd like to edit at a later time. The ID of the reply is stored in my data...
Update message when event fires 4 messages
charred hull I use a minecraft api to see how many players are online on my server. How could I say that the bot should update a mess...
node
Using the thread system, how can I pull up how long ago a certain thread was created? 6 messages
warm scaffold Using the thread system, how can I pull up how long ago a certain thread was created?
Problem with voice 3 messages
tough fog Hi, I want to play music through a bot and I did it on my computer, but when I transfer files to the Ubuntu server, it d...
edit msg 108 messages
modest acorn ```js const { Client, GatewayIntentBits, Events } = require('discord.js'); const { EmbedBuilder } = require('discord.js'...
node
why isnt the command not working 21 messages
modest acorn ```js const { Client, Events, GatewayIntentBits } = require('discord.js'); const { token } = "MTE4MTcyMDE2MzYyNDY4NTU4OA...
node @discordjs package