other-js-ts

4043 threads · Page 29 of 81

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 7 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...
MongoDB find not a function 1 messages
summer mantle `var data = await sticky.find({ Guild: message.guild.id, Channel: message.channel.id });` Error recieving: `TypeError: ...
1081589071526240296 1081590299358412983
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...
1081589071526240296
interaction.client custom type? 1 messages
slim snow So I'm trying to override the type of `.client` in a DiscordJS `interaction`, it works for most things, but I've noticed...
1081589253575823411
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...
1081589071526240296 1081589253575823411
the class array real 77 messages
distant shoal Okay
1081589253575823411
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 28 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...
1081589071526240296
Unsupported image type error 15 messages
normal cove Source code - https://srcb.in/DeTPIcxlZa
1081589071526240296
So, idk the error but 7 messages
embed button 66 messages
pallid fulcrum ```js const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder } = require("discord.js"); const fs = require("fs"); cons...
1081589071526240296
canvas help 1 messages
fading bridge does someone know how to apply a "mask" onto the gray shit, i need to make it transparent
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
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 ...
1081589071526240296
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...
1081589071526240296 1081590299358412983
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...
1081589253575823411
Problems while hosting my bot 2 messages
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 ...
1081589071526240296 1081590299358412983
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...
1081589071526240296 1081590447216017570 1081590299358412983
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...
1081589071526240296 1081590447216017570 1081590299358412983
Automated API Endpoints (PayPal API) 1 messages
robust pecan I'm using the PayPal invoice API to make and send invoices. This works 100% and I can press a button to check the invoic...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
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
MongoDB not connecting timeout error 30 messages
deep badger Hello I am encountering this error and I need help
My bot not respond it online but not respond 1 messages
mossy apex help me
1081589071526240296
What happened with my IDE 34 messages
flint pagoda my ide doesnt suggest properties or functions of params
I get unhandledRejection instead of catch block 3 messages
floral hamlet I'm trying to create error handling for commands. I want errors to be handled directly in the command handler instead of...
1081589071526240296
loading ts commands (require) 5 messages
topaz spoke js has require like ```js for (const file of commandFiles) { const command = require(file); if ...
1081589253575823411
Discord Extrem List Bad Gateaway 2 messages
crystal hedge ```js const discordExtremeListURL = "https://api.discordextremelist.xyz/v2" superagent .post(discordExtremeL...
1081589071526240296
Why is the variable `runs_hit` not functioning properly? 17 messages
forest fable https://srcb.in/HbbTDk5GI2
1081589071526240296
i need a bot dev 6 messages
gleaming remnant how much for you to make me a small bot with Welcome - Goodbye Tickets Giveaway Embed maker Counting Ai Chat Auto Role ...
i have a big error i cant fix 6 messages
No username on Image 27 messages
ionic cipher HelpMe
1081589071526240296
Hello there is any solution for discords cdn expires images ? 5 messages
vital yacht Hello there is any solution for discords cdn expires images ?
1081589071526240296
Stop code 3 messages
mossy pelican ```js try { const collectionReference = collection(firestoreDB,"Roblox Verification") //const final...
Workflow infinite loop 9 messages
royal silo So I setup a new workflow in my github repo which runs `npm ci` and then runs `npm run start` (This basically just runs ...
TS 45 messages
flint pine I'm trying to learn typescript by recoding one of my js bots but completely in ts. However, as ts compiles the code into...
1081589253575823411
badges are undefined 2 messages
worldly token https://pastebin.com/g87625dp it knows that there's badges, but it returns undefined in the embed
1081589071526240296
varible not defined idfk 5 messages
proper lily trying to make a function on my discord bot where it pings someone at a specific time and it stops once it reachs max no...
1081589071526240296 1081590299358412983
Docker run error SQLITE3 6 messages
umbral bloom this is the error i am getting: ```terminal Error: /app/node_modules/sqlite3/build/Release/node_sqlite3.node: invalid E...
1081589071526240296 1081590299358412983
Randomly shuffle letters in string? 5 messages
gleaming spade Hey! I'm making a word scramble game, so I'm trying to shuffle the letters in a string. I have this code (which kinda wo...
is typescript better than javascript at developing discord bots? 7 messages
mint cosmos typescript sounds picky ._.