other-js-ts

4043 threads · Page 13 of 81

where is here password 4 messages
rugged frigate and login?
1081590447216017570
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 ...
1081589071526240296
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
1081589071526240296
JSON 16 messages
uneven nacelle I'm getting this error in my terminal for one of my JSON files. undefined:1 []"604861206217621506",0]] ^ SyntaxError...
1081589071526240296 1081589253575823411 1081590299358412983
SQLite m:n relationship resolution 13 messages
cedar otter schema https://srcb.in/1PWTvYLP5k data https://srcb.in/TJHJECPDmY query https://srcb.in/gP8xuaT02N
1081590299358412983
Unknown Guild. Code 10004 6 messages
lilac condor ```ts const res = await fetch(`${BASE_URL}/guilds/${guild_id}/members/${user_id}`, { headers: { ...
1081589071526240296
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081589253575823411
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 = ...
1081589071526240296
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?
How are the documentation files from .api.json converted to .json? 1 messages
wooden dagger My question is simple, how are .api.json files like this https://github.com/discordjs/docs/blob/main/discord.js/14.16.3....
1081589071526240296
Pulling from an API to update information while running a local WebSocket server 1 messages
sullen wedge Hi! For some background, I’ve been developing an Overwolf app for a few weeks. If you don’t know what Overwolf is, it’s ...
1081590447216017570
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...
1081589071526240296 1081590299358412983
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296
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
1081589071526240296
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...
1081589071526240296 1081590447216017570
error 1 messages
grim ore what is this error mean are the error from the host or the code
1081589071526240296
tscord 14 messages
orchid gulch How can I fix these error for installing TSCord TSCORD: https://tscord.discbot.app/ ERROr (File)
1081589071526240296 1081589253575823411
more then 1000+ requests per second 42 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 ...
1081589071526240296 1081589253575823411
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 ...
1081589071526240296 1081589253575823411
(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...
1081589071526240296 1081589253575823411
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(...
1081589071526240296
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...
1081589071526240296 1081589253575823411
BigInt vs String 20 messages
tropic sand Is there any significant difference in usage between declaring variables as ```js const snowflake = 232875725898645504n...
1081589071526240296
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...
1081589071526240296
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...
1081589253575823411
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...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081589253575823411
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...
1081589253575823411
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
1081589071526240296 1081590447216017570 1081590299358412983
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...
1081589253575823411
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...
1081589071526240296
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 ...
1081589071526240296
Command not giving response 33 messages
steel cairn Hey when i try to do a test command i always get no response from the bot and i also don't get errors. What am i doing w...
1081589253575823411
How can I avoid using any here 19 messages
quaint path ```ts import { Events } from "discord.js"; import CustomApplication from "./app"; import { EventType, EventOptions } fro...
1081589253575823411
gyp error 10 messages
steel slate Anyone knows how to fix this one? ```prolog npm error gyp ERR! build error npm error gyp ERR! stack Error: `C:\Program F...