djs-questions

9202 threads · Page 73 of 185

Trying to get THREAD_STARTER_MESSAGE content from a message 12 messages
surreal wolf Hello, i have a ticket system made with a bot, when a ticket is closed the bot lost scope of that ticket and that is int...
avatarURL function is broken? 7 messages
wary canyon Hey. I've been making a website with an integration through a Discord bot to get a staff list and its information. I've ...
1150878580193116250
Discord.js Chess Bot 9 messages
nova bobcat Hi, would anyone be interested in helping my project of making a chess bot? The project is currently 50% finished and ha...
1150878580193116250
Help bot not online 42 messages
twilit oak Hello there I just did a an the same code without any error but why my bot doesn’t work?
Hello can you help me please ? 8 messages
odd flint My "node main" command does not work.
Failed to fetch error in @discordjs/rest 49 messages
indigo lance Hi, I'm using @discordjs/rest & discord-api-types, I'm following the documentation, but for some reason, I'm getting Fai...
998292157150535700
GuildMemberAdd 11 messages
wise ivy How come this doesn't work?
Better way of checking if a channel is locked or not 3 messages
torpid holly . The codes above do work, but I feel they're not performant and there are probably better ways of doing this, any idea...
get application commands 11 messages
queen glen As part of the js file that registers my commands, I want to get the existing commands before registering the new one. T...
moving Chanels between category’s without permissions loss. 5 messages
trail schooner Does anyone know the proper way to move a channel from one category to another without removing the role permissions add...
TypeError: Cannot read properties of undefined (reading 'user') 4 messages
stone peak ```js // userCommand.js const { EmbedBuilder, ApplicationCommandOptionType } = require('discord.js'); module.exports = ...
Repeated slash commands ? 3 messages
amber quartz Why does this happen, the same command is repeated, or I get commands that no longer exist in the bot code ?
Interaction Failed 12 messages
summer salmon ```js if(json.data?.owns_license == true){ const embed2 = new EmbedBuilder() .setColor('#FFFFF1') .setTitl...
Category Position Bug 9 messages
pallid barn Although i set "**position: 0**", it don't creates the channel at the top left, but why?
Set Presence on Identify per shard using internal sharding? 20 messages
wintry mango Is there a way to set a different presence on different shards when using internal sharding?
Channel webhooks 10 messages
scarlet pewter Here (https://discord.com/channels/222078108977594368/824411059443204127/1196811552846786702) is explained what i want t...
Getting messages from a channel 4 messages
spark heath Is there an example anywhere in the guide or docs for fetching messages from a channel? The only examples I can see star...
When do Member roles cache? 4 messages
opal wind I need to make sure when a member leaves a guild I can access all their role ids somehow. Fetching all the members in th...
How do I check if someone if a user is an admin? 19 messages
keen lagoon How do I check if someone if a user is an admin?
Express x Discord.JS 2 messages
molten atlas Unsure whether this is the correct forum for this type of request however I may as well chance it. I am attempting to ...
1150878580193116250 998292157150535700
Collectors crashing bot 7 messages
lapis spoke ```ts await buttonInteraction.showModal(modal); // Collect a modal submit interaction const filter = (inter: Mo...
How do I get premium_type of a user or is there no way in discord.js? 4 messages
oak vigil I looked in the docs, but couldn't find anything. The user is not partial and fully fetched. I tested it with curl and i...
message.mentions.users being incomplete 9 messages
oak vigil When using message.mentions.users user who are not in the guild/cached by the bot, aren't in the collection. I pinged th...
restart command 19 messages
vague tendon I know there is a client.destroy how can I make a restart command with it and do i need to do new Client again?<:mmLol:2...
1150878580193116250
node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */) 3 messages
rugged moss ```js node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ...
1150878580193116250
How can I do that in my bot ? 3 messages
Can I detect Clips being made? 3 messages
young rose Is there a way to detect if somebody made a clip? Preferably without joining the voice channel, but I take what I can ge...
1150878580193116250
word filtering 7 messages
fresh ivy Trying to get this word filter to work. Its logging "Checking message" and its running the for loop, but its not runnin...
1150878580193116250
djs v13 sharding 8 messages
finite venture My bot has reached the 2.5k server limit needed before sharding so id just like some help in figuring out how to enable ...
1150878580193116250
How can I listen to Windows 10 notifications in JavaScript? 3 messages
frosty mortar I hope know if I can listen a new windows 10 notification and after it do someting with my bot in javascript Thanks
RoleSelectMenuInteraction Component Collector not working 6 messages
lapis spoke ```ts const firstActionRowButton = new ActionRowBuilder<RoleSelectMenuBuilder>().addComponents(roleSelect); const re...
UND_ERR_CONNECT_TIMEOUT 3 messages
harsh kestrel My bot was fine before, but starting today I made 1 small update and recieved this: ``` /home/container/node_modules/un...
modalInteraction.field.getTextInputValue('Name'); 21 messages
Add functions to buttons 5 messages
untold relic How do I add functions to a button that shows up with slash command?
I don´t know how to Do it 15 messages
high glade I have absolutly no idea how to Get the Bot to Use The Source Code
Slash Command icon 3 messages
wicked flare last month while im studying the bot how to code and how it works add and delete commands even i invite again the bot wi...
its not adding in the database 3 messages
how to fix 5 messages
1150878580193116250
Buttons Expiring 68 messages
rancid sable My buttons expire. I use interaction event to make them permanent but it does not work.
Commands not executing 18 messages
surreal veldt My commands not executing and i don't have any errors in console Main file: https://srcb.in/r5rmGowH9E Command handler:...
1150878580193116250
Issue with types 10 messages
austere quartz So I created a function for myself to manipulate the content of my responses, but i'm having issues with that: ```ts ty...
Slash Command Registration & Loading Library 24 messages
solid thicket https://github.com/Vanillaanarchy-net/utility-discord-bot/ The commands are registering but they are returning interact...
Managing, Testing and Deployment of Discord Bot 4 messages
frosty gazelle I am relatively new to Discord.js and currently building a bot that incorporates ChatGPT. My goal is to host it on a pla...
bot errors after reboot command 4 messages
wet barn Hello, this is the reboot command, ```js const { SlashCommandBuilder } = require('discord.js'); module.exports = { ...
1150878580193116250
Bot Crashes After Adding Role To Member 15 messages
vocal plover I made sure my discordjs was up to date but still getting this issue
1150878580193116250
"MessageEmbed is not a constructor" error. 4 messages
green path Error executing command giveaway: TypeError: MessageEmbed is not a constructor
Random "DiscordAPIError[10062]: Unknown Interaction" 16 messages
fickle granite i try reproduce the error, but it is so random, I just run the '/user' command several times then it will eventually hit...
1150878580193116250
message collector not working? 22 messages
meager dagger Hello my bot has a message collector and it has been working for the longest time untill I swapped to djs14 I didn’t tou...
1150878580193116250
Any better ways to get ALL guild members that have a specific server role? 8 messages
pastel garden Small question for those that know, is there any better way to get all guild members that have a specific guild role tha...
Add an image buffer as an attachment to an embed 11 messages
runic quail discordjs 14.6.0, nodejs 18.15.0 I'm trying to use a buffer to attach an image to an embed, and I have no clue how I'm ...