djs-questions

13317 threads · Page 125 of 267

Webhooks VS Sending messages 6 messages
sacred wolf I have seen some bots use Webhooks instead of sending through the clieny for some messages. I believe Dyno sends event l...
Can anyone help me with this thing in discord.js buttons 4 messages
edgy cobalt I am creating a command in which if both the user(interaction user and the target user) clicks the button. Only then it ...
Slash Commands 3 messages
umbral kettle I am having an issue where /commands from my bot isnt working on another server. I am not sure what it is but I did giv...
TypeError: embed.addField is not a function 41 messages
hallow vector .
Embeds+slash command support 6 messages
dark basalt Greetings, Currently, I have a kick slash command, and currently it just sends the message. I want to make it an embed ...
Code isn't Registering Global Commands 53 messages
drifting inlet ```js const { REST, Routes } = require('discord.js'); const { clientId, token } = require('./config.json'); const fs = r...
UserSelectMenus 3 messages
uncut field How do a get the output from a userSelectMenu?
I Tried To Add Role To User 5 messages
turbid latch ```TypeError [InvalidType]: Supplied roles is not a Role, Snowflake or Array or Collection of Roles or Snowflakes. a...
Get Server ID on invite 10 messages
knotty osprey Is there a way to trigger a webhook to my server when the bot is added to a discord server? Basically I'm building a Di...
Channel Permissions 19 messages
last lantern hey im trying to get a specific role permission in a channel and copy its perms with another role in another word duplic...
guilds is not defined 24 messages
delicate hatch im trying to create a command to create invite links but i cant manage to define guilds.
I don't know how to make a conditional "if" in setTimeout() (related to roles) 43 messages
signal hinge Hi!!! So, i was trying to make a mute command, and the good thing is i was able to creating it. However, i use the funct...
Intents Error (Type Error) 38 messages
hallow vector ```ts const { Client, Intents } = require("discord.js"); console.log("Bot is starting..."); const client = new Client(...
How will djs handle bot tags, since they're not switching to the new username system? 11 messages
runic quail I read on the Discord dev server that they decided not to switch bot users over to the new username system (yet), and th...
Linked roles 6 messages
twin lion Hey guys in December 2022 Discord introduced the linked roles feature. If this feature is enabled on a server and a user...
[Registering slash commands] 19 messages
willow hare for now I register slash commands by the official guide from https://discordjs.guide/creating-your-bot/command-deploymen...
help me 14 messages
ocean hearth ```cmd node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */); ...
ExpectedConstraintError Role Selection Menu 5 messages
gilded flower I have 97 roles in my guild. However, when I use a role selection menu, it tells me `ExpectedConstraintError > s.number....
can someone teach me how to load dok/eval command in d.js bot 2 messages
rugged shell I have a pretty good d.js bot but i don't know how to load eval/dok command.can u tell me pls?
@discordjs package
My bot's buttons isn't working in dms 34 messages
can i make post in bots? 2 messages
young solstice hi, can i make posts like this one in bots? also how to do that, what methods and classes avaiable
Can someone explain, when D.JS is running slash description verification? 2 messages
How to access an API error's response object 9 messages
crisp sonnet How can I access an API error's `response` object? In the guide it doesn't say anything about the error's response objec...
Select menu weird bahavior 53 messages
soft surge (reposted from <#824411059443204127> due to no respond for 10 minutes) Hello guys, I am back I have a problem getting my...
Need help debugging an error 13 messages
quaint loom Can anyone help me debug this please? I've looked all around my code but there's nothing about ID. Any lines regarding `...
Finding a role 5 messages
topaz shale Im using command option to get a user, for instance /addrole @name, i created a member value but cant figure out how to ...
Custom role selection menu 9 messages
gilded flower I would like to create a role selection field, like attached to this message (search feature, mulitple selections possib...
Using REST API 4 messages
tired ledge I am using this REST method, but instead of blindly following tutorials; I would like to actually know what it does and ...
/ to normal commands 7 messages
sturdy juniper so i made my bot with / commands but i want them to also be able to use them as normal commands , so how i do i convert ...
displayName 6 messages
jaunty crescent I want to get the profile name on the current server of the user. currently I use it as following: ```channelName.replac...
@discordjs package
command not working 9 messages
sturdy juniper ``` colors = require('colors'); const { ActionRowBuilder, ButtonBuilder, ButtonStyle, SlashCommandBuilder,EmbedBuilder }...
component collector 6 messages
wet pier can i collect two different components? for example, i am using a button that leads me into a string select menu
How Can I Get a bot to respond to me in Dms 4 messages
gleaming thicket ```require('dotenv').config(); const { Client,IntentsBitField, Constants } = require('discord.js'); const { CommandHandl...
"owner-ids": ["the ID of the owner (insert as int, not string)", "this is a list so you can put in m 23 messages
feral osprey Please explain this real quick
is it possible to list all the guilds that a bot is in? 13 messages
cerulean bloom I can see that more servers seem to be using my bot. Is it possible to list all the guilds a bot is invited to with disc...
if one user is already using a slash command, other users are unable to create their own instances 5 messages
ebon patrol I made a quiz bot recently and when more than 1 person is trying to use the commands at a time the bot responds with "th...
commands stop working after 1 command 27 messages
hot lava my bot works for some time, then all the commands stop working, where am i wrong? error: https://sourceb.in/IOcOfg7qsd ...
add/remove role to/from users with specific role 8 messages
last lantern !
Detecting role removal 5 messages
fleet mesa ```js client.on('guildMemberUpdate', (oldMember, newMember) => { const roleID = '899870393282752542'; const removed...
Differences between UserManager cache and GuildMemberManager cache 30 messages
muted beacon What's the difference between the UserManager cache and the GuildMemberManager cache? I understand the difference betwee...
message.content empty 54 messages
grave hemlock When I print message.content, its an empty string, why? My Intents are ```js const client = new Client({ intents: Ga...
AttachmentBuilder with filename containing spaces 24 messages
civic patio ```js let itemNameSearch = 'Black Metal 2.0'; let itemImage = new AttachmentBuilder(`../static/renders/${itemNameSearch}...
Pagination 11 messages
median frost Hello, I'm currently experiencing an issue with pagination in my Discord.js bot, specifically related to updating the c...
I cant use my anycommand 165 messages
solid bear Even if I fix my internet connection problem I got this error
Calling a DM function from outside Discord.js 2 messages
nimble badger Heya, I was wondering if anyone has insight to how i can call for a DM event via a outside function, My bot is running ...
commands for reply 12 messages
pine turtle how do i make it so when it replies to a message it doesnt @ the person. as message.reply @s the person
@discordjs package
commands not working 9 messages
hot lava No terminal errors codes: mute.js:https://sourceb.in/x0o9psFUPs ban.js:https://srcb.in/IC8X46i8jV
Error in Syntax PS - dk which version of discord.js its running :) 3 messages
my bot is not working 21 messages
high flicker so i wanted to make a bot for my comunity but its not working i use replit in my browser to edit the code i have 2files ...
@discordjs package
Sending voice messages 41 messages
winged herald Hi, I want to send voice messages from a bot, do you think it's possible? I tried this code, and from what I can see in ...
dev release