other-js-ts

4043 threads · Page 31 of 81

DB Problem 42 messages
1081589071526240296
suggestionId undefined 2 messages
1081589071526240296 1081590299358412983
Check if a tenor link is in a message, but not with any other link 8 messages
crisp forum I recently found a vulnerability on my Automod system where if someone sends a link (any link) + a tenor link on the sam...
1081589071526240296
Unknown Terminal Error 6 messages
pastel spoke ```PS C:\Users\Chocho\Desktop\Discord Poosay> nodemon [nodemon] 3.0.3 [nodemon] to restart at any time, enter `rs` [no...
1081589071526240296
User Object, how can I get it? 22 messages
Raspberry PI Timeouts (MongoDB) 18 messages
restive zealot Hey hey! Recently, I've moved my discord bot to a Raspberry PI, and I started to get some errors about my mongodb datab...
1081589071526240296 1081590299358412983
Canvas : image manipulation not working 2 messages
shut thistle hello, i followed this guide, the background image is showing but when i try to add the stroke, the profile picture or t...
1081589071526240296
Quick.db voiding data 15 messages
scenic knot This is my code: https://pastebin.com/erCbZEKR Before calling the handlesignup function: "b":{"name":"tere","descriptio...
1081589071526240296 1081590299358412983
discord api MESSAGE_CREATE 6 messages
fickle rock I'm still new to Javascript, and I decided to create my own library from scratch. Only when listening I get only basic ...
Raw events. discord api 1 messages
fickle rock Is this really the whole object we get? ```js { type: 0, tts: false, timestamp: '2024-03-09T08:52:17.171000+00:0...
Gif corruption 16 messages
paper vault I have this code that is supposed to edit a gif: ```js canvasGif( path.resolve(__dirname, '../rawnews.gif'), (co...
1081589071526240296
discord api, message create properties error 6 messages
fickle rock ```js { t: 'MESSAGE_CREATE', s: 5, op: 0, d: { type: 0, tts: false, timestamp: '2024-03-09T04:36:03....
Google API (Refreshing the token) 28 messages
restive zealot Hello. I am using the google gmail api on my discord bot and after a couple of days, my token gets revoked or expired. ...
1081589071526240296
devtools protocol 2 messages
ws + gateway, discord api.js 20 messages
fickle rock ```js const express = require('express'); const WebSocket = require('ws'); class Client { constructor(token, options)...
1081589071526240296
MongoDB Role saved as ID, not object 11 messages
trail junco ```ts const data = new BackupModel({ ... roles: Array.from(guild.roles.cache.values()), ... }); ``` guild is force...
1081589071526240296 1081590299358412983
Puppeteer 4 messages
mossy pelican ```html <a href="example.com" class="title-t-a">Example</a> ``` How would I get both the href & the text in one script
1081590447216017570
Donate command increments the balance of BOTH users. How to fix? 89 messages
frosty plaza I am basically writing this code entirely from a tut, so i have no idea what I could be doing wrong here, it works for t...
feedback and help wanted for Maze Game made in p5js 2 messages
pine kraken Hello! I need some help/pointers with this small project I’m working on! I’m making this maze game in p5js for a school ...
1081590447216017570
Function transformed into an object unintentionally 56 messages
nocturne jolt Guys, I don't know if it's me who's crazy, but I communicate my Discord bot with my PHP API to send the "console.log" to...
getting when a file is finished executing 6 messages
old lance how can i get when a file is finished executing, like when i do/call require(myfile.js), how do i get when its finished ...
1081589071526240296
quick.db bigInt error 28 messages
scenic knot I have a discordjs slash command that is supposed to create a event when the command is executed it calls a function in...
1081589071526240296 1081590299358412983
Object.keys does not break/stop 1 messages
1081589071526240296 1081590299358412983
Random string generator 5 messages
royal silo Would it be possible to use something within Javascript to generate a random string o numebrs and letters to serve as an...
1081589071526240296
Error: Unsupported image type 32 messages
dim lagoon Error: Unsupported image type at setSource (C:\Users\User\OneDrive\Desktop\fl\Team\node_modules\canvas\lib\image.js:...
Error resetting challonge tournament 4 messages
bold kiln ```ts await axios.post(`https://api.challonge.com/v1/tournaments/${existing?.tourneyURL || "undefine...
1081589071526240296 1081589253575823411
Hosting Bot in my Machine from a Replit Project 5 messages
bitter wing I used to run and work in my bot while hosting it on replit, where i would have to turn it on and off everytime i wanted...
Help converting base 64 url into a url to be sent through a discord embed 70 messages
writeFile for GIFs 15 messages
paper vault I have his code that is using a gif editing package to edit a gid then save it. ```js canvasGif( path.resolve(__dirnam...
1081589071526240296
how can I do this? 2 messages
hardy axle how can I do this?
1081589071526240296
Firebase: `Uncaught TypeError TypeError: db.collection is not a function` 23 messages
winged lotus ```js const { initializeApp } = require("firebase/app"); const { getAnalytics } = require("firebase/analytics"); const {...
1081589071526240296 1081590299358412983
Promise to json Object 15 messages
gritty stream How can i convert the promise to a json Object? Promise: ```js [ RowDataPacket { imvciC: 2147483647 } ] ``` Should loo...
1081589071526240296
Canvas place in center of a box 1 messages
crystal hedge How can I automatically place the "Unicorn Elite" in the gray box in the middle of the Y and X coordinates? And how can...
1081589071526240296
mongoose error 3 messages
humble dove Unsupported rejection at: Promise { <rejected> MongooseError: Operation `giveaways_xes.find()` buffering timed out aft...
1081589071526240296 1081590299358412983
Heartbeat 13 messages
rare terrace I need my bot to execute a function every 5 minutes. It's not something I've had to do in nodejs before. What's the best...
1081589071526240296 1081589253575823411
Trying to set up Google Sheets API 7 messages
smoky verge I'm going through Google's quickstart setup, but I don't think it works for my bot - I have much of the command structur...
1081589071526240296
How do you turn on a discord bot 7 messages
rustic pewter It ain't on??
1081590447216017570
writeFileSync works poorly when editing ancestor file 7 messages
errant flax Hi. I have a piece of code: ```js const fs = require('fs'); const fileName = '../this.json'; const file = require(fileNa...
1081589071526240296
Weird Embed Issue? 2 messages
oak finch Not specifically javascript or djs related, but this is the first place I could think of with people with general knowle...
1081590447216017570
writeFileSync for gif 6 messages
1081589071526240296
how can I get Information out of a json Object? 5 messages
gritty stream I have this json object `{"0":{"imvciC":2147483647}}`, how can I get the numbers out of it?
1081589071526240296 1081590299358412983
Integrating AI into my bot 151 messages
near arrow Hi, I would like to add some form of AI chat bot to my bot that can be trained on a set of data in the servers knowledge...
1081589071526240296 1081590299358412983
ReferenceError: MessageEmbed is not defined 20 messages
pearl fractal i try the code of the commande !serverinfo but the in the terminal exit this: ReferenceError: MessageEmbed is not define...
Regex Code 10 messages
broken blade ```js const patternn = /<:.+?:(\d+)> • ` ` • `(\w+)` <:.+?:(\d+)> `G•(\d+) ` \*\*(\w+)\*\* • \*(\w+)\*/; const...
Error shuffling an array 16 messages
unique hearth Team, can anyone advise if there is an error with the below function I've looked at it for too long: ```js // Function ...
canvas Help 5 messages
edgy timber ```js } else if (data.leavetype == 'card') { const canvas = createCanvas(800, 400); ...
puppeteer 8 messages
mossy pelican how would one go about scraping the text from a span like this ```html <span class="example"> "Hello this is a test" </...
1081589071526240296 1081590447216017570
node-canvas remove pixels of specific colour from canvas entirely 2 messages
frozen whale Hi, I am creating a command that uses node-canvas to overlay a PNG of a speechbubble onto an image the user inputs. I h...
1081589071526240296
"Closing curly brace appears on the same line as the subsequent bloc" 12 messages
tranquil breach Hello , here is the error. I absultely do not know where it comes from. Could someone help me pls ?
1081589071526240296
can't create docker image on linux/arm64 architecture 2 messages
pliant aspen i've been trying to create a docker image for my bot. this is my dockerfile: ```FROM node:19 WORKDIR /app RUN apt-get ...
1081589071526240296