djs-questions

9202 threads · Page 61 of 185

no errors etc not not running script 26 messages
heavy stirrup Hey I’m using discord.js in VS code my bot is online but running the main script to utilise the bot isn’t working there ...
How do I get target's presence ? 5 messages
fallow linden I am creating a slash command that gives presence info about a target'ed user. How do I get their presence? ```js const...
Live count cmd 4 messages
deft moon I want to make a slash command that updates a voice channel that it has created before every 10 minutes with the current...
deploy-commands.js stopped working without errors 21 messages
deft moon It takes forever to reload 5 commands
how do I create a abstracted role layer for mocking 5 messages
cursive yoke This is the current way I am mocking roles https://github.com/BeanieMen/HueHueHue/blob/master/tests%2Finteraction.ts How...
Embed User Input 10 messages
lost sinew I am looking to accept a user input to fill in a few values in my embed command. How would I go about doing that? I atta...
Help with select menus 3 messages
lost trout hey all, im trying to get a select menu collector working but i cant seem to figure it out... i have two rows, each with...
Sharding help 3 messages
candid zephyr Hey so I need some help with sharding, my bot is now at 1500 servers so I assume thats why its spawning 2 shards, howeve...
i keep getting this error and i cannot find a solution 12 messages
empty tree ```Error: Cannot find module 'discord.js' Require stack: - C:\Users\Yiğit\Desktop\marsh\index.js at Module._resolveF...
401 error on get request 12 messages
sharp dust I'm trying to get a list of all of my guild application commands for this bot but I'm getting a 401 error on this rest r...
Accounts linked to the role 2 messages
little forum Hello, I have a question it is possible to check with a bot if someone connects an account with a rank on discord, can I...
User install 4 messages
spiral inlet Hey can we use the user install? Like interactionCreate, messageCreate etc will still work?
14.14.1 get deleted thread infos 4 messages
shadow notch Hi, I have this: ```js const { ChannelType, Thread } = require('discord.js'); module.exports = { event: 'threadDele...
what is this? 4 messages
opaque oxide what type or error is this and how can i fix it (djs 12.5.1)
Emoji may not display correctly with channel names in special circumstances. 9 messages
astral void If special circumstance emoji are used in the channel name, they will not display correctly. code ```js client.on('mess...
import "client" into separate function files 9 messages
zenith bough im creating a heat system and with this im adding automatic punishments so i want to make separate files like a "ban.js"...
1150878580193116250
ephemeral not working 3 messages
random vapor Can anyone take a look at my code to why the ephemeral responses arent appearing as ephemeral
1150878580193116250
User bot installation support 6 messages
wet barn Is there going to be discord.js support for new user install apps?
1150878580193116250
setNickName limitations 28 messages
trail mason Hi everyone! I have a bot that changes its nickname every time a websocket is updated (around 10/15 seconds) and I can't...
Unify emoji size in embed thumbnail 1 messages
small pecan I have an embed and I set an emoji as it's thumbnail, however some are bigger and some are smaller. I want to unify the ...
1150878580193116250
My bot stop Giving Roles and Removing them after a while 13 messages
hazy zephyr ```js await GiveRole(guildid,user,role) async GiveRole(GuildID, PlayerID, RoleID) { const Guild = await this.luna...
1150878580193116250
Send message at exactly 0:00, with the most accuracy possible 7 messages
kindred shore Hey all! I am doing a bot that sends two messages at 0:00, using the cron module to specify the schedule (*/0 0 0 0...)....
1150878580193116250
Im only getting online members by specific role 5 messages
dapper geyser Im only getting online members i want to get all members by specific role please let me know how to fix this below is my...
1150878580193116250
incident-actions 26 messages
rough scaffold Does discord.js already include the function to enable the incident-actions like "Disable PM for 24h"? If yes, can some...
Collector.on('collect') not collecting for createMessageComponentCollector. 11 messages
rigid kestrel I'm having trouble figuring out why my bot wont fire on Collector.on('collect'). I tried putting a console.log('test') i...
how to set up action row such that each user can interact with a button only once? 44 messages
rigid kestrel I'm trying to set up an action row with multiple buttons (for example A, B, C), and I want each user in my server to be ...
Client. login error issue 2 messages
flint sphinx I suspect it's a network issue in my area, but I have tested several methods but none of them can solve it ```javascript...
Deleting ephemeral replies 7 messages
little mesa Is there a way to delete/hide a previous ephemeral reply after user clicks the button? I know ``await interaction.delete...
1150878580193116250
How do i delete/remove my discord bot's banner using d.js? 4 messages
glossy turret I have no idea how and need help
Problem with syntax from guide's command & event handlers 14 messages
compact geyser Wasn't sure if this fell under djs or other-js since its about the syntax used in the guide but not specifically djs lib...
1150878580193116250
How to ping a role an a thread but not adding them to it 3 messages
old haven I want, that the member with the role get a notification and see that there is a new thread, but I don't want to add th...
Interaction CacheType in Typescript 8 messages
fathom hinge Hey everyone, I've started rewriting my bot in Typescript, and i'm running into problems with the generic Interaction ty...
What Im doing wrong? 6 messages
topaz kraken im trying to make a request trough API but instead I got 403 error everytime I try ```JS const { get, post } = require('...
embed 119 messages
covert pier ```js const { SlashCommandBuilder } = require('@discordjs/builders'); const { MessageEmbed } = require('discord.js'); //...
Invalid Bot Token 12 messages
leaden whale Heres my register commands code ```...(async () => { try { const rest = new REST({ version: '9' }).setToken(proce...
Cannot find value in JSON file of mentioned user (TypeError: Cannot read properties of undefined). 3 messages
rare moon I'm trying to check the value of variables ``ally1``, ``ally2``, ``ally3``, etc, and when using ``message.author.id``, i...
Looping through an array getting input each iteration 24 messages
prime ice I'm trying to loop through an array to get input each iteration of the loop. The issue I'm running into right now is the...
send file 3 messages
kind terrace messageCreate event. I want to when a message is created. it tells me is message video or image or no? how can I do that...
Discord Link Filter 11 messages
wary vigil Hello! So I have this filter in my bot setup to not allow links. However, I had recently setup a level system allowing l...
1150878580193116250
Couldn't resolve the user id to unban 21 messages
dusty linden I made a ban and unban commands for my bot. Even though my ban command works without any problems, I am having problems ...
Is there a way to have screenshare 3 messages
signal notch I would like to screenshare a website with my bot (or screenshots of the website every 3 sec if it’s not possible) and i...
Animated bot banner 3 messages
vestal spindle How to set animated banner on discord bot? Ik its through api, but how?
1150878580193116250 998292157150535700
Help With permission on discord bot 16 messages
dapper geyser I have already given permission for application.commands on my discord bot https://discord.com/oauth2/authorize?client...
1150878580193116250
Discord js V14 modal submit error 11 messages
dapper geyser My data is being saved into database but the form on discord is not submitting it shows something went wrong on form but...
1150878580193116250
IntelliSense with voice not present 7 messages
mellow zephyr I'm working with discord.js/voice and it does not seem to have any autocompletions. I've been having similar issues late...
1150878580193116250
ReferenceError: client is not defined 13 messages
covert pier ```js const PTERO_URL = 'panel.'; const API_KEY = 'hheeh'; const NODES_ENDPOINT = `${PTERO_URL}/api/application/nodes`; ...
1150878580193116250
discord.js Can't run on hosting 7 messages
potent thunder ```/root/node_modules/discord.js/src/client/BaseClient.js:45 userAgentAppendix: options.rest?.userAgentAppendix ...
How can I change the VC status/description message? 10 messages
silver light I am looking to bypass rate limit on VC name by changing status Cant find in types anything about "status"
1113356221962010634
how to make guidelines for a forum and one more thing 1 messages
worldly dust i want to make guidelines for forums in my server and this little intro thing but idk how to make it
Search for a role by ID 4 messages
potent thunder How can I find a role by ID?