other-js-ts

3634 threads · Page 28 of 73

Discord RPC Setup 13 messages
wispy hinge I'm trying to make a localhost website for a twitch widget you run locally on your machine. For the live of me, I can't...
Browser TypeScript
punycode 9 messages
austere wharf ```(node:15028) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative ins...
Guild Constant Efficency 3 messages
obsidian sparrow From my discord bot, I have a set of constants that can be updated if needed saved through MongoDB. I established a clie...
TypeScript Database
get channel object, discord api 2 messages
fickle rock how can I implement replying to messages? What parameters are needed, what is the URL link?.
Problems using string.toUpperCase(); and comparing 5 messages
weak mural Hi. I am trying to make a discord bot that can read messages off a google spreadsheet and post information in a discord ...
Node.js
Discord 401 error 34 messages
sleek oak Trying to upload a GIF to bot avatar but get 401 ```js const fs = require('fs'); const token = process.env.TOKEN; asyn...
Node.js
Hopefully easy JSON question 27 messages
smoky verge Trying to set up a JSON for my bot. Did I miss some punctuation somewhere? The file is supposed to have each key corresp...
Node.js Database
Link ""Dashboard"" to Bot 7 messages
surreal elk I've created a Discord bot. Now I'd like to set up a dashboard, I'd like to use Discord JS. It's possible to interact wi...
Node.js Browser
node-canva portability 9 messages
shut thistle Hi I don’t know if you can help me but I have recently bought a droplet on DigitalOcean (under Ubuntu) where I host my d...
Node.js
file not appearing 6 messages
boreal creek ```js fs.writeFile("id.txt",await w.send({content:"test",username:"server"}).id,{flag:"w"})``` the file id.txt isnt app...
not allowed channel topic 7 messages
glossy spire ```js topic[CHANNEL_TOPIC_INVALID]: Channel topic contains at least one word that is not allowed. ``` This error is retu...
Node.js
help 11 messages
flint hornet im creating my own bot and i typed node bot.js and it says module not found
DB Problem 43 messages
Node.js
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...
Node.js
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...
Node.js
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...
Node.js Database
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...
Node.js
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...
Node.js Database
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 ...
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...
Node.js
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. ...
Node.js
ws + gateway, discord api.js 20 messages
fickle rock ```js const express = require('express'); const WebSocket = require('ws'); class Client { constructor(token, options)...
Node.js
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...
Node.js Database
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
Browser
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 ...
Browser
Function transformed into an object unintentionally 57 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 ...
Node.js
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...
Node.js Database
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...
Node.js
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...
Node.js TypeScript
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 16 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...
Node.js
how can I do this? 2 messages
hardy axle how can I do this?
Node.js
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 {...
Node.js Database
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...
Node.js
mongoose error 3 messages
humble dove Unsupported rejection at: Promise { <rejected> MongooseError: Operation `giveaways_xes.find()` buffering timed out aft...
Node.js Database
Heartbeat 14 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...
Node.js TypeScript
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...
Node.js
How do you turn on a discord bot 7 messages
rustic pewter It ain't on??
Browser
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...
Node.js
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...
Browser
writeFileSync for gif 5 messages
Node.js
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?
Node.js Database
Integrating AI into my bot 153 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...
Node.js Database
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...