other-js-ts

4043 threads · Page 33 of 81

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....
1081589071526240296
welcome canvas 98 messages
pearl fractal } Sto per inviare il messaggio di benvenuto a: Picsart#0400 Errore nel caricamento dell'immagine: Error: EINVAL, Invalid...
1081589071526240296
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? ...
1081589071526240296
@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...
1081589071526240296
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...
1081589253575823411
djs messages to html 2 messages
marble lava Does anyone know a pkg to convert discord messages to html (not a ticket transcript though)
bun not able to use es6 features 1 messages
vivid wagon i have type: module in my package.json i have ESNext in my tsconfig.json
1081589253575823411
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...
Emojis in Canvas 1 messages
rough pebble I am using Arial font and I tested it on my pc and it was fine and shows emojis (the font is installed in my PC) then I ...
How can I make it simpler? 33 messages
rain steppe ```js ... let yedek1 = interaction.options.getMember('yedek-1') let yedek2 = interaction.options.getMember('yedek-2') co...
1081589071526240296
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...
1081589071526240296 1081590299358412983
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...
1081589071526240296
Mysql2 changes integer on queries 11 messages
thick moth Hi! I have an issue with mysql2 Node.js package. My code looks like this:
1081589071526240296 1081590299358412983
OAuth2 help 1 messages
zenith tree Hey, I got a question. How can I save the token of the user instead of asking it each time in OAuth2 I followed the guid...
1081589071526240296
GuildQueue play() isn't executing properly 72 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...
1081589071526240296
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...
1081589071526240296
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`, { ...
1081589253575823411
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 ...
Sodium Install 1 messages
shrewd knoll Trying to install sodium I get an error about msvs versions, unfortunately I have a problem installing the 2015 version ...
1081589071526240296
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 ...
1081589071526240296
MongoDB error 53 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...
1081589071526240296 1081590299358412983
chatgpt command 8 messages
austere wharf https://sourceb.in/JQVWIcJ6cT need help with this
1081589071526240296
Mongoose findOneAndUpdate (.push() issue) 16 messages
spiral burrow see below
1081590299358412983
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...
1081589071526240296 1081590299358412983
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...
1081590299358412983
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 ...
1081590299358412983
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...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
@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...
1081589071526240296
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...
1081590299358412983
Discord oAuth2 Code 400 0 messages
1081590447216017570
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...
1081589071526240296 1081590447216017570
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...
1081589071526240296
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 ...
1081589253575823411
I need to test if my bot do a connection to my DB 1 messages
last knot My code ```js const fs = require('node:fs'); const path = require('node:path'); const { Client, Collection, Events, Gat...
1081589071526240296 1081590299358412983
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
1081589071526240296
Issues in canvas library 1 messages
modest flower Hello i got `Error: Server responded with 403` from canvas libary, Does someone know why?
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...