other-js-ts

3634 threads · Page 10 of 73

Sharp.js 6 messages
stuck delta Im using sharp to generate images what could be the error making it look like this
help canvs 3 messages
grim ore ``` Error: Unsupported image type at setSource (/home/container/node_modules/canvas/lib/image.js:94:13) at Image...
Node.js
Custom built client instance 25 messages
river silo This is the way I want to do it I don't need any suggestions otherwise I want to create a new class that will handle e...
Node.js TypeScript
Undefined error when cleaning data from MySQL server 4 messages
spice kernel Hey guys. I am using this code to query a MySQL database (there's more to it, this is just a snippet). The query returns...
Node.js Database
Whats the better library for image manipulation? 9 messages
cobalt shuttle Whats the better library for image manipulation? Like karuta, rn I'm using canvas but I feel is a bit heavy on the machi...
How do I solve this problem? 16 messages
light minnow .
Canvas 5 messages
whole hill How can i do that the font in the name wont become this number?
ReadMe.md Badgets 12 messages
last knot Can someone explain me how I can add to my ReadMe.md a dynamic test badget like discord.js this has. I can share my repo...
Unknown Error 8 messages
iron tide Encountered this error a few times when I put my bot into a new server not sure if it is related.
Unexpected Token < in JSON ... 2 messages
warm sky Code provided in image, I assume it is being parsed as a string HTML and not JSON, but I cannot quite figure out the exa...
Node.js
AutoComplete on Discord Webhook based command handler 12 messages
willow bloom ```typescript case InteractionType.APPLICATION_COMMAND_AUTOCOMPLETE: console.log("Autocomplete request r...
Node.js Browser TypeScript Database
Bot Dashboard 5 messages
rustic cairn Anyone know of any good tutorial for a bot dashboard I could use?
Error bot node.js 5 messages
spiral jetty Hi, I'm trying to host my discord bot on my hosting, and I get this nodejs error `/entrypoint.sh: line 16: /usr/local/b...
Zip algorithm 9 messages
barren fjord This is for learning process, I want to make a zip function in js that takes some arbitrary number of buffers and turns ...
Node.js
I try to run node on a different file but it keeps referencing the past one 27 messages
peak oar Node is trying to reference batman.js instead of referencing functionexpress.js
Node.js
i have distube error 4 messages
Node.js
How to pass custom headers? (axios) 34 messages
south prism I'm trying to access my API but it's always showing me an error, that the Authorization header is missing. da hell? The ...
TypeScript
Can't run a javascript file with node I tried "node {file-name}.js" but its not working 31 messages
wide rock .
Node.js
Does anyone know why it can't locate the file? 3 messages
tough temple The path is correct and works for color.json, but not emoji.json. I'm using a host for the bot as well if that makes any...
Node.js
Hosting options 84 messages
sage ore Hey so I have a discord bot that has a SQLite DB, some commands and listeners and I need a way to host it but I am not s...
Node.js Database
Errors When bot is on for few hours 5 messages
quartz zephyr so i get errors when the bot is run for few hours
Failed to fetch member data for guild <id>: Unauthorized 2 messages
rotund patrol So i dont really do discord.js and im trying to make a dashboard for my bot but i get this error when i fetch the server...
oauth2 `invalid_client` error 6 messages
deft locust I'm trying to setup a dashboard for my bot and I'm at the point where I'm trying to authenticate users. I'm getting an ...
Node.js Browser Database
Mongodb and discord.js using 4 messages
stoic marsh So I basically wanted to make a bot similar to ticket tool using discord.js . So in the dashboard if someone presses the...
Node.js Database
How do you run your discord bot 15 messages
abstract wind How can you run the discord bot? theres no where in the documentation that shows how to run your app etc. Even tho there...
TypeScript
How to structure this await correctly 8 messages
hollow wolf I'm trying to make my bot generate/download all the built in files so if I do give the bot to a friend, I just need to p...
Node.js
need some help with some require and module shenanigans. 22 messages
fleet herald hi friends, I'm getting this error and im not sure how to fix it. ``` Error: Cannot find module './src/discord/intera...
TypeScript
Per Server Currency System 20 messages
hollow wolf I know the currency system tutorial exists on the discord.js guide (https://discordjs.guide/sequelize/currency.html#file...
Node.js Database
@napi-rs/canvas 2 messages
subtle yew Guys, why isn't the name appearing? Is there something wrong with the code below? ```js const canvasAvatar = Canvas.cre...
Node.js
Discord.JS with custom API & database. How can I detect if a guild owner changes upon bot startup? 17 messages
placid hamlet I am making a discord server-finding service similar to disboard.org or discordfy.com. I am trying to figure out how I ...
Node.js Browser TypeScript Database
Retrieving Embed 10 messages
static fog is there any way to get the embed when the user clicks the save button? like once the user clicks save, i want to access...
Using the typescript API to change the module that something is imported from 6 messages
vernal blade So I recently discovered that typescript actually offer quite a handy APIs that assists in your own code transformation ...
solution 2 messages
tall kindle any solution
Node.js
Cron Job doing what it wants 9 messages
hexed raptor I used cron job several times and I googled how to correctly use it, but my command here executes in different times whe...
Node.js
Scraping > cloudfare? 12 messages
karmic widget Hey, trying to scrape [Vinted](https://www.vinted.fr/catalog?search_text=shoes&time=1731345305). Use case: check the pa...
Node.js
Vite & ReactJS Website, Discord API 2 messages
Node.js Browser
is there a package like discord.js but for userbot in telegram js 13 messages
dusty isle please lemme know with link to it
Node.js
Compiling a TS project 18 messages
tiny nymph How can I successfully compile my TS discord bot into JS? Normally I run my bot via ``npx tsx ./index.ts``, however I am...
TypeScript
Member Count Not Updating 4 messages
mellow needle I have a bot named CORE that is meant to do a lot of different things. One of those features is being able to select you...
typescript beginning 16 messages
karmic widget Starting my first ts project, i read on about ts config and stuff. Can you guys share what configurations you use? speci...
TypeScript
Telegram Bot: Markdown V2 (node-telegram-bot-api) 3 messages
empty jay Hello, i'm trying to connect a discord channel with a telegram channel, so every message sent on discord is also sent by...
How to use import and require simultaneously 25 messages
flint estuary The discordjs setup guide uses require, but there are some libraries that supports import only (octokit for github, and ...
Node.js
Promise run sequentially 21 messages
karmic widget ```js async startTailing(client, service) { const { guildId, serviceId, status } = service; if (status !== "Act...
Node.js
How to make a message collector a Promise (without direct await? 29 messages
south prism Since I have multiple message collectors chained (because I respond after every message with something different) I was ...
Node.js TypeScript
PM2 / Discord: Restart after a connection lost ? 3 messages
proud zealot For context, I host my bot on my Raspberry, at my house. Sometimes, I lost electricity, and the server restart. Obviousl...
Node.js TypeScript
path error 13 messages
round sun Hi All, My error is : `Error: Cannot find module './src/commands/tools/ping.js'` My code is: ```js delete require.cach...
Node.js
Having problems loading files synchronously 5 messages
candid hull Hello! I am currently making a slash command to load in a txt file and place the lines in an object and then manipulate ...
Node.js
AutoModActionExecution running twice 12 messages
uneven raptor here's what i'm trying to do i'm making it so that whenever a rule gets executed, it sends the member who triggered it a...
Node.js
Help configuring TS/Node for Image Imports 26 messages
zenith onyx Hi, I have an existing TypeScript Discord Bot Repo set to the following: ```js "target": "ES2020", "module":...
TypeScript
Issue while importing json 20 messages
worldly swallow im having an issue it use to work but now it doesnt and i dont know what to do Code: ```import config from './bot/confi...
Node.js