other-js-ts

3634 threads · Page 34 of 73

waiting before proceeding 16 messages
royal silo how would i make it so before my code proceeds further, it has to wait for 2 seconds, and only then goes to the next lin...
modifying document after drop down use 75 messages
deep valve g'day, i've just finished coding all of my settings drop-down menus and am wondering how I could create a schema for eac...
Database
How do I get json format instead of html ? with reddit mems 17 messages
latent hound hello I am quite new to discord.js and js itself can someone help me to solve this issue ? The error: ```SyntaxError: Un...
Do all Discord bots that support per-server configuration have to query the database so often? 34 messages
shy lintel Do all Discord bots that support per-server configuration have to query the database to obtain the configuration of the ...
interaction.member.voice.channel.setLimit(anzahlValue); is not a function 3 messages
tacit fjord I want to the limit of user that can join a channel per button
how to get discord.js to not read the code inside of a string 3 messages
meager hare rn i need to have the code in the message for the reply, but it's reading the code inside the string, so its giving erro...
Node.js
Reddit status 403 error code 28 messages
dim glacier ```js const { SlashCommandBuilder } = require('@discordjs/builders'); const { EmbedBuilder } = require('discord.js'); //...
Found 97 errors in the same file, starting at: node_modules/discord.js/typings/index.d.ts:1210 26 messages
flat mauve I updated ts to latest version, and discord.js@latest I'm not sure what's going on?
package 5 messages
warm holly hey i try install package but that is impossible, see error : ```js npm install @nodegui/nodegui up to date, audited 27...
Node.js
Discord gateway payload issue 41 messages
wanton tusk I'm trying to make a bot with only Websocket through the discord gateway, what I'm stuck on is how to make the bot creat...
Node.js
CORS Error when using require() 5 messages
dim shadow I am using js for web developpement right now, and I would like to know why do I get a CORS Error when I use require() i...
bot not responding to dms 7 messages
uneven nacelle why isn't my bot responding to dms? the issue is with the inner conditional btw: the logic is wrong but idk what's wrong...
Node.js TypeScript
sh: line 1: rimraf: command not found 8 messages
tidal tulip Thats the command to run my discord.js typescript lavalink music bot, but there's that error
Node.js Browser TypeScript
node-schedule running announcement message 27 messages
thorn harbor I am trying to use node-schedule in order to schedule DnD session reminder announcements. I created a function that runs...
Node.js
Delete MongoDB document after time 15 messages
woeful gull Hello, I have a guildSchema with stuff defined as: https://sourceb.in/dBnOTyeDDO What I want to achieve is: when my bot...
Database
[ERR_UNSUPPORTED_ESM_URL_SCHEME] 2 messages
jade halo Hello! I am working on trying to create an application however I keep running into this error! ```console Error [ERR_UN...
Discord crashing when stream window size is changed. 3 messages
wanton bobcat Discord crashes when I start watching a stream and try to maximize or resize the discord window. I took copy of log befo...
Function 4 messages
mellow bear When I try to require the file, this error appears
Node.js Database
need to terminate worker before bot exits but worker is declared in command module 16 messages
onyx bear Context: commands are located in their own modules and loaded in on bot start. one command is for OCR using tesseract.js...
Node.js
most user friendly way to let user reorder studd 4 messages
crystal yacht what's the most user friendly way to let a user order things using just discord components? (i need it to let users cho...
Discord OAuth 9 messages
brave oyster Unsure whether this is the correct forum for this type of request however I may as well chance it. I am attempting to ...
Difficulty Using Mongo Schemas 8 messages
ionic ibex I'm trying to replicate a simple warning system with MongoDB as the backend database. I have a guild schema as such: ```...
HTTP Webhook not sending 5 messages
carmine agate I know this isnt specifically discord.js but can anyone tell me why this webhook isnt sending? https://gist.github.com/D...
Node.js
Cron job for my discord command is not working 18 messages
silent junco Does discord.js work better with the `cron` package? or the `node-cron` package? I have a cronjob to run a command at mi...
Node.js
How to Fix the "Cannot use import statement outside a module" Error? 21 messages
ocean bear First picture is mine with Error and second one is how it should be.
TypeError when interacting with API 19 messages
royal silo I've been trying to send a card to a trello board, yet the I get an error. What do I do?
Node.js Browser
(string.words.includes(message.content.toLowerCase())). 6 messages
regal frigate This only works when a single word which is in database is sent but not when in a sentence. how to make it detect the wo...
Jsdoc related question 4 messages
proper lance ```js * @param { ChatInputCommandInteraction | ButtonInteraction } interaction ``` Is this valid jsdoc for if the intera...
Node.js
UND_ERR_CONNECT_TIMEOUT 13 messages
short lynx I was trying to figure out the command to ping discord servers to fix my UND_ERR_CONNECT_TIMEOUT error.
endswith 10 messages
dense igloo do you have any idea why it keeps sending me the error message when my link ends in .jpg? ```js const data = await Welco...
Permissions 5 messages
dim shadow I would like you to remember to me how do we check (into a slash command) if the interaction.user has a permission or no...
. 3 messages
fierce gazelle hi, sorry for my English but I don't know how to move around the server, I'm a guy who would like to try to create a bot...
SerialPort - Arduino School Project 15 messages
shy verge Going for some cheeky extra credit and trying to control the arduino ports 3-10 using nodeJS and I have that working jus...
trying use oath2 2 messages
scarlet pier I keep getting this error ``` SyntaxError: Unexpected token 's', "selfbots a"... is not valid JSON at JSON.parse (<a...
TypeError: Cannot read properties of undefined (reading 'createInfraction') 3 messages
worldly turtle https://srcb.in/T8YFPlzYGW
Node.js
axios error 2 messages
summer eagle ```npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /home/container/node_modules/agent-base npm ERR! dest /...
Node.js
Implementing redis cache with mongoose 9 messages
inland kernel Hi, I am implementing redis caching for my bot and was wondering if this would be the best way of doing it with my exist...
TypeScript Database
pls help fix error 6 messages
Node.js
how to get this working with one line? 6 messages
https://srcb.in/9QWMpKuizQ 4 messages
pearl quartz https://srcb.in/9QWMpKuizQ
Error: Member not found or created. 2 messages
Node.js Database
Use JSON with JS 6 messages
dim shadow I would like to know how to search more quickly than that ```js let username = data["guild"]["users"][0]["username"] ``...
How to use .replace for multiple values? 2 messages
dense igloo is it possible to use `replace` to change several values at once or do you have to do it one by one? I need to replace t...
value++ not working properly 2 messages
file directory error in a reboot command 16 messages
royal silo ```js const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() ...
How do I use environment variables? 2 messages
unique fog How do I set up environment variables? so I can make it my token private
Node.js
discord redirect uri 4 messages
scarlet pier I want to use express to create a callback route that gets a user ID and guilds so I can create a bot dashboard, any poi...
What should a Mongo_URI be? 9 messages
mint willow I'm hosting my DB on my old PC and I can connect to it from my main PC (Compass) But I'm having issues with my discord b...
TypeScript Database
Python To Javascript 4 messages
warm jacinth not a djs doubt but, how can i implement python code in javascript code I mean like: I have a server setup in a python ...
Node.js Database
TruckersMP VTC API 4 messages
austere wharf https://sourceb.in/NqMEgE7c4W Is this correct? With this code i want to change it to make it to where it will send upda...
Node.js