djs-questions

13317 threads · Page 113 of 267

How can I respawn a disconnected client that was not spawned from a ShardingManager? 12 messages
granite hawk I've noticed after a long time my web-server will still be running but the bot will be disconnected from discord's gatew...
Bot not responding to slash commands 7 messages
neon harness I've just created my bot following the v14 guide. Basically everything is copy pasted from the guide except my bot's tok...
Error from guilds flags (?) 14 messages
wet folio idk why, im still learning yk w a video JS and the how to code a bot, and i just followed every steps into that, to get ...
Buttons 7 messages
urban wasp https://srcshare.io/64bc52f9fa3442a7f7ec6724 The bot sends: `this interaction failed`, no errors on the console.
Weird issues with different computers 21 messages
outer karma So I had an old laptop where i messed around with bots a lot and it worked perfectly fine. I decided to get into discord...
@discordjs package
getTextInputValue not working :C 56 messages
faint sinew ```client.on("interactionCreate", async (interaction) => { console.log(interaction.fields.getTextInputValue("request...
Delete Channel With Button 80 messages
smoky stag I have this simple function https://pastebin.com/LygHwdrQ which is meant to do the following: 1: You press the button 2...
channel.isTextBased() is not a function 12 messages
rare reef I have a ticket bot but by trying to open a ticket it gives me the following Error: ```0|ticketer-backend | TypeError: ...
message fetching 19 messages
torpid slate ```js const joinMessage = await client.channels.cache .get(docsSetup.ArchiveChannel) .messages.fet...
member permissions to readable format 2 messages
visual widget ```ts const memberPerms = member.permissions.toArray() console.log(memberPerms) `````` [ 'CreateInstantInvite', 'Kic...
intellisense not working 165 messages
steel rover when i write `inv.` it doesnt follow up with any suggestions, like `url` for example
How to create timestamps 5 messages
uneven wasp But how Do I make this into a timestamp ```.addFields({ name: "Date Created", value: `${guild.createdAt}`, inline: true}...
Many typing issues with Typescript 10 messages
latent pewter I am new to DiscordJS, and I keep facing typing issues with Typescript.. There are some examples in the images I tried m...
How to get last messages from a text channel ? 13 messages
ancient galleon Hello, I would like to get messages from the newest to the oldest in a text channel. My way to get the oldest: ```js co...
I want to ping a role from config.json with discord.js 33 messages
umbral dove Do I have to do it like this Ex: <@&{congif.ownersRoleid}> ??
Custom identifier for fields 3 messages
magic imp is there a way to set a custom field identifier for embeds? or are you limited to just the name field?
setPresence of the bot but it's not visible 7 messages
quiet drum I don't have error.
RPC
How to make Typescript recognize type files 11 messages
royal falcon Hi, I am a beginner developing in Typescript. I am trying to create a bot that can use commands using `client.commands...
Unknown interaction 5 messages
mellow harness The idea is to use a slash command to run a separate js file, which would reduce hunger and thirst. If any of the two ar...
Discord API Error. 9 messages
Embed: Wrong image in iconURL 5 messages
jade vector Hello! I'm with Typescript. I generate my image using my GitHub repository, so I just need to push to it and use `https...
slash command type issue 12 messages
visual widget `./lib/types/command.ts`: ```ts export type Command = { category: Category data: SlashCommandBuilder | SlashCommandS...
Vouch 4 messages
snow falcon I need a discord vouch bot /vouch /check vouches /vouch leaderboad
Guild#disableInvites returns 403 5 messages
lone flame Hello! I am trying to enable disableInvites, but every time Guild#disableInvites is called, I get a missing access error...
Get all users which have permission "Connect" on false in a specific voice channel 2 messages
sterile cedar The goal is to create a list of all users which have permission "Connect" on false in a voice channel... Still no idea?...
this interaction failed 6 messages
last lantern idk for some reason one of my button on my embed doesnt work , i tried almost everything for straight up several housrs ...
Get All users banners 33 messages
buoyant basin So im trying to get all banners of server members.. what im doing is fetching all members `let members = await guild.mem...
Upgrade help from 11.3 to 14 4 messages
keen ivy Guys help me please upgrade my index.js file, it written in 11.3 version, for that I get error : require('dotenv').confi...
do not remove the role 2 messages
opal wolf I don't know why, but it doesn't take a role, and it should. https://pastebin.com/xgayACxE it code
How to create an event that fires on express server PUSH 2 messages
thick hare I am creating a discord bot that will allow me to verify a player in my mobile game when a player enters their discord ...
Problems with the Export of modules in v14 20 messages
somber bison Only one Funktion is getting executed and the other not, what can i do?
Issue with Discord.js command deployment script 19 messages
flint geyser The script is designed to deploy application commands to a Discord bot, but it doesn't seem to complete successfully. It...
Problems with the Export of modules in v14 3 messages
somber bison Only one Funktion is getting executed and the other not, what can i do?
New slash commands not registering 10 messages
jagged folio Two of my slash commands (new ones, created after the last deployment) are not being registered. I checked that the arra...
Applications commands are registered throug rest api but not working 20 messages
warm bobcat Hello, I am having a bit of a problem.. I a file named `command.handler.ts`. This file is responsible for loading comman...
TypeError: (intermediate value).setToken(...) is not a function 11 messages
`channel.permissionsFor()` does not take timed out guild member permissions into consideration 3 messages
sour carbon According to [docs](<https://discord.com/developers/docs/topics/permissions#permissions-for-timed-out-members>), timed o...
dev release
Slash Command - Webhook Avatar Not Setting Correctly to User's Avatar 5 messages
flint geyser I'm facing an issue where the webhook's avatar is not being set correctly to the user's avatar. Instead, it appears to b...
How to make embeds send correctly 6 messages
thorn rapids Hey! I've been failing to make this embed send correctly. I'm trying to make code to sends multiple embeds whenever it ...
How to make SlashCommand Args 5 messages
hearty lava Trying to make an Integer arg for a slash command but it is giving me a weird error.
Bot not coming online 19 messages
outer karma My bot does not come online when i run this code ```js const { Client, GatewayIntentBits } = require('discord.js'); requ...
error on handelcomands though i didnt wrote anything there 9 messages
solar hemlock client.commands.set(command.data.name, command); ^ TypeError: Cannot r...
Making empheral embeds 10 messages
gritty cloak I'm having an issue where I am trying to make an embed empheral, I can't seem to get it to work. I am getting a lot of...
My Bot down why? 13 messages
oak maple Can anyone fix this why?
@discordjs package
embed edit 9 messages
GuildMemberUpdate's oldMember doesn't have correct roles. 45 messages
bitter jolt - [email protected] - Node v16.20.1 I'm trying to run some code only when a specific role is either added or removed. ...
deploying commands 10 messages
nimble tusk Hi, how often do i need to re-deploy my commands, it seems they are disspearing every few days?
By hovering over an embed, an 'X' icon appears. Clicking it deletes the embed (doesn't hide it). 8 messages
signal mist Is possible to remove this for my server / bot. What is the event listener when a user press the 'X' icon, like when a u...
50001 and 50013 25 messages
sweet trellis I am getting a couple of issues related to this .. Node : v17.9.1 d.js : 14.11.0
AutocompleteInteraction#respond takes a long time to return 15 messages
trail swan my code: ```js const i = Math.random(); console.time(`searching-${i}`); const focusedValue = interaction.options.getFocu...