other-js-ts

3634 threads · Page 26 of 73

Mongoose Error: TypeError: Cannot create property ’id’ on string ‘191928290202927’ 7 messages
fiery linden Code: (image) mongoose version: v8 node version: 20.11.1
Hello, could anyone tell me reasons why my eslint is not working? 3 messages
solar oracle Hello, could anyone tell me reasons why my eslint is not working?
Cannot read properties of undefined (reading 'channels') 18 messages
dense wolf here's my code; This is on separate file from `index.js`, which is `/express/watcher.js` ```const { Events } = require(...
Canvas is not a function 11 messages
glass socket im geting this error i don't know how to solve it used to be working fine but now it won't
Node.js
Found a bug in ts 11 messages
digital pine I found bug while coding in Ts
TypeScript
fetching user's avatar url returns undefined with discord api 11 messages
winter lava ```ts // avatar.ts export async function fetchUserAvatar(userId: string): Promise<string | null> { try { const res...
Node.js TypeScript
? 9 messages
uncut flicker isnt this right??
Oauth Help 14 messages
opal leaf How do I select a member to get the guild meber count from? Or does it take from any member with that guild
cannot read properties of undefined (reading 'upsert') 24 messages
slender sparrow Hi! I'm getting this error. This is the code.
Node Module Versions 9 messages
Node.js
delete specific values in a DB 7 messages
trim fractal so my question has part to do with discord.js. I have a command that should save a users name and a few roles. So there'...
Node.js Database
setDescription arranging 11 messages
sly tulip i am making a censor command, it takes multiple words (word1 word2 word3) and sentences too by using " " ("word1 word2 ...
Node.js
binding tool 18 messages
I possess a list of commands and seek assistance in their creation. 2 messages
fallen dragon I possess a list of commands and seek assistance in their creation. Would someone be willing to lend their expertise? C...
Wrong invite being filtered 4 messages
gilded lantern https://srcb.in/paqvoeBPjQ The wrong invite is being logged when i try to filter the invite that the user must have join...
Users lives are not getting saved to db 2 messages
merry zodiac https://sourceb.in/eAq13JIn2K code here
Node.js Database
booster role issues 9 messages
fair elm ```js const roleIdsToRemove = [ '1221675461105422396', '1211272995063201812', '1211273022502338621...
Node.js
OverwriteModelError: Cannot overwrite `AntiSpam` model once compiled. 15 messages
whole compass i got OverwriteModelError: Cannot overwrite `AntiSpam` model once compiled. from this code line 20 https://sourceb.in/u...
Node.js Database
canvas avatar won’t show 6 messages
pastel blaze Hey guys, I’m trying to recreate something atm and the avatar just won’t show https://sourceb.in/5q7JmIGt2X here’s the c...
Node.js
Error Canvas AvatarURL 3 messages
cedar jetty How to resolve this error ?
Node.js
help me 12 messages
elfin kernel how do pacify the path to your project directory in vsc i cant do it
Node.js
Check if users permissions are in range of Manage Guild 3 messages
misty jolt I'm working on a web dashboard and when I retrieve the list of guilds I only want to show the guilds the user has "Manag...
Node.js TypeScript
Rendering external HTML file 12 messages
high saffron So I had a feature to render external HTML files using its url, in order to render a Discord channel transcript. However...
Node.js
I hate this 31 messages
proper lily Been working on this for months now (discord bot) and it comes down to the most important feature according to everyone ...
Node.js Database
creating my own simple language that runs discordjs code 25 messages
torpid plinth so what i want is to create a command like `/cc create` and a form panel will open with 2 options: trigger and code. tri...
how do i create old textual discord.js command 3 messages
cold coral this is my code const { Client, IntentsBitField } = require ('discord.js'); ```const client = new Client({ intents...
nested for loops 16 messages
gusty jasper ```js const bobsFollowers = ['a', 'b', 'c', 'd']; const tinasFollowers = ['a', 'b', 'e']; const mutualFollowers = [] fo...
Shipping TS enums in JS library 11 messages
trail junco How does DJS do this? I'm currently just using Object.freeze({ key: value }) and the types in my typescript project that...
help swapping to esm imports 27 messages
ionic ibex I'm attempting to swap my bot to using ESM modules rather than cjs, but I'm struggling to figure out how to replace this...
Node.js
Automated Slash Commands Deployment 6 messages
ruby robin How can I automate the deployment of Slash Commands to re-register them only when there's a change in any command's defi...
Node.js TypeScript
the class array real 77 messages
distant shoal Okay
TypeScript
Eslint Warning 9 messages
flint pine anyone know how I can fix this eslint warning? ```ts return value.replaceAll(/{{(\s*\S+?\s*)}}/gi, (orig, trigger) => { ...
Bot Boilerplate Feedback / Suggestions 29 messages
slim snow **Nothing 'wrong' in code, just looking for suggestions to improve** So I put together a bot boilerplate, it is written...
stream elements, anyone? please ping me, I'm going crazy with this. 2 messages
onyx bear Long story short, their v2 api only replies with ``401 Unauthorized`` when sending a GET request trying to get top tippe...
Node.js
Unsupported image type error 15 messages
normal cove Source code - https://srcb.in/DeTPIcxlZa
Node.js
So, idk the error but 6 messages
embed button 67 messages
pallid fulcrum ```js const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder } = require("discord.js"); const fs = require("fs"); cons...
Node.js
Routes won't load to app 4 messages
naive cape None of the routes will work https://github.com/ManagerBitten/MatchmakingAPI
Why is the current state of my variable not captured by arrow function? 52 messages
onyx bear ```js if (this.#exitCode === 1006 || this.#exitCode === 1005) { const exitCode = thi...
Node.js
canvas 4 messages
bitter horizon when using canvas i get the error``` Error: Server responded with 404 at /home/container/node_modules/canvas/lib/ima...
Node.js
Persist data between startup/shutdown of a NodeJS app 2 messages
urban wharf How can I save a changing value between startup/shutdown of a NodeJS app? I don't have the means to add a database, the ...
Node.js
MONGO DB - Change the display of an array 4 messages
magic fable Hi ! Little question about mongoose and Discord JS. When I want to show an array, it shows me that : `test de oyuf,ouaa...
Node.js Database
Async in class constructor 19 messages
flint pine Does anyone know how I can use async in a class constructor? ```ts export default class UserExperience { private membe...
TypeScript
MONGO DB - use $pull 7 messages
magic fable Hello ! I have an Array String data named "sorts" in which I store every spells of a player, here is an example ```js ...
Node.js Database
JS JSON MySQl Output shorten 4 messages
floral nexus Hello, how can I make sure that the json output of my API is shorter or that not all data is displayed but only my table...
Node.js Browser Database
MONGO DB - List of spells 7 messages
magic fable Hi ! I would like to be able to store all of a player's spells in the same database. Easy at first glance, but I would l...
ExpressJS MySQL DB error 6 messages
floral nexus I got this error when i start the app. Can someone help? ```C:\Users\em\NodeJSKurs\node_modules\mysql2\node_modules\lru...
Node.js Browser Database
Little error with checking if something exists 3 messages
light plank https://pastebin.com/2E96PRny this code is supposed to give a nitro badge if someone has a banner, but it just dont if t...
Node.js
17 bus error (core dumped) 11 messages
eager hinge Error: ./start.sh: line 2: 17 Bus error (core dumped) node . Start.sh: `echo Starting discord bot... n...
Node.js
Claimed Error: Error: remote source rejected with status code 404 4 messages
south token It's suppose to send image with 3 images in it but i only get errors