other-js-ts

3634 threads · Page 19 of 73

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...
Node.js TypeScript
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 ...
MongoDB 20 messages
fossil cedar So, i have a schema: ``` new Schema({ id: String, cases: [{ userId: String, caseId: String, t:...
Mongoose Error 10000ms 5 messages
Node.js
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
TypeScript
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...
TypeScript
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...
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); ...
Node.js
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...
Node.js Database
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 3 messages
Node.js
module.exports issue 89 messages
lucid niche Okay so I've got this as my welcome message: ```js module.exports = () => { name:"message" description:"This is ...
Node.js
Weird TS Bug 16 messages
rose barn Event Emitter typings are bugged in new typescript?
TypeScript
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...
TypeScript
Error when trying to run a docker healthCheck.ts script besides the main index.ts script 33 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: ...
Node.js TypeScript
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 ...
Node.js Database
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?
Node.js Database
member.user.tag sometimes not showing correctly 16 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...
Node.js
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...
Trying to export an SQL pool to other files 2 messages
uneven hollow what am i doing wrong here? database.js: ```js const mysql = require("mysql2"); module.exports = mysql.createPool({ ...
Node.js Database
Help in return type of a function 4 messages
bold kiln boardtype:- ```ts export enum BoardType { LeaderBoard = "LeaderBoard", SportBoard = "SportBoard" } ``` function...
TypeScript
Returning an array coming out as undefined 9 messages
wanton tusk ```function bigNumGen(to) { const ans = []; for (let i = 1; to > i; i++) { let powers = []; for ...
How do I get a value out of a collection? 13 messages
wispy arch I am trying to get the voteCount from the poll reference. I am guessing I have to do a poll.answers.each(answers => answ...
Node.js
error saying 'eventFunction' is not a function 35 messages
@nodes/type conflict with discord.js 42 messages
south knoll Migrating here from the help channel
TypeScript
hello please help me with this 39 messages
brave shuttle Hey, I have an issue that if I duration string , I type 1s so it goes in embed for 17 minutes if I type 1m so it goes li...
Get data out of db.get() with sqlite3 26 messages
rough blaze So I have this little function: ```js getRow(table, key, value) { let data = new Object(); this.db.get(...
Node.js Database
Can someone tell me why the select menu is there too in the interaction.updated version? 8 messages
last knot ```js const { SlashCommandBuilder, EmbedBuilder, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, ActionRowBuild...
Help in classes and properties 17 messages
bold kiln Hello, I have two classes, one named `BoardManager` and the other named `PlayerManager` I want both of them to have a pr...
TypeScript
Getting unauthorized even though I sent the token 11 messages
wanton tusk https://pastebin.pl/view/bd543446 (most of the code) I've added a new snippet of code to the pastebin at the end which i...
Node.js
undefined config variable 105 messages
austere slate Bots status check in progress... Error when checking bots status: TypeError: The "path" argument must be of type string ...
order problem 4 messages
austere slate problem
Node.js
ws and express ts errors 10 messages
buoyant vine ```ts import type { Express } from "express"; import { WebSocketServer } from "ws"; export default async function init(...
TypeScript
MySQL vs Mongodb 28 messages
sterile forum Hello, is it advisable to use MySQL in conjunction with discord js or are there disadvantages compared to e.g. Mongodb?
filter symbols and emojis 3 messages
vast vault How can i filter the symbols and emojis from `│🎫〢ticket` and only return me `ticket`? Want it as a function.
Getting Permissions 2 messages
muted horizon Hi, i'm creating a discord dashboard in next.js and i want to check a member permissions, how can I do ? I have try to u...
Node.js Browser TypeScript
function argument gets typed as never 6 messages
limber hornet Here is what the problem is
TypeScript
Selective logging 2 messages
queen quiver Hi got a question. I'm try to create a log from webhook embeds. I do not want to copy the first 4 words, but everything ...
How can I get SQL inputs newest - oldest? 50 messages
sage ore I have this code where I get all inputs with a specific username: ```js for (const file of data) { i...
Node.js Database
someone know stuff about sequelize? 2 messages
last knot I struggle with sequelize and I get a error my user can't get create any Idea how to fix it
Node.js Database
User Install Context Support 3 messages
vivid meteor Does djs support the new user install context? I am not exactly sure how to construct the data object manually, however ...
TypeScript
Axios Error 3 messages
robust pecan Hey, can someone help out with something? I'm trying to connect to an API url and when I go to the API url with all of t...
Node.js
Activity URL Mappings 3 messages
grizzled osprey Hello, I wanted to ask how do I configure activity url mappings? I added this for testing purpose but instead I got this...
attach class to client 4 messages
rugged ocean let's say you need 1 instance of a class for you bot. do you normally attach it to the client as a new object so you can...
Does anyone have an idea why my bot stops responding after a certain amount of time? 3 messages
last knot I use some code fragments von djs. But If I try a slag command I need to restart my bot with node . but why?
Node.js
(d.js) TS -> JS: No Errors, won't run.. 12 messages
Node.js TypeScript