other-js-ts

3634 threads · Page 30 of 73

LEFT JOIN with large data in left table 9 messages
slow pond Assume there are two tables with the following relationship: ``` ┌─────────────────────────────────┐ │TableA ...
Database
Unintentional async behavior 4 messages
TypeScript Database
wrong loop triggered 4 messages
trim fractal So i have this piece of code: ```js let guildConfiguration = await GuildConfiguration.findOne({ guildId: interaction.gui...
new Set() 27 messages
crisp forum When someone DMs my bot, it sends a message, however i'm trying to put a cooldown to this, but it does not seem to work....
Node.js
welcome canvas 98 messages
pearl fractal } Sto per inviare il messaggio di benvenuto a: Picsart#0400 Errore nel caricamento dell'immagine: Error: EINVAL, Invalid...
Node.js
Reading a .gif file from a URL and editing it 2 messages
paper vault I am reading a URL of a .gif file from an API, and I want to edit it slightly. What package would fit my needs best? ...
Node.js
@napi-rs/canvas not showing image/text 8 messages
eternal ether Ive console.logged every variable and all have the correct data in them ```js // This chunk of code is inside of an asyn...
Node.js
JSON.stringify on nested class instances 3 messages
obtuse moss Why does this example show only parent parent properties when using JSON.stringify ? how can I get around it ? ```js c...
TypeScript
djs messages to html 2 messages
marble lava Does anyone know a pkg to convert discord messages to html (not a ticket transcript though)
Dynamic Background 9 messages
flint pine I'm using react, tailwind and electron to make a weather app for a college project. I want the background to change depe...
How can I make it simpler? 34 messages
rain steppe ```js ... let yedek1 = interaction.options.getMember('yedek-1') let yedek2 = interaction.options.getMember('yedek-2') co...
Node.js
Mongoose no longer supports callback 10 messages
dim glacier ```JS level.findOne({ Guild: guild.id, User: author.id}, async (err, data) => { if (err) throw err; if...
Node.js Database
Not awaiting (I think?) 5 messages
eternal ether So i have this code to get the icon, when ran getIconData works, everything's normal BUT newIconData does **not**. This...
Node.js
Mysql2 changes integer on queries 11 messages
thick moth Hi! I have an issue with mysql2 Node.js package. My code looks like this:
Node.js Database
GuildQueue play() isn't executing properly 73 messages
simple vapor Hello, My queue play() method seems different from the docs, When I try to play a music, the music gets added to the que...
Node.js
SearchResult track field is empty 2 messages
simple vapor Hi, I'm trying to play a youtube video with my bot and I'm struggling because the SearchResult object has no "Tracks" fi...
Node.js
Node fetch problem on sourcebin API 8 messages
bold kiln ```ts const data = await axios.get(`https://api.challonge.com/v1/tournaments/${ID || "null"}.json`, { ...
TypeScript
Saving png file received in axios 4 messages
prisma drift I am using `sendFile` in express to send a png file and i would like to receive it from another nodejs server and write ...
help with my api 10 messages
hardy axle I'm putting together an api and I need help setting up headers using fetch, when I try with axios it works normally but ...
Node.js
MongoDB error 54 messages
shadow oriole Hey guys anyone can help me of this error? I think its mongodb error but in my localhost working perfect, only not worki...
Node.js Database
chatgpt command 8 messages
austere wharf https://sourceb.in/JQVWIcJ6cT need help with this
Node.js
Mongoose findOneAndUpdate (.push() issue) 16 messages
spiral burrow see below
Database
How to use `suppressWarning` option [Mongoose] 8 messages
floral plover Hello! I started using Mongoose and MongoDB recently for my discord bot, and it keeps throwing the following warning mul...
Node.js Database
Queue system 5 messages
left carbon hey ! I can't manage to create a queue system for my music bot, could someone help me please ? Here is my code :
Mongoose List Help 6 messages
spiral burrow If I run code to find a certain user with .findOne, and want to append to/remove certain entries in a list under their d...
Database
Mongoose .findOne Question 31 messages
spiral burrow when using mongoose and checking if a user has a "product" in their entry, it always returns false, even though mongodb ...
Database
canvas error 2 messages
trim fractal hi, somehow my raspberry pi 4 (Pi OS Lite) won't install discord.js, and i can't make out what the error is. Can somebod...
Node.js
Canvas Font 4 messages
rough pebble Error ```js (process:22152): Pango-WARNING **: 00:23:26.417: couldn't load font "Chewy Not-Rotated 90px", falling back t...
Node.js
array.slice() 6 messages
modest arrow im reading documentation about Array.slice() but i dont quite understand. Like.. i understand that it slice the array. B...
Events handler 2 messages
onyx oasis Hello, I want to ask for help, I'm just learning discord.js. I created a discord bot using the help of SlashCommandPacka...
Node.js
how to filter by not null in sqlite 9 messages
wraith quest ```js const infractions = await infractionsDatabase.findAll({where: {violatorId: this.violatorId, action: }}) ``` How ca...
I need some suggestions 8 messages
deep crater I have homepage.ejs which is my site but there a button which logins with discord oauth then returns back to homepage in...
Node.js
@napi-rs/canvas in embed .setImage 5 messages
eternal ether Is there a way to have the altered image from napi be used in the setImage field of an embed? ```js const canvas = crea...
Node.js
Need a advice tyyy🫡🥰 10 messages
last knot Good Morning 🌞 I found the CURRENT_TIMESTAMP Statement but how I can create a attribute with this statement timestamp I...
Database
Discord oAuth2 Code 400 3 messages
Browser
match error output against string 3 messages
wraith quest how can i check if the error output (not message) contains this specific string?
how do i break switch/case it on one line? 8 messages
database create return 8 messages
wraith quest why doesnt it trigger 0 when the .create isnt successful and returns nothing? when i log report then it generates no log...
anyone wanna help me with my csp homework? 25 messages
vast cobalt literally just needs like 10 lines of code but ive cheated through this whole course so i have no idea what im doing. (j...
Audio streaming bot no longer working on Heroku 3 messages
sullen badger Hello, I have a Distube bot which I have previously deployed via Heroku, but I am recieving the error `Error R10 (Boot t...
Node.js Browser
How to use a command to request data from a Google REST API 5 messages
mossy badger One of the things I want to do with my bot is requesting data from google sheets to mass assign roles to users. Google h...
Node.js
Problem setting up typeScript handler 14 messages
patent cedar Hello i am setting up a typescript discord bot handler but i have some problems setting that up... the problem is while ...
TypeScript
help 27 messages
austere wharf keep getting this error not sure how to fix ```RuntimeError: abort(TypeError: fetch failed). Build with -s ASSERTIONS=1...
fixing a gihub music / voice recongnition bot 4 messages
austere wharf keep getting this error not sure how to fix ```RuntimeError: abort(TypeError: fetch failed). Build with -s ASSERTIONS=1...
I think it's a problem with MongoDB, but I don't know what to do 4 messages
lone pagoda They say they removed something from mongoDB, but I don't know how to change it
Node.js
saying customRoleEditCost is not defined but im pretty sure it is 2 messages
night thicket i made a shop for a custom role and it worked fine until i added the ability to edit the role and im getting an error bu...
REST API 5 messages
daring ermine Does the @discordjs/rest API handle the rate limits and queue requests when reaching their limit, like discord JS or I r...
Run multiple bots in the same code 3 messages
obsidian surge I have discord.js code that has to run several bots in the same code. Because I sell each bot separately, some bots seem...
I want help with these errors 2 messages
plain junco ```node npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@discordjs/[email protected]', container...
Node.js
Error: Failed to convert JavaScript value `Undefined` into rust type `String` 20 messages
mental smelt I get error in my following code: https://pastebin.com/raw/z09TNyN4 ```js Error: Failed to convert JavaScript value `Und...
Node.js