djs-questions

9202 threads · Page 144 of 185

How do I fetch a member? 3 messages
indigo crown This doesn't seem to work right now
Is it possible to read members on Events? 2 messages
ember mantle Can we read members from who have joined to a event? Is there any proper way to get it?
I need more help 12 messages
rancid wasp I have made this and i cant resolve id anyways to fix it
how to I do : Watching × Servers status 27 messages
rancid wasp I want to make my bot do watching X servers! How do I do it?
variable error 7 messages
vague elbow I declared a data in the const but it is accusing me that it was not declared. where should i make this declaration? I...
998292157150535700
Bot crashes after running a servercreate command 50 messages
rare reef Hey, I have some problems with one of my commands,. So it should simply create a discord server from a server template ,...
Creation error 7 messages
vague elbow I followed the documentation exactly, I read it and performed the procedures it asked for. however I'm having an error ...
998292157150535700 986538542350086175
Error 7 messages
indigo crown ```js // Place your client and guild ids here const clientId = clientID; const guildId = guildID; const foldersPath = pa...
Best approach for this ? 10 messages
prime turtle Hello there, so I wanna make a little game where the goal is simple : count. So, in a dedicated channel, people would se...
delete messages on ban 8 messages
crystal forge Why d.js not allow to set time for messages deletion on ban in seconds, not days? For example, where you ban member from...
Is there a way to unselect a reaction in a select menu? 6 messages
quasi latch Is there a way to unselect a reaction in a select menu?
What is the type called in `discord-api-types` (v10) for registering a command? 7 messages
998292157150535700
Assigning role to user 27 messages
zinc heron Hi! My goal is to assign a role to a user using the bot. I set up the basics of the bot, ping and the basics work. I hav...
where did the member.id attribute go 7 messages
young solstice as the screenshot shows
TypeError: Cannot read properties of null (reading 'fetchClientValues') 26 messages
shadow junco Help me please
Cannot read properties of undefined.. (Error) 14 messages
hallow briar ```js client.on(Events.InteractionCreate, async interaction => { const selected = interaction.values[0]; if (!i...
discordjs/voice 6 messages
upper wraith is it a separate module unrelated to discordjs version, or is it included in the main module? like, i have discordjs v13...
998292157150535700
if (channel && !channel.isTextBased()) return; 8 messages
gray quiver Getting this error
Destroying error 35 messages
vagrant pumice guys i have multi bots working in same project when boughtAt - Date.now() <= 0 is done a new doc inserted in destroy sc...
Get the ID of the Channel Created with interaction.guild.channels.create() 4 messages
warm gale Warn: I don't speak English very good. Hi, does anyone know how I can get the id of a channel that the bot created with...
Select menus & label name 7 messages
hallow briar Hello, so I want my bot to send an embed with the selected option from the drop down menu, right now it is sending the v...
Cannot get online users 9 messages
craggy saddle I am trying to get an online user on that server when I use the s slash command. At that time, an error occurred. I have...
Messages sometimes failing to send silently with "<ref *1> Message {}" log printed on its own 14 messages
gentle timber Title. I just jumped back in after years of not using the library and so much has changed. Namely - when sending a messa...
<channel>.isTextbased() still throwing an error. 23 messages
gentle shoal https://osgnio.sentry.io/share/issue/f2f612a99ab543f4b29542c130b7f12b/
I'm using typescript, but my code has loads of errors. 37 messages
edgy dune The errors are as follow: `[var] is possibly null` (e.g. `client.user is possible null`) `Property 'user' does not exi...
How to use the value of .addChoices 9 messages
mellow kite ```.addStringOption(option => option.setName('game') .setDescription('game') ...
Sub groups 7 messages
deep ledge I'm new to DJ's how can I make a SlashCommand look like `/hii hello hmm`? Is there any reference? For this?
component 8 messages
shrewd hinge how do i get the placeholder value of the current component?
How to add a User option inside of a slash command? 9 messages
fallen crescent using the `ApplicationCommandOptionType.User` gives me auto-suggestion on options and gives me a list of members/users. ...
New Bot faster with editing 4 messages
faint sinew I have a question. I created a new bot and he is faster with editing embeds. He can easy change every 1s the embed. But ...
V12 discord.js bot help 6 messages
limber mica Hello I search someone to help me to debug a bot
Trying to generate data in a table 12 messages
mellow axle I've seen that you can use basic html in a discord embed but it's not working in Discord.js. I'm not sure if there is a ...
Permission to add role? 14 messages
fathom cliff help im trying to make a bot, it worked perfectly on my test server with test accounts but then i put it into production...
channel.isTextBased is not a function 5 messages
leaden hazel Hi , i coded a command and it worked for a time and suddenly this error appeared What is the wrong 🤔?
error 8 messages
rigid knot How to fix interaction failed in djs v13
TypeError: Cannot read properties of undefined (reading 'FLAGS') 52 messages
rare reef Hello, I got an error with the flags. Could someone help? ```js const { Client, Intents } = require('discord.js'); cons...
Emoji Selection 8 messages
heavy haven Hello. I am looking for a way for users to select an emoji, preferably from an interaction similar to (for ex) a `RoleS...
Where can I find the options for creating a thread? 4 messages
fathom cliff this guide page <https://discordjs.guide/popular-topics/threads.html#thread-related-gateway-events> has ```js const th...
Syntax Error, unexpected token m 41 messages
lone bridge I need help
i have a problem with guildMemberAdd event , is repeated twice .. how i can fix that ? 21 messages
hearty apex i use console.log() to check it the code : ```js const Discord = require("discord.js"); module.exports = async (client) ...
Why channel.type is not working for me without any errors 39 messages
dawn zephyr ```js client.on("messageCreate", async (message) => { if (message.channel.type === "DM") { console.log("Tedt"); ...
How to import "JoinVoiceChannelOptions"? 7 messages
lethal spire Gives error.
998292157150535700
Stop the cap 4 messages
dawn meadow It’s 1st of April. Discord.js is being maintained. But nice joke 🤣😂 We all love our discord.js developers ❤️
My SlashCommandHandler isn't working.. 77 messages
hallow briar No clue how to fix it.. ```js const { Client, Collection, Events, EmbedBuilder, PermissionsBitField, Permissions, Mess...
Is it possible for a slashcmd with multiple param options to require at least (either) one of them? 24 messages
tepid glacier I want to create a slashcommand that allows users to search by name (type 3) OR by Id (type 4), but they MUST enter at l...
How to use the .addChoices command 2 messages
mellow kite ```.addStringOption(option => option.setName('game') .setDescription('game') ...
D.js bot using 8gb ram 47 messages
quiet ermine A few months ago I'm rewriting my old bot in python for discord.js I made the sharding system according to the guide, al...
The application did not respond 33 messages
obsidian zephyr Im receving an "The application did not respond" error when I try to run a simple pong command
command name invalid but can't figure out why. 4 messages
jolly sedge ``` { "name": "dalle", "description": "Generate an image based on an inputted text string.", "options": [ { ...
Cant get users banner 15 messages
jagged flame Im currently trying to get the users banner through `interaction.user.bannerURL()` but it is returning `undefined` (same...