djs-questions

9202 threads · Page 166 of 185

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 46 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...
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 8 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 ...
986538542350086175
My bot doesnt want to login 9 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...
Auth by discord 1 messages
languid token Hi Can i and where i can tell my question about auth by discord ?
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) { ...
slashcmd.run issue 3 messages
hybrid urchin This is my music bot. I tried, to add a other command, and all i get back is this. I am too stupid to know what the issu...
Sending a message with more than 100 characters 4 messages
mighty hatch When I try to publish my slash command, ```javascript interaction.reply(new MessagePayload(interaction.channel).makeCon...
998292157150535700
non slash commands 26 messages
mighty hatch If, for whatever reason, I want to write a command that uses the old fashioned `!<commandname> [arbitrary number of argu...
How to ban user in v14 7 messages
lean swallow Hi, I'm very new to discord js I'm trying to create a !ban user command however I can't find out how to do this anywhere...
bot won't make commands and gives weird errors but still comes online 10 messages
nocturne plank This is the error i get: ` [Error_Handling] :: Unhandled Rejection/Catch` `DiscordAPIError: Invalid Form Body` `name: C...
slash command error (error event) 5 messages
lucid apex Hey there! I have asked something about the slash command registration some time ago, now I have a new error. When I r...
Variable Length StringSelectMenu 9 messages
slim peak Hello! I Was wondering if its possible to make a select menu, and then add options to it with another function similarly...
hide status 6 messages
runic kiln Is there a way to hide the status of the bot like this
servers list 12 messages
timber granite How do I get a list with the name and members of all the servers the bot is on?
discordJS command do not register 9 messages
lucid apex Hello there! I have just started a new discordJS v/14.7.1 project. However, I have followed the discordjs.guide exactly...
Unknown interaction error 5 messages
west iron My code : https://sourceb.in/Cg9oUtHEHF Error i am getting:https://sourceb.in/gCjavYjFua
Wrong code 23 messages
crimson fern Everybody can help me found the mistake in this code: const commado - require('discord.js-commando'); const commando - ...
Is it possible to create presets for an Integration? 8 messages
scarlet solar In Server Settings -> Integration, you’re able to set permissions for slash commands. You can hide/show them based on ch...
slashcm removal 22 messages
terse elk How can I remove a slash command ?