other-js-ts

4043 threads · Page 32 of 81

Typescript type error 4 messages
waxen hornet my code work but how to fix these fakes errors ?
1081589253575823411
How can I check If String exist in Data? 2 messages
gritty stream How can I check If `Tables_in_test: 'SERVERS'` exist in Data? Data: ```json [ RowDataPacket { Tables_in_test: 'SERVER...
1081589071526240296 1081590299358412983
Hey I am new in programming and need some advices 10 messages
last knot If I ask the user for the token it's a special data can I save this as string in my DB or how to do it safer. For exampl...
@napi-rs/canvas custom fonts not loading text properly 1 messages
paper vault I am uploading a font I found in Google Fonts (Protest Riot) for the text. Everytime an image is generated, it looks dif...
Does discord.js work well with bundling / tree-shaking? 4 messages
slow pond I am planning to have a small application that archives messages from a specific channel using a webhook. This applicati...
1081589071526240296
MessageCreate API Event 4 messages
crystal hedge Do someone knows how to make something like the messageCreate Event but for a other API?
1081589071526240296
Get image from automated download 8 messages
vague rivet I have this page which displays a render using threejs and renders it into a png and downloads it. i need that image to ...
1081589253575823411
object does not work 2 messages
shut arrow It was working when I was using js, but it didn't work when I switched to ts.
object does not work 1 messages
shut arrow It was working when I was using js, but it didn't work when I switched to ts.
1081589253575823411
Content Filtering 3 messages
rare terrace I am developing a bot that will ask users various questions and then post their response to a channel. However this coul...
/twitch add (name) (link) 2 messages
vernal path name = choice name link = choice value
Extend Client Class 16 messages
cobalt shuttle I'm trying to extend it like so ```js const { Client: DiscordClient } = require('discord.js'); class Client extends Di...
1081589071526240296
node fetch error 5 messages
humble dove What version do i need? Code: ```const { SlashCommandBuilder } = require('discord.js'); const fetch = require('node-fet...
1081589071526240296
Multiple module.exports in one file 7 messages
twilit agate Can one file contain multiple `module.exports = {};`? In my case, I am creating audit log events and don't want to crea...
Mongo not finding anything 10 messages
rough tulip ```js const running_giveaways = giveaway.find({ endDate: { $lt: Date.now() } }); console.log(running_giveaways.l...
1081589071526240296 1081590299358412983
message content from mongoose not fetching correctly 18 messages
weak crystal message content prints out previously from accessing it, the way im fetching it is: ```ts console.log(`user id returned...
button cooldown 6 messages
shadow oriole hey why not applied the cooldown timer to user? Anyone can help me? Thanks! ```js const { EmbedBuilder, PermissionsBitFi...
Possible to detect masked links? 1 messages
hollow notch Hey, Is it possible in JS/TS to detect if a link is a masked link? Because for some reason Discord allows masked links ...
1081589071526240296 1081589253575823411
How can I link more than one token in just one source? 3 messages
hardy axle How can I link more than one token in just one source? Better way?
Change Fonts in Package @napi-rs/canvas 1 messages
solar phoenix How Change fonts Image in package `@napi-rs/canvas`??
how can i check if the message content slice(1 , 7) is a number or not ? 13 messages
mental forge how can i check if the message content slice(1 , 7) is a number or not ?
1081589071526240296
Get CPU Usage 6 messages
crystal hedge How can I get the CPU Usage as %?
1081589071526240296
Npm 10 messages
split harness when i do npm i to install modules it gives me a big error can you help me here's the bot but it does this to me with e...
Partner Need 5 messages
gleaming remnant Hello my name is Jeremiah and i'm looking for a partner in developing a working and updated discord bot i will host it a...
1081589071526240296 1081589253575823411 1081590299358412983
Mongo DB, is there a way to make a command to delete a database 7 messages
magic fable Hi ! I would like to create a command that is used to delete the database of a player. I thought i could use this : htt...
1081589071526240296 1081590299358412983
SvgIcon is not a valid JSX element type 14 messages
zenith onyx https://stackoverflow.com/questions/78044461/svgicon-is-not-a-valid-jsx-element-type Basically, I'm using MUI Icons in ...
1081590447216017570 1081589253575823411
I think I messed up my register command... 3 messages
magic fable Hi ! I'm trying to make a /register command that is supposed to initialize the database of the player selected... But we...
1081589071526240296 1081590299358412983
mongodb url invalid 6 messages
native vector https://pastebin.com/Uyz7HDmT full error code
1081589071526240296
Unknown interaction Error 22 messages
silent citrus when i press editChannel button it gives unknown interaction error ``` DiscordAPIError[10062]: Unknown interaction ...
Nginx Websocket Server Proxying 3 messages
tardy epoch Hi there! I have nginx installed on an Amazon EC2 Windows 2022 instance. I am running a WebSocket server called Rdio-sc...
.replace not working. 3 messages
winged lotus This is the relevant code: ```js var newCoolPeople = coolpeople.replace(person+'\n', ''); console.log("newCoolPeople", n...
Cannot find module 'lodash.snakecase' 2 messages
ivory nest When moving my bot from my pc (windows 10) to where I'll host it (pterodactyl using docker on a linux vps) i get this er...
1081589071526240296 1081589253575823411
TypeError: data.default is not a constructor 17 messages
Is there a way to store all the API requests sent by discord.js ? 2 messages
warm chasm basically I mean some sort of a debug mode which tells exactly what was the request data and what was the API response. ...
1081589071526240296
Try/catch not working 34 messages
winged lotus I have a try/catch and when it errors, it ends the program. Part of code: ```js try{ const data = { ...
Unexpected identifier 2 messages
winged lotus Hello! I have a folder with all the files in windows, it works when I run it in VScode in windows. I have it in git and ...
Mongo db connection 5 messages
magic fable Hello ! I'm having a little problem with mongodb connection, but I don't know what it is (there's no message logged in t...
Emoji pattern 3 messages
glossy spire Anyone have RegExp pattern for discord emojis?
1081589071526240296
How to delay the execution of the script? 7 messages
mystic creek ```Error initializing the database: TypeError: myDB.collection is not a function``` I get this error cause my script wan...
1081589071526240296 1081590299358412983
erela.js error 10 messages
novel crescent ```node:events:496 throw er; // Unhandled 'error' event ^ RangeError: Track must be a "Track" or "Track[]"....
MongoDB - update schema 169 messages
rain steppe I am using mongoose with mongodb database. When I update the schema in Mongodb, I want all data using that schema to be ...
1081590299358412983
Live Sports Score 48 messages
mossy pelican Is there anyway how I can get NBA livescore updates using NodeJS?
1081589071526240296
Live Sport Score 1 messages
mossy pelican Is there a package for live sport scored like NCAA basketball or MLB Baseball?
1081589071526240296 1081590447216017570
Accessing Client from a commandFile 35 messages
dapper rapids Hey, i need to use 'client' from a command file, how can i do that?
1081589071526240296
Dashboard help 46 messages
marsh schooner I just started learning HTML and CSS. I am making my first website for a trucking company. I am trying to make website l...
Error: remote source rejected with status code 403/canvas 8 messages
cyan relic err 403 canvas
Err 403 | canvas 40 messages
glossy iron anyone knows why i get err 403 it was fine until now and i tried vps , MY PC and vpn too ```js Error: Server responde...
Error: Server responded with 403 | canvas how to fix 5 messages
1081589071526240296
LEFT JOIN with large data in left table 9 messages
slow pond Assume there are two tables with the following relationship: ``` ┌─────────────────────────────────┐ │TableA ...
1081590299358412983
Unintentional async behavior 5 messages
1081589253575823411 1081590299358412983