other-js-ts

3634 threads · Page 12 of 73

Check if String starts with RegEx 6 messages
urban wharf Hello, I have a regEx and an trying to check if a Discord thread's title matches the regEx. I can't use the startsWith m...
Node.js
I only need help 10 messages
marsh dove I have that code: ```ts const faltasgraves = agente.sancionesgraves const faltasleves = agente.sanciones...
Problem with showing elegible things w/logs 11 messages
safe sonnet https://sourceb.in/gGHxgs3azD The user should be elegible to the first 4 but hes not any idea why ?
Node.js
API with Discord.js and the ShardingManager 3 messages
long cape Hi, I'm currently working on an api and the bot I'm building for uses, who would have expected it, discord.js. My proble...
Node.js TypeScript
Should you type every element of an API json response, if you don't use all the elements? 2 messages
rustic acorn I have a Discord bot that fetches 3rd party API endpoints with fairly large responses (3500 lines) but only use parts of...
Node.js TypeScript
Next.js cookie error 19 messages
marsh dove https://next-auth.js.org/errors#oauth_callback_error State cookie was missing. { error: TypeError: State cookie was mi...
where is here password 4 messages
rugged frigate and login?
Browser
Mongoose Issue 13 messages
fossil cedar i’m having some issues when i call `Model.findOneAndUpdate()` **first image** is the model **second image** is the `upd...
Commands not showing up 2 messages
unique jetty Not sure if this is normal but my when i added my bot to my test server I could see my command `/links` pop up... though...
How To Stop My Discord Bot 5 messages
unique jetty Hello everyone! I'm running a Discord bot using Node.js, and I was wondering how I can stop or shut down the bot. I’ve ...
Node.js
bot idea 10 messages
opaque skiff hi guys, I want to make an economy bot but I don’t want use the usuals slash commands, could you give me ideas to make a...
Scope not authorized error 15 messages
uneven raptor ok so i figured out how to make discord -> roblox commands, but i keep getting this Scope not authorized error
Node.js
JSON 16 messages
uneven nacelle I'm getting this error in my terminal for one of my JSON files. undefined:1 []"604861206217621506",0]] ^ SyntaxError...
Node.js TypeScript Database
SQLite m:n relationship resolution 13 messages
cedar otter schema https://srcb.in/1PWTvYLP5k data https://srcb.in/TJHJECPDmY query https://srcb.in/gP8xuaT02N
Database
Unknown Guild. Code 10004 6 messages
lilac condor ```ts const res = await fetch(`${BASE_URL}/guilds/${guild_id}/members/${user_id}`, { headers: { ...
Node.js
Octokit ESM issue 8 messages
dire night `import { Octokit } from '@octokit/rest';` i get this error while running th code ```ts Error [ERR_REQUIRE_ESM]: require...
Node.js TypeScript
Missing Set methods 3 messages
pale quest JS now has new Set methods like `.intersection`. And according to this article, so does Node. https://blog.cycaas.com/no...
Node.js TypeScript
Get messageid from axios post 2 messages
vast vault How can i get the messageId when sending the message with axios? ```js const axios = require('axios'); const Webhook = ...
Node.js
Discord Madfut Bot With Firebase 4 messages
final crane how can i get this to work i already tried making a new firebase but when i did and uploaded my own oauth in the google ...
captcha-canvas 54 messages
uneven raptor how can i get the text of a captcha if it's random using captcha-canvas?
Database connection best practices 33 messages
ebon wing Hey I have a mysql database, I can connect to it and run CRUD actions. But I feel like the setup is wrong. I have this...
Basic js question 27 messages
charred mist ```js const sharder = new Client(options) sharder.spawn() module.exports = sharder ``` So if i wanna import it to my ev...
RAG with Discord channels 2 messages
scenic ember I'm building a Discord AI assistant, but some user requests require accessing real-time information. Currently, I'm thin...
Node.js Database
Typescript imports speed 7 messages
real kindle Hello. My project in process of migration to TS and i run into performance problem. When app starts, it loads ~500 other...
Node.js TypeScript
tsmixer 4 messages
nimble isle so im rn changing my whole project from cjs to mjs and i wanted to start it but now i get this error. what did i do wron...
Node.js
Discord -> Roblox command? 12 messages
uneven raptor is it possible to make a discord -> roblox command? i really wanna learn how for a game i'm making
Node.js
Discord OAuth <> Middleware Server <> App 10 messages
quick kelp Does anyone know how I would go through with this? 1. External app/platform with Discord SSO 2. Discord OAuth to node.j...
Node.js Browser
tscord 14 messages
orchid gulch How can I fix these error for installing TSCord TSCORD: https://tscord.discbot.app/ ERROr (File)
Node.js TypeScript
more then 1000+ requests per second 41 messages
TS: Dynamic file loading with import(filePath).then() not working 70 messages
south prism I have my code like shown in the attachment and I think the issue here is that the `.then` is executed after the client ...
Node.js TypeScript
Express issue with function not being of type Application 21 messages
south prism I am changing my project from JS to TS and the example showed in the screeshot only works, if the function/middlware is ...
Node.js TypeScript
(error code: 50240): You cannot remove this app's Entry Point command in a bulk update operation. 4 messages
cinder aspen I'm getting this error on my discord bot, but I don't understand it, and the bot commands don't update on the server, al...
[unsolved] Object Functions no longer recognized 64 messages
south prism I got an object which has several function I want to call inside other functions. This worked before when using JS but n...
Node.js TypeScript
ConnectTimeoutError: Connect Timeout Error (attempted addresses: 162.159.138.232:443) 3 messages
queen leaf C:\Users\user\Downloads\base\node_modules\undici\lib\core\connect.js:190 util.destroy(socket, new ConnectTimeoutError(...
Node.js
Typescript doesn't allow a 'String' where a param needs tot be 'string' 8 messages
south prism I have to do `as string` everywhere I call this function which is really annoying. Does anybody know a solution? Update...
Node.js TypeScript
BigInt vs String 20 messages
tropic sand Is there any significant difference in usage between declaring variables as ```js const snowflake = 232875725898645504n...
Node.js
Bot shown as offline but fully functional 16 messages
plush girder *reposted from ddevs since I couldn't get an answer there* What could cause a bot to show as offline (status is not set...
Node.js
Import JSON with Custom Type 9 messages
lofty lake So I have a JSON file in my project with a custom path defined in my tsconfig and package. The path is "#config". I furt...
TypeScript
I dont Know any further 31 messages
verbal light hi I tried everything but it keeps appering i need youre help
monitoring bot 6 messages
opaque skiff hi, I want to ask you if it's possible to make a bot that monitoring other bots, so if they are offline or online in rea...
Node.js
How i can import JSON file in this case? 3 messages
flint parrot I tried to use ``const EnrollmentState = require('.../Data/EnrollmentState.json')`` but this don' work. ```js const { Sl...
crypto library 2 messages
mental smelt I needed an library which can make transactions and make new deposit addresses for coin I choose, I tried using `cryptos...
Node.js
TS: client instance doesn't allow custom properties 7 messages
south prism I want to switch to TS (finally xD) and I'm getting this error that `The “commands” property is not available for the “C...
Node.js TypeScript
ts functions + return types 4 messages
pastel blaze Hey all, I have a function which would search/find a GuildMember either from message mentions or from a search, but the...
Node.js TypeScript
Typing event object to infer execute parameter types 19 messages
north owl Hi, I am working on an event handler for my discord bot and I'm trying to achieve something I don't really know how to e...
TypeScript
Is .env safe to keep important secret data for website? 54 messages
fallow grail Like is .env safe to keep eg MongoDB secret url for website
Node.js Browser Database
TS Error 38 messages
thorn sand ```ts import { z } from "zod"; const baseModule = z.object({ enabled: z.boolean() }); const globalBanModule = baseMo...
Failed Inference 11 messages
sly forge How and where the hell does TS even find type `never` if `ArrayLike<T>` only infers between `Receive` and `Record<Snowfl...
TypeScript
Socket rarely hangups, following node change 4 messages
zenith onyx Hello, I recently moved my bot from Node v18.20.4 to Node v20.17.0 and it appears to be crashing, it seems due to one o...
Node.js
What does `.bind(this)` do? 3 messages
south prism I got the async function `preChecks()` inside my `module.exports` in the file and when I call `this.preChecks()` in any ...
Node.js