other-js-ts

3634 threads · Page 9 of 73

Parsing JSON that has quotes around it. 4 messages
restive relic I've got a JSON I fetched from a game API, and it's nested currently in "getCurrentMatch.matches[0]" and I get this resu...
Embed.toJSON() 8 messages
TypeScript
Collaboration Friendly Deployment 8 messages
verbal dagger I am creating a discord bot using discord.js. As of now everything is running on my local machine whenever I need it usi...
Node.js Database
Express Server for Discord.JS Bot 9 messages
orchid gulch How can I add here that if the user with the userId is in a certain database, that he is only then forwarded? Code: htt...
Node.js
Ony in pterodactyl, discord.js v14 22 messages
steady talon const err = new Error(message); ^ Error: Cannot find module './index.js' Require stack: - /home/container/...
Node.js Browser TypeScript Database
What's the diff between js/t,s 7 messages
plucky pike Hey gays ! 👋 What's the difference between them and who is better ? i meanthe fastest one that got many features as wwe...
Node.js TypeScript
Converting from CJS to EJS - Discord.js 36 messages
warm egret ```js import { SlashCommandBuilder, PermissionFlagsBits } from 'discord.js'; export default { data: // Some data ...
the hell is cron! 23 messages
blissful sun whar the absolute glorp is cron
Node.js
Bundler for discord js 4 messages
peak stirrup Is there any recommended bundler for discord.js? I tried with `esbuild` but it's having issue(s) with database, mostly t...
Node.js TypeScript Database
question about IFs 3 messages
blissful sun if (a-1 > 3 && b[a-1] == 'e') {} if the first is false it wont try to run the second, right?
Node.js
Crash on Errors 15 messages
rough pebble Hello well I created a Discord Bot and I'll show parts of my code in this post but still when I face an error my bot wil...
Node.js
Issue with discord-html-transcripts 153 messages
pastel blaze Hey everyone, I have an issue with discord-html-transcripts which i can't seem to fix, was wondering if anyone could giv...
Node.js TypeScript
Help with jsdocs @param 20 messages
mystic gust `// @ts-check const { GuildMember } = require('discord.js'); /** * @param {GuildMember} test */` Im using jsdocs but t...
Node.js
File '@sapphire/ts-config' not found. 4 messages
unique meteor Just setupped the app using `create-discord-app`
TypeScript
mongoose version error 3 messages
wheat oak is there anyone using mongodb got this error? `VersionError: No matching document found for id "..." version 50 modified...
VSCode Crashing 8 messages
nodejs being stupid 67 messages
blissful sun why isnt splice acting like its meant to?
Node.js
Issue with resolving conflicting peer dependencies 4 messages
median torrent I'm currently running into a dependency resolution error when installing dependencies with `npm i`: ``` npm error code ...
Node.js TypeScript
Sticky roles issues 28 messages
teal token guildMemberLeave.js ```js if (sticky) { if (sticky.stickyroleToggle == true) { if (typeof sticky.stickyrol...
bot cant find an open spreadsheet? 5 messages
somber jacinth Hi, i'm quite new javascript and node and djs, I'm trying to make a slashCommand to see a spreadsheet however its not d...
Command to update a variable in a diffrent file. 3 messages
near arrow Basically, I have a variable with a long array of objects. I want to make a command that i can use that will update that...
Node.js
Attempting to install Windows Build Tools from Node installer errors 2 messages
Node.js
PM2 Duplicate Procceses 7 messages
odd sierra When attempting to restart a bot using pm2 restart or pm2 reload, duplicate processes are being created. Even after stop...
Node.js
Database error 3 messages
fallen sigil ```js Uncaught Exception: MongoServerError: The field 'Cars' must be an array but is of type string in document {_id: Ob...
Node.js Database
Calling object method inside worker 4 messages
plush girder I'm trying to execute an object method inside a node worker, but I'm having trouble since functions aren't cloneable: - ...
Node.js
handling premature websocket close 2 messages
shut sail im writing a class that creates websockets within and attempts to reconnect if the close code wasn't 1000 (normal); howe...
Node.js TypeScript
Writing on process exit is blank. 3 messages
glass cipher I'm trying to write to 2 separate json files in `process.on('exit'`, however the files are instead being emptied.```js p...
Node.js
Cannot find json file in correct path 6 messages
glass cipher I'm trying to get values from 2 separate json files but cannot find the files despite the paths being correct.```js asyn...
Node.js
Typescript Help 85 messages
unique meteor running build command isn't building https://cdn.discordapp.com/attachments/824411059443204127/1321823849377169468/2024...
TypeScript
Is there a way to make my prettier lint use my tsconfig rules? 6 messages
solemn nest Im using VSCode and have a valid tsconfig.json file. However, when I save my project, I'm currently using the default VS...
TypeScript
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed — JavaScript heap out of me 8 messages
paper vault After a few days my bot runs, I receive the error in the title. After a few checks, it seems that the error is caused by...
Node.js
Canvas error 14 messages
opal smelt Im checking the code for canvas on npm website and there is no `build` folder. Im confused why this bindings file is eve...
channel.messages.fetch() does not fetch some messages... 21 messages
Node.js
Scalable way to manage imports in a JS project when splitting functionality across files? 10 messages
viral gust What is a scalable and maintainable way to manage imports in a JavaScript project when splitting functionality across mu...
Node.js
Dynamic Display Logic Help 2 messages
wispy arch I have a dynamic honeycomb structure, that populates from every image I drop into a folder that gets rendered in a honey...
Browser
Await feedback !== '' 7 messages
meager thorn **(express.js)** Hi, I am creating a simple validation page to ensure that the user input matches what is listed in data...
Node.js
Warn Command 8 messages
wicked burrow Hello, the `/warn` command executes and works fine, but the warnings are not being saved in the database. Could someon...
Node.js Database
Executing two events [...] 12 messages
meager thorn Bit of a general JS question 😅 Can I clean up a huge event file doing multiple tasks (for example:) ```javascript cons...
NPM not showing in Powershell 6 messages
steady mason i went to https://nodejs.org/en/download/prebuilt-installer downloaded node went through the installation but npm -v in ...
Node.js
mongoose issue 29 messages
blissful sun so apparently, my bot works fine whenever i run it, except for when i add the `await mongoose.connect()` bit, which when...
Node.js Database
Weird error 12 messages
oak nest [Error: SQLITE_CANTOPEN: unable to open database file Emitted 'error' event on Database instance at: ] { errno: 14, ...
Database
Oauth2 re-creates access token 4 messages
dapper heron Up to certain point Discord Oauth2 API returned same access and refresh token for same users when sending request to /oa...
help 5 messages
atomic vessel ```js const { SlashCommandBuilder, EmbedBuilder, PermissionsBitField } = require("discord.js"); const fs = require('fs')...
Node.js
Web Serial API 3 messages
tacit kelp Hey, I've been working on rewriting a bluetooth driver (written in C#) in TS with the web serial API. this is a uni proj...
Node.js Browser TypeScript
How to get a value assosiated with primary key (sqlite database) 7 messages
blazing spindle i have a database which has chanelId as primary key and ownerId as unique i already know how to get **I though it was fi...
Node.js Database
How to get a value assosiated with the primary key (sqlite database) 18 messages
blazing spindle i have a database which has chanelId as primary key and ownerId as unique i already know how to get the channel id but h...
Sequelize .destroy() is not deleting the record from the database 13 messages
potent mica Problem: when I call .destroy() on my sequelize model or on the instance itself. The record is not deleted even though t...
Database
Recognise text from image 44 messages
pastel blaze Hey, I've looked at tesseract.js for recognising text from an image but i can never get it to work, it comes out with a ...
Database for begginer 7 messages
mental cliff Which database is easiest and "begginer friendly" to start with?
Database
Error installing canvas 4 messages
stuck delta error when tryna install canva https://srcb.in/fNAYxTjDvg any help?