other-js-ts

3634 threads · Page 18 of 73

TokenError: Invalid "code" in request. 2 messages
grand dust I'm trying to make a login screen with discord authentication, but I get this error, do you know how to resolve it? err...
Node.js Browser
Redis Connection Issue 4 messages
bold kiln ```ts import { Redis } from "ioredis"; class Cache extends Redis { constructor() { super({ port: 18635, ...
TypeScript Database
help 2 messages
visual maple 1) this is a js file 2) cfgext is a pkg w/ token a .cfgext
I've a problem with my handler 60 messages
potent nymph The event handler is not registered correctly, because the console.log doesn't function: ```js import { Client, TextCha...
installed [email protected] now having issues with djs events types, uninstalled it and re-installed 4 messages
glacial ice [email protected] But now the issue still exists... I can'T get rid of it i even did rm node_modules and even did cac...
Webhook avatar 3 messages
neat hull Hi, I'm trying to create a webhook linked to my bot, which works correctly, but the avatar is not displayed even though ...
How can I prevent this error or disable it from showing up? 6 messages
variables having wrong value 15 messages
short trench My code is ```js const warmup = app.warmup ?? 'N/S'; const notes = app.notes ?? 'None.'; const moderatorNote...
Node.js
Extends DiscordJS Client<Ready> 10 messages
surreal elk Hello, I have a little question on the extend of the Client, if we use a simple client, we can do this: ```ts data: { ...
Node.js TypeScript
Math 6 messages
twilit cave how to round this up ```js const price = options.getInteger('price') const total = price/0.70 ``` how can I rou...
Node.js
Store multiple values in a field (MySQL) 18 messages
uneven hollow I'm in a situation where I need to store multiple values in a single MySQL field This is my table ```sql CREATE TABLE th...
Node.js Database
Can't call information from mongo database 9 messages
short trench So I have a collection in mongodb called temp. This is my code: ```js const tempDoc = Temp.findOne({ tempValueOne: "...
Node.js Database
idk what to do help pls 29 messages
distant bramble Help pls
Node.js
400 bad req 136 messages
Node.js
how can i check if message.author.id is in my sql db table 41 messages
vernal pilot as title
Node.js Database
Mongoose problem 27 messages
pastel blaze Getting this error on mongoose? Not too sure what's wrong here... ```ts mongoose.set("strictQuery", true) await mongoos...
Node.js TypeScript Database
Scrape data off a popup from mouseover event 2 messages
mossy topaz Hey, I'm using puppeteer to scrape data off a website, and there is this popup that I don't know how to get the data of....
Node.js Browser TypeScript
Seperation (js) 4 messages
undone hornet if I have a text like "Hello-World" how can I seperate it and get Hello or World
hi i need help 2 messages
cannot read properties of undefined 2 messages
cloud dock https://srcb.in/LD1Q08p0nN /home/container/src/commands/ERLC/players.js:45 .addFields({ name: 'Count:', value: r...
Node.js
Node.js canvas custom ttf font 4 messages
sudden juniper i want to use custom font at canva, i downloaded PaytoneOne-Regular.ttf, but registerFont is not working. my code: ```j...
Node.js
convert a .svg url to .png 8 messages
opaque skiff hi, I have an image in .svg and I want to put it in an embed but discord doesn't support that type of file, so there is ...
what is this 31 messages
karmic widget i got this code and its weird. Probably to hide original code. How do you do this and why?
Node.js TypeScript
whats the js equiv to a mathematical set ;-;like so i can get my bot to check if x is in A, where A 5 messages
vernal pilot :3
Node.js
Set field to null mongoose (NOT SOLVED) 12 messages
graceful fiber I can't find a way to set a field with type ObjectId to null after giving it a value Exemple : (in this context guild i...
TypeScript Database
expected string or number at ms 12 messages
hollow imp ```const { EmbedBuilder } = require('discord.js'); const ems = require('enhanced-ms'); // npm package to parse time dura...
Node.js
Help-me? I am unable to send an image using rest api 5 messages
Node.js
modal 26 messages
tacit flint https://pastebin.com/wMyKSTrk alright so I was able to remove the wrapper but it still says "This interaction failed"
Hi I was planning to put ads on my app. What do you recommend me to put? 5 messages
sturdy sigil Hi I was planning to put ads on my app. What do you recommend me to put?
Browser
logging errors/checking whats in a error 13 messages
near arrow is there any way to like check if a error has certiant text in it? for example im using google gemini api to moderate my...
Node.js
created a crosshair application and when I select a crosshair it is not put in the center 6 messages
sturdy sigil Hi, I created a crosshair application and when I select a crosshair it is not put in the center of the screen even thoug...
Jest troubleshooting 2 messages
hybrid widget Not sure if this is the correct channel but, Hello working with jest here I have a test setup for a process.env I can ge...
Node.js TypeScript
Problem with variable through multiple file 26 messages
summer wyvern So i have 4 commands wich are like that: ```js const { SlashCommandBuilder } = require('discord.js'); const { cchannel }...
Node.js
How do I terminate a github action after running my discord bot? 24 messages
clear sapphire I am trying to verify that my discord bot properly builds and runs. I have declared secrets and everything. The bot mana...
Node.js
Adding song to the queue 4 messages
snow mountain When i try to add a song to the queue from the menu, i get this error: **RangeError: Track must be a "Track" or "Track[]...
OpenAI error 3 messages
Node.js
[nodemon] app crashed - waiting for file changes before starting... 2 messages
median path i keep getting the following error while trying to run my bot
How to tell if variable is an error outside of a try catch 4 messages
mossy pelican I have something that is converting a string to a number and then doing a math equation on it and then replys to someone...
Auto-Instantiation 11 messages
sly forge Stumbled upon a flowfields repo,<https://github.com/mkfreeman/flowFields/tree/master>, and it uses the cdn hosted versi...
Mysql 36 messages
bronze surge Connection problem with my ovh database
The Unresolvable Promise (NOT SOLVED) 18 messages
dry quartz I'm integrating internationalization into a discord bot with the `typesafe-i18n` library, but when I use the `fetchT` fu...
Connection error: TOKEN_INVALID 5 messages
wanton obsidian I am trying to host a bot with Google Cloud. VM on Ubunty 20.04. I'm using FireZilla for SFTP. When I type `node index....
Node.js
IoRedis connection error 2 messages
bold kiln redis cloud documents nodejs usage like this:- ```ts import { createClient } from 'redis'; const client = createClient(...
ssl express 3 messages
sick ivy trying to enable https for my express api, i see i need a ssl certificate (lets encrypt), so do i need a domain when cre...
Node.js
canvas angles 4 messages
leaden cradle how to make this code: ```const avatar = await Canvas.loadImage(av3buffer); context.beginPath(); context.arc(93...
Server whitelist system 33 messages
shrewd owl ```js const guildlist = await wlSchema.find(); console.log(guildlist) const data = await wlSchem...
Node.js Database
how do I get a SSH public key that I just generated in ubantu 4 messages
shrewd owl ^
Node.js
configuration is not a constructor 2 messages
sudden spindle ```require("dotenv").config(); const { OpenAIApi, Configuration } = require("openai") const config = new Configuration(...
Node.js
Bot slow on a single server and not others 36 messages
sage lagoon My bot is super slow, but on a single server. Others severs don't have this problem. I was told to try this inside my i...
Node.js
glob returning empty array 16 messages
radiant wasp ```js const eventFiles = await glob(new URL('../events/**/*.js', import.meta.url).toString(), { absolute: true }); conso...
TypeScript