djs-questions

9202 threads · Page 104 of 185

Help me pls 2 messages
versed garden how to create /profile command like this that showing badges and username , orfile , banner ...
998292157150535700
In the GuildMemberRemove event, are the cached roles of the guild member all there? 3 messages
round citrus Do I have that guarantee that when the `GuildMemberRemove` event fires that the `<GuildMember>` from the parameter has a...
how can I load commands dynamically without require 15 messages
weak linden I want to use an async sqlite module but that requires to use import and I can't import files inside code with it
BitFieldInvalid 96 messages
shell sierra ```js const { Client, GatewayIntentBits, MessageEmbed } = require('discord.js'); const client = new Client({ intents: ...
Type error: cannot read properties of undefined 3 messages
shell sierra ```js const { Client, Intents, MessageEmbed } = require('discord.js'); const { REST } = require('@discordjs/rest'); cons...
I can't use permissionOverwrites methods 72 messages
coral coral Maybe i'm missing some required things.
Custom 4 stats 21 messages
wise oar hello, good evening everyone, I was programming my discord bot, and I wanted to know how custom 4 works, which is from ...
What is the correct way to allow my bot to join a voice channel? 2 messages
hybrid yoke im getting this error: TS error: TypeError: message.member.voice.channel.join is not a function at Client.<anonymous...
my bot doesnt respond when i input my command? 10 messages
hybrid yoke Here is my code, my bot doesnt seem to respond when i put "!hello" in chat, what can i do to fix this?
kick cmd err? 4 messages
sand hearth I finished the code of the kick command and in fact everything went well, I tried to execute the command again but now t...
I'm confused 11 messages
civic jolt So i am unsure if this is the right discord or place to ask but I'm new to making a discord bot. I have an embed but whe...
Create a player loop for a blackjack game 9 messages
toxic bridge Hi everyone! I'm currently implementing a game of blackjack in my bot, using an embed and buttons for the game informati...
SlashCommand Naming 2 messages
shut citrus Hello, I’m trying to add a sub command named "allowAdminBypass" im getting thrown an error saying it doesn’t pass the re...
998292157150535700
newPresence returns undefined inside presenceUpdate event 54 messages
lapis chasm # code ```client.on('presenceUpdate', async (oldPresence, newPresence) => { if (newPresence.member.presence.statu...
UserInfo js v12 10 messages
raw fern Hello, I would like to make a userinfo command, so I program it in js v12, does anyone know how I set the server entry d...
I get an error about the interaction 11 messages
gray zinc Im trying to make my first discord bot. Currently ive got this `// commands/ping.js module.exports = { data: { ...
Is it possible to add "streaming" text feature to text via Discord.js? Would that be allowed? 4 messages
proper gate ChatGPT (and other models) have these feature called "Streaming", where it shows the text its generating as if its being...
How to find a specific word in a sentence 2 messages
halcyon pier As the title says I am trying to find a specific word in a sentence e.g the fox was walking. I want to pull the word fox...
How to make it auto stop 21 messages
shell sierra ```js const { Client, GatewayIntentBits } = require('discord.js'); const client = new Client({ intents: [ Gateway...
help 16 messages
opaque kraken let guildArray = await process.oauth.getUserGuilds(data.access_token); It returns me with the error: `401 Unauthorized ...
Creation of a selection menu 13 messages
hexed escarp Good morning. To accompany my embed, I want to add a selection menu that retrieves the values ​​stored in my database an...
Some issue with the code that doesn't allow the creation of slash command error code 400 59 messages
shell sierra discord.js slash command ```js const { Client, GatewayIntentBits } = require('discord.js'); const client = new Client({...
`fetchStarterMessage()` doesnt give me the first message of the thread 5 messages
eternal shore I am trying to get the first message associated with the thread. But the message object returned from the `fetchStarterM...
channel.send('content'); error ponying to .send 12 messages
tender current TypeError: Cannot read properties of undefined (reading 'send') i am trying to send a message to a channel without a use...
ChannelNotCached Error when make thread 5 messages
fringe spade ## Version discord.js - 14.12.1 node js - 18.6.0 ## Question I got an error when I try to make a thread which connect wi...
Getting User Guild Avatar/Banner 13 messages
tidal yoke Hi I'd like to know how can i get the user's avatar and banner in the current guild Currently I get the user info from ...
GuildMember.setNickname weird issue 13 messages
timid cloud Im using a modal for my discords verify system, where they input text and that text then becomes their nickname. 90% of ...
Multiple Schema creation on message for level??? 2 messages
stoic flame So basically I have the leveling system and on the surface it seems to work, but there is just a few issues when I send ...
Getting "Unknown interaction" error even with interaction.deferReply() 17 messages
storm knoll Hey folks, I am getting a strange error with this code: ```ts class StandingsInteraction { public async interaction...
Unknown Interaction on awaitModalSubmit() 12 messages
crude folio Hi everyone, im kinda scratching my head here trying to figure out whats going on. https://pastebin.com/dRXw5Ffm Behavi...
member.dmChannel.awaitMessages() breaking when updating from v14.11 to v14.12 26 messages
queen summit I currently have the following code which works perfectly in discord.js v14.11 however when I upgraded to v14.12, I star...
Updating an embed following interaction with a button 5 messages
hexed escarp Hello, I have an embed with 2 buttons, a first which validates and a second which cancels. I would like for example that...
Creating a word counter with mongodb and discord.js 4 messages
halcyon pier I am trying to create a word counter which displays the users tag and how many times they have said a specific word whil...
Check if user that sent a message have permission 50 messages
buoyant bramble How can i check if the bot have a specific permission on the server? I was using `if (msg.member.permissions.has("USE_A...
Slash Command Builders 4 messages
fickle crow I am following the guide for slash command builders and trying to figure out what to do with the part that says get the ...
Leveling system not working 4 messages
stoic flame So the issue is that when trying to make aleveling system and send the data tyo mongoDB it seems to not even be calling...
Get the list of roles for a server and browse it. 10 messages
hexed escarp Still a little question about the roles, I would like to retrieve the complete list of all the roles to browse it and re...
error 13 messages
tender dew okay so when ever i start running my code using cmd my code is a discord bot it gives me this
Doesn't run with systemmd 2 messages
tranquil lava im trying to get my bot to auto start with my computer but when i run the startup script through systemmd i get this err...
Question about message edit limitations 4 messages
vale dune When editing a message (this message has been fetched), is there a limitation on how old a message can be?
JSON File Counter 46 messages
halcyon pier I am trying to make a simple word counter in discord.js I have managed to get the bot counting the specific word i want ...
Find what role was added/removed with guildMemberUpdate 6 messages
sudden grail Hi, I am trying to detect when a role is removed from a user. I currently have the following code: ```js client.on("guil...
.showModal is not a function 15 messages
paper iron I use modals a bit and every once in the while I get the error `TypeError: interaction.showModal is not a function` now ...
998292157150535700
Interfacing with call video 4 messages
edgy fossil Is this library capable of interfacing with the video streamed by other users during a call? I'm trying to create a bot...
unable to make changes 52 messages
stark coral i have made a automod command but i cant able to set punishment or logs
command.execute is not a function 152 messages
dark valley # Error ```js TypeError: command.execute is not a function at Object.execute (/workspace/official-realtrickz-communi...
Cannot read properties of undefined (reading 'Client') 21 messages
dim bane Hi, so i need to add intents to my basic bot. Now it cant read `Client` anymore when i do this, does anyone sees where i...
Is it possible to create the backend of a dashboard with discord JS? 45 messages
icy vapor Like the title says. Im wondering if its possible and yes, if it is recommended. Most of the avaibale tutorials on YT ar...
how to this type of advanced help menu 13 messages
bright stone https://srcb.in/aatGdT2Ff5 https://srcb.in/IrPCEw0UZu ```js const commands = interaction.client.commands.filter(x => x....
Problem: Preparing to connect to the gateway... 10 messages
visual locust Hello i have problem, im running my discord bot on a hosted server, it hasn't worked for the past few days. I need help ...