djs-questions

13317 threads · Page 171 of 267

User Connections (Discord.js v14.7.1) 4 messages
still thunder Is there anyway to retrieve a user's connections?
bot suddenly offline 57 messages
slow ferry `client.isReady()` ``` Returns whether the client has logged in, indicative of being able to access properties such as u...
ChannelSelectMenuBuilder with type AnnouncementThread issue 6 messages
magic basalt It does not detect threads created in announcement channels, even if the member using the select menu builder is visible...
Problem creating new embed object from received embed object. 8 messages
hollow night I am having trouble trying to create a new, editable embed object from an embed received from a button interaction, but ...
I have a problem add bot my servers 5 messages
silent kettle hi, i create my bot and activate the below features > PUBLIC BOT > REQUIRES OAUTH2 CODE GRANT > PRESENCE INTENT > SERVE...
Issue with ClientApplication always being null 6 messages
soft quartz Hello, I'm trying to register application commands by doing `client.application?.commands.create()`. The problem is that...
Timestamps are not using viewers local time 5 messages
pseudo bone I am using `.setTimestamp()` however as it use to display the user viewing the embeds local timestamp it is now showing ...
Get server name from server ID 4 messages
sly furnace How do I get the server name from the server ID? I want to get the server name of the server ID entered with the slash c...
guildMemberAdd doesnt get triggered 22 messages
red latch Code: ```js client.on('guildMemberAdd', async member => { console.log("Member joined"); .... try { ....
Add invisible data to embed/interaction 14 messages
quiet oar Is their anyway I can add some data to an interaction/embed to then when writing the function for a button get the data ...
Can i make a bot with DiscordJS that does kinda like webscraping?(its uses push notifications) 3 messages
lucid dagger My company has a service, and i wanted to make us push notifications faster than atm, so wanna make a bot that can send ...
message reaction 4 messages
sinful thunder how do I only trigger a message reaction once, i.e. more than one user reacts to a message but only want it to action on...
How do I perform task upon reply-message. 4 messages
sage schooner I am aware that the statement `if (message.author.id === "id")` allows me to listen to someone else's messages, but it ...
Is using Telemetry in your Discord bot ethical? 2 messages
tribal saddle Hi all. I'm currently developing another Discord bot, and I'd like to integrate Sentry into it for better logging and tr...
deploy commands folder 2 messages
sinful fossil I'm trying to change the basic "deploy commands" that you give to us. I want to be able to read subfolder with files in ...
Attachements 19 messages
fallen gulch I am trying to add a string option to upload a picture for embeds but for some reason the picture doesn't show but every...
question 2 messages
stone thunder Hi What is the solution of Interaction has already been knowledged When i select a label from a menu again the bot giv...
If im using shards, can I have the bot go offline for a specific guild? 5 messages
golden nova While other guild have it online and working
ERR_INVALID_FILE_URL_PATH 10 messages
humble turret ERR_INVALID_FILE_URL_PATH error only on windows
timeout permission 5 messages
sinful fossil What is the name for timeout permission. For example, to kick I get the permission like that : ```js interaction.member....
Package/lib for easly mocking djs ? 25 messages
ivory patrol Hi Do you know an nodejs package that simplify mocking of djs things ? thx
My discord bot can't join vc 16 messages
obtuse rock ```js client.on('message', message => { if (message.content === '!join') { const voiceChannel = message.member.voi...
review command 2 messages
fallen gulch Keep running into something is undefined but everything looks defined and was wondering if I can get a second or third p...
channel.edit times out 5 messages
slow belfry When doing `channel.edit({ topic })` 2x in a row (10 secs apart), the 3rd time I run it takes a very long time to update...
How can I see how many messages a user has sent? 3 messages
steady venture Like in a command
Check if user has a role 6 messages
mild orchid hello, how can I check that user has a role with id 123...? I'm getting the user from `const staff = interaction.options...
List all channels in v14 5 messages
Is it possible to globally use embeds? 4 messages
fickle wasp Is it possible to globally use embeds for slash command without invividually adding them?
send a screenshot 23 messages
nocturne plank I have the screenshot part working, I just need to know how to get the bot to send the screenshot. Here is the code:
filter message content 5 messages
unreal stream is there a way to filter out emojis and links in message.content
Can you use Discord JS to read dms without a bot? 4 messages
strong birch So, for a project I'm working on, I need to read all the messages in a dm with me (not a bot), and another non bot. Does...
Some problems with collecting data from select menu 7 messages
sonic hedge When we have a lot of selects in the chat, when collecting one via createMessageComponentCollector, all collectors from ...
Can someone help me find out how to delete a document in mongoDb based on a field and value 5 messages
floral flower Can someone help me find out how to delete a document in mongoDb based on a field and value using discord.js?
My bot is can't send any message 5 messages
obtuse rock ```js const { Client, Events, GatewayIntentBits, SlashCommandBuilder } = require('discord.js'); const client = new Cli...
TypeError: Cannot read properties of undefined (reading 'send') 12 messages
young blaze That's my code in the index.js file: https://hst.sh/xabavudika.js I get the error in the title. I make this promise to ...
Error using GuildMember.roles.add() 4 messages
fierce fjord when i use `GuildMember.roles.add`, the bot can add the role to member, but this error appears I've already checked the...
TypeError: PermissionsBitField is not a constructor 5 messages
glossy wasp after consulting the documentation I wrote this code: ```js const {PermissionsBitField} = require("discord.js"); c...
Select menu listening 40 messages
silver sky Hi, so I have a slash command which sends a select menu and after that i would like to be able to use the same select me...
assigning two roles at the same time 6 messages
inland forge i'm trying to assign two roles at the same time, but he only assigned me the first role I wrote
How to send a raw PNG file as 9 messages
void lichen Advanced: attaching a raw PNG file as an image in a message I get a raw PNG from an API call (to `QuickChart`*), and w...
Error when attaching images to bot messages 5 messages
void lichen I'm trying to attach an image to a message. Simple version: just attach an image from a URL Permissions: ``` const c...
How to add choice to slash command? 30 messages
dawn zephyr Hey, I want to add choices to the option named "section", But I don't know how. Can you guide me? ```const { Client, Co...
bot going casually offline 73 messages
jovial elm i have a bot of ~550 guilds that casually goes offline sometimes and i have to restart that manually. i have other bots ...
dev release
Select menus 11 messages
My bot doesnt want to login 4 messages
near slate Hello ! I don't know why my bot dont want to login ,the token is the good one ,the ready event triggers and i havent an...
How I van make command which member need vote on top.gg for work/run? 4 messages
vale sonnet How I van make command which member need vote on top.gg for work/run?
How do I get the user object from a user not in the server? 15 messages
floral flower I want to get a user that's not in the same server the bot is in. I have tried ````await client.users.fetch(userid, { fo...
Webhook is not working or too long to send messages. 3 messages
sleek shuttle Sometimes I get errors like 'DiscordAPIError[50027]'
concat not doing anything nor += 4 messages
dapper goblet v14.7.1 for discordjs node v16.18.0 ```js async function updateRoleInfo(members) { let channelId = "106321230366900...
message author id returning undefined 11 messages
static citrus when I attempt the following code: ```js client.on('messageCreate', async message => { if (message.type == 19) { ...