other-js-ts

4043 threads · Page 20 of 81

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...
1081589071526240296 1081589253575823411
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 }...
1081589071526240296
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...
1081589071526240296
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
1081589071526240296
[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...
Encryption/Decryption 1 messages
quartz anchor For my discord bot, I want to encrypt as much data as possible. What node libary should I use and whats the best practi...
1081589071526240296 1081590299358412983
Mysql 35 messages
bronze surge Connection problem with my ovh database
Redis and future 1 messages
rocky grotto Hi, I'm using redis with my bot: and I want to "ping" another server to print it in discord. For this I use redis (beca...
1081589071526240296 1081590299358412983
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....
1081589071526240296
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...
1081589071526240296
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 31 messages
shrewd owl ```js const guildlist = await wlSchema.find(); console.log(guildlist) const data = await wlSchem...
1081589071526240296 1081590299358412983
how do I get a SSH public key that I just generated in ubantu 4 messages
shrewd owl ^
1081589071526240296
configuration is not a constructor 0 messages
sudden spindle ```require("dotenv").config(); const { OpenAIApi, Configuration } = require("openai") const config = new Configuration(...
1081589071526240296
Bot slow on a single server and not others 30 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...
1081589071526240296
glob returning empty array 13 messages
radiant wasp ```js const eventFiles = await glob(new URL('../events/**/*.js', import.meta.url).toString(), { absolute: true }); conso...
1081589253575823411
Logic of branching story 7 messages
potent ether Hello i got problem about my little project.. right now i build an interactive story from discord bot use typescript (re...
1081589071526240296 1081589253575823411
update node from 16 to 18 issue with canvas 9 messages
twin lodge i have updated the node and reinstalled the packages tried reinstall and rebuild and same error ```js Error: The module ...
Child process handle errors 8 messages
unkempt lake I'm trying to integrade youtube-dl-exec to stream a song to my discord channel. I managed to do it but every time i try ...
Child process handle errors 1 messages
unkempt lake I'm trying to integrade youtube-dl-exec to stream a song to my discord channel. I managed to do it but every time i try ...
MongoDB 20 messages
fossil cedar So, i have a schema: ``` new Schema({ id: String, cases: [{ userId: String, caseId: String, t:...
Mongoose Error 10000ms 0 messages
1081589071526240296
Having a issue where new import doesnt show as a green it shows as Yellow 10 messages
river lark No clue why it does this but It works completely fine on a local file of a .js file
1081589253575823411
Send one message instead of three 2 messages
steady pulsar I have this block of code: ``` // If we find one or more user if(users) { channelLog.send...
1081589253575823411
DiscordAPIError: Cannot send messages to this user 1 messages
1081589071526240296
express js 1 messages
sick ivy hey, some insights please. So my frontend makes PUT requests to my backend, and my backend does the stuff (request to an...
1081589071526240296
JSON to mongo 5 messages
sterile forum Hello grandmaster, I have a JSON file with an embed in it and would like to save it as a string in Mongodb and then late...
Question regarding database following the "Make currency" example in the guide 1 messages
steady pulsar Hey there, I have a question for you. I'm a newbie and I'm building my first Discord bot with Discord.js following the e...
1081590299358412983
trouble with node version 8 messages
fast pelican i downloaded latest version of node js from their website but when i check version in terminal it says 10.8.0 but i dow...
Error during Discord OAuth2 process: AxiosError: Request failed with status code 401 3 messages
radiant cape ```if (output.data) { const access = output.data.access_token; console.log(access); ...
1081589071526240296
Playing Audio despite Chrome's Autoplay Policy 5 messages
vivid token Im making an html5 JS webgame and Im using Howler.js. I cannot get sounds to play. All of the tutorials on YT and my sea...
Sequelize error 2 messages
ripe marsh This is code that uses sequelize, which specifies that the dialect is sqlite in the constructor, but I still get the err...
1081589071526240296 1081590299358412983
encrypted token 13 messages
candid kayak Hello, I bought a VPS and I'm afraid someone might access it by getting hold of my bot's token (Discord.js v13). I wante...
Problem with canvas 11 messages
1081589071526240296
module.exports issue 88 messages
lucid niche Okay so I've got this as my welcome message: ```js module.exports = () => { name:"message" description:"This is ...
1081589071526240296
Weird TS Bug 16 messages
rose barn Event Emitter typings are bugged in new typescript?
1081589253575823411
tsconfig module 18 messages
graceful fiber It's not derectly related to discordjs but I'm using it as an exemple here. I don't know if it's possible to export wit...
1081589253575823411
psql error 2 messages
Error when trying to run a docker healthCheck.ts script besides the main index.ts script 32 messages
tiny osprey I start my bot with `pnpm start` which works fine. When I try to run `pnpm run healthCheck` I get the following error: ...
1081589071526240296 1081589253575823411
Can't create SQL database while using a connection pool 2 messages
uneven hollow I used to use a single connection for MySQL, so I was able to create a database using that connection, like this: ```js ...
1081589071526240296 1081590299358412983
Deleting a Sequelize query 24 hours after it’s made. 9 messages
sage ore How would I delete a Sequelize query 24 hours after it is created?
1081589071526240296 1081590299358412983
Either Using Google Sheets or figuring out how to put it into a database with 20+ strings 2 messages
1081590447216017570 1081590299358412983
member.user.tag sometimes not showing correctly 17 messages
Canvas with default discord profile pictures 4 messages
narrow imp Whenever I try to load an image which is the default profile picture in discord, it always gets stuck. Everything else w...
1081589071526240296
How do get a specific value from a provided key this way. 4 messages
lucid niche ```js const punishments = require('./punishments.json'); client.on('messageCreate', message => { if (message.channe...