djs-questions

13317 threads · Page 62 of 267

Still get this error 4 messages
old haven I dont know why I always get this error DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_REQUIRED]: This field ...
TypeError [ColorConvert]: Unable to convert "16705372" to a number 19 messages
misty stirrup Hey, I am using [email protected], and when importing Colors from discord.js and using .setCol...
dev release
Issue trying to run 'node . run test' anyone know how to fix? 3 messages
How can I get user’s guild nickname from a slash command? 4 messages
elder plover displayName doesn’t return a user’s server nickname, and ’user’ in a slash command doesn’t include nickname property. H...
4 Events not firing 6 messages
spiral inlet Hey any idea why these 4 events not fire? I have 37 other events that work fine ```autoModerationRuleDelete, autoModerat...
New to Discord.js 7 messages
proven adder Hello, I'm new to using Javascript to code a Discord bot (I'm also new to using Javascript to code, this is my first exp...
Adjusting a Bot's Guild Function 2 messages
i need help fixing this error for node.js 16 messages
upbeat flicker does someone mind helping me out? i keep getting this error and get get it resolved Debugger attached. Waiting for the ...
node
How long can a bot edit a message for? 2 messages
glossy turret Persay, if I wanted my bot to edit a message from months ago, would it be able to? Hint: i'm only asking so I can make ...
How can I stop people from adding other users to a thread using @Username ? 2 messages
old haven .
Send me dm on every message 7 messages
deft moon I want the bot to send me a dm with the user name, id and the message. I just want 1 index.js file and no other commands...
Send Voice Message through bot 9 messages
zenith steeple How I can send and receive voice message through bot api?
question about liability 10 messages
little forum Hello, I have a question are there any regulations regarding creating bots on discord? Because I was wondering what if ...
Event listener breaking upon using command 15 messages
compact geyser Hello, my bot cannot complete a command properly and as far as I can tell in the node console is that something is break...
DiscordAPIError[10062] With no consistent reproducibility 15 messages
gloomy ingot Good evening! Thank you for taking the time to read my post, I am very much a beginner learning/teaching myself JS us...
Diseact: Implement JSX to construct bots! 2 messages
fierce fjord 🚀 Introducing Diseact: Revolutionize Discord Bot Development with JSX! Say goodbye to cumbersome code and embrace simp...
Event Properties missing? 10 messages
compact geyser Hello, I have gotten essentially all the base components of my bot to work at this point, but when booting up the only t...
How to create multiple .addStringOptions 7 messages
lost sinew Needing to create multiple .addStringOptions, but it is not coming through after I refresh commands and start the bot, i...
Premium only command 8 messages
deft moon I want to make a command that checks if you have the premium role in a specific guild (i already added that guilds id to...
User Apps Permissions 40 messages
shell anchor Hey, Do you know if they will add the possibility to add permissions to user apps ? Like the possibility to connect an...
node
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"...
node
ephemeral not working 3 messages
random vapor Can anyone take a look at my code to why the ephemeral responses arent appearing as ephemeral
node
User bot installation support 6 messages
wet barn Is there going to be discord.js support for new user install apps?
node
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...
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...
node
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...)....
node
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...
node
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...
node
JSON writing removing values, values in wrong place. 3 messages
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...
node