other-js-ts

3634 threads · Page 6 of 73

TS with arrays 6 messages
pastel blaze Hi, I have this code: ```ts const results = await db .select() .from(UserPresence) ...
Node.js TypeScript
Indexing signature confusion 28 messages
light fiber refer to the screenshot i have an Object with number keys and string values if i try to index with a number, it errors, ...
Browser TypeScript
PostgreSQL 5 messages
frosty mauve How can I start using this database?
Database
Fetching information to my discord.js v14 bot from a website, need help 17 messages
stoic marsh So, my discord.js v14 code sends the embed and everything. Tho, the embed says the Home, California Law, Bill informatio...
Node.js
cleaning code. 6 messages
solar berry ok, so. i have alot of code that I use in almost all of my commands. i dont know how to go about this, but, i want to ha...
Node.js
Looking for help with TypeScript config 30 messages
normal fern Hey! I'm trying to set up my TypeScript configuration properly, but ever since I changed moduleResolution to NodeNext, I...
TypeScript
Discord Components V2 5 messages
cyan delta right now im trying to make it so that my bot can sent discord embeds using the new components and I wanna make it easie...
TypeScript
getting file dirname with tsup 2 messages
radiant wasp using tsup, how can i get the current dirname of a file using import.meta.dirname? as tsup bundles it's causing the dir...
TypeScript
New Component V2 Transcript 19 messages
dim field Hello, did someone have a good package with Text or HTML Transcript with Componvent V2 support
Node.js
hot-reloading doesn't work with ESM + TypeScript 7 messages
south prism -# djs: `v14.17.3` - Big codebase, I will update after the dashboard is done in a few weeks... -# Node: `v22.11.0` | TS:...
Node.js TypeScript
I got this annoying error 8 messages
visual hollow Uncaught _DiscordAPIError DiscordAPIError[50001]: Missing Access at handleErrors (c:\Users\touhafichahid\node_module...
Error: Cannot find module 'dotenv' 3 messages
ripe marten /
Node.js
Error using prisma generate 14 messages
rapid ocean Im trying to run `bunx prisma generate`. It proceeds to try to download `Prisma engines for Node-API for debian-openssl-...
TypeScript Database
TypeScript: type annotation for Object property 42 messages
light fiber How do i make the methods of my Object aware of the type of its properties? example: ```typescript const prop = { thin...
button not getting "handled" after 2rd interaction 32 messages
knotty pecan here is some code: ```js else if (interaction.isButton()) { const [custom, ...args] = interaction.customId.split(":");...
Node.js
mongoose / cannot find module ts 16 messages
stiff zenith ``` import { Message } from "discord.js"; import User from "../../lib/models/userModel"; export const messageTracker = ...
Node.js TypeScript
leveling formula help 27 messages
fierce trail Heyo! I've tried alot of combinations of formulas and min/max xp per message and I cant seem to find a good, stable equa...
Node.js TypeScript
ts-node doesn't recognize .ts 98 messages
light fiber ```typescript PS C:\Users\Uzivatel\Desktop\Langs\js\discord.js> ts-node main.ts TypeError: Unknown file extension ".ts" ...
Node.js TypeScript
help with canvas 6 messages
solar berry ok, so. I have a grid. sort of like this with text on top: Text Text ⬛⬛⬛⬛⬛⬛ ⬛⬛⬛⬛⬛⬛ ⬛⬛⬛⬛⬛⬛ ⬛⬛⬛⬛⬛⬛ ⬛⬛...
Node.js
How to alias an import 5 messages
light fiber How do i rename an import what is happening is that `ApplicationCommandOptionType` is unnecessary long for my usecase ``...
Node.js
unexpected token '}' 31 messages
edgy spear getting this error
Node.js
help 3 messages
sharp light how do I combine topUsers wallet and bank together?
How can I make it detect when a user DMs my bot? 3 messages
grim night ^^
Question about good first issues 4 messages
maiden sage Hi I'm a software developer trying to get in a habit of contributing to open source. Couldn't find any good first issues...
Object value not recognized as function? 16 messages
light fiber hello i am quite new to javascript (im coming from python and i love d.js already) i have this class ```javascript class...
Help with database structure 258 messages
pastel blaze Hello smart people, I am making a giveaway system which will have requirements for users to send messages, which could ...
Help for converting .JSON to Database 3 messages
thin bloom Hello guys i have a code where information like anti raid on/off are stocked in a .json file, does anyone can help me to...
Node.js Database
DiscordAPIError[40060]: Interaction has already been acknowledged. 48 messages
fallen sigil I'm facing a strange issue with my Discord bot: Every time I click a button or interact with any component (like a drop...
@skyra/http-framework issues 15 messages
gray dawn im using the aforementioned package to create a discord bot that has no gateway connection (http only) but im running in...
TypeScript
Bot becomes unresponsive when i close vs code but responds again when i have vs code back 2 messages
icy bane Bot becomes unresponsive when i close vs code but responds again when i have vs code back and also running node index.j...
Node.js
prisma issue (again) 58 messages
blissful sun when acessing one-to-many relations in the user data i retrieved, is there any "defined" or "ideal" way to deal with it?...
Node.js Database
typeorm entity 4 messages
gray dawn im trying to create a Player entity using typeorm but im getting the error below (im following a video guide and they se...
TypeScript Database
Bot with dashboard 4 messages
scarlet pier I’m looking at making a bot this time with the integration of a web dashboard. Adding a dashboard isn’t something I’ve r...
prisma issue 70 messages
blissful sun i have absolutely no idea on how to make prisma work when i use the provider that lets me use a file, i cannot use list...
Node.js Database
3d noise generation w threejs & simplex-noise 27 messages
heavy garnet im experimenting with threejs and simplex noise making a simple little land generation thing and im facing an issue wher...
Retrieve read latency with mongoose 4 messages
ruby robin Does anybody know how retrieve the read latency of a specific collection or the whole cluster with mongoose?
Database
registerFont not found 3 messages
spiral laurel const { createCanvas, registerFont } = require('@napi-rs/canvas'); registerFont('ExampleFont.ttf', { family: 'ExampleFon...
Node.js
OCR File System 12 messages
light moat I am working on making this system for my father since he is an optician. When a new Patient file is scanned through my ...
Node.js TypeScript
Stats System 2 messages
iron lake I want to create stats with the option to change between all-time, month, week, and day, and I'm wondering how to create...
Node.js Database
Discord database 3 messages
cold summit I have a question about databases, what does other people use with their bot. I have used mysql2 but it seem to not work...
Database
API metrics 4 messages
pastel blaze Hi everyone, Just a small question. What does everyone use for api metrics? Route usage, cpu + memory, latency, that ty...
Node.js TypeScript
Ram usage in typescript bots 36 messages
blissful merlin The bots I make with typescript consume about 30 mb more ram than the bots I make with javascript, does anyone know the ...
best database library for storing user ID for a short amount of time 6 messages
summer vortex title says it all, need a way to store a user ID/name temporarily
Since updating to 14.18.0 getting error when using buttonbuilder? 9 messages
native moss Hi guys, i recently updated to discord.js `14.18.0`. Where i get this error: ```ts TypeError: component.toJSON is not a ...
How to host and test bot in local machine using vscode 67 messages
frosty notch I want to test and turn the bot on my local machine after that i will upload it to cloud, i tried but its not working ca...
how to send file with webhook api 7 messages
south kernel ```ts import { fetch } from "bun"; import { CronJobParams } from "cron"; import FormData from "form-data"; import { crea...
TypeScript
Canvas 7 messages
steep yacht https://pastebin.com/Gf04FPZA i am supposed to get my canvas like this,
Webhook thumbnail not showing up 9 messages
broken ingot Does a discord webhook thumbnail url support a s3 presigned url? No idea why it's not showing up and I have no idea how ...
TypeScript
express 11 messages
ebon tangle if i want to use express in node.js, and want to listen to a localhost like website while hosting the bot on a website s...
Node.js Browser
error with mongodb 12 messages
hallow marsh Code: https://sourceb.in/iXzjwRPg0c
Node.js Database