other-js-ts

4043 threads · Page 21 of 81

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({ ...
1081589071526240296 1081590299358412983
Help in return type of a function 4 messages
bold kiln boardtype:- ```ts export enum BoardType { LeaderBoard = "LeaderBoard", SportBoard = "SportBoard" } ``` function...
1081589253575823411
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...
1081589071526240296
error saying 'eventFunction' is not a function 34 messages
@nodes/type conflict with discord.js 42 messages
south knoll Migrating here from the help channel
1081589253575823411
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(...
1081589071526240296 1081590299358412983
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...
1081589253575823411
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...
1081589071526240296
undefined config variable 104 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
1081589071526240296
ws and express ts errors 10 messages
buoyant vine ```ts import type { Express } from "express"; import { WebSocketServer } from "ws"; export default async function init(...
1081589253575823411
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...
1081589071526240296 1081590447216017570 1081589253575823411
function argument gets typed as never 6 messages
limber hornet Here is what the problem is
1081589253575823411
nodemailer - 1 messages
dim lagoon Error: Missing credentials for "PLAIN"
1081589071526240296
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...
1081589071526240296 1081590299358412983
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
1081589071526240296 1081590299358412983
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 ...
1081589253575823411
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...
1081589071526240296
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...
Oauth2 1 messages
karmic widget Hi , someone experienced with dashboard and Oauth2? doing **client side rendering** - should i use access token (token) ...
1081590447216017570
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?
1081589071526240296
(d.js) TS -> JS: No Errors, won't run.. 13 messages
1081589071526240296 1081589253575823411
bot Dashboard help 54 messages
sterile forum I've looked at all the classes available for the Discord API and I'm not sure how best to approach my problem. I'm curre...
Collectors Implementation issue 45 messages
carmine stump I've been using `@discordjs/core` and I need to implement collectors. I came across [this example](https://github.com/TA...
1081589253575823411
List save (MongoDB) 1 messages
orchid gulch How can I save a list in a database (mongodb) ?
1081590299358412983
Reg expression help with Javascript 16 messages
prisma abyss Well... I just need some help with extracting big string and split them into individual substrings or arrays. Let say I...
Using constants from a command in index.js 39 messages
sage ore How would I use this user constant from the command, in the 2nd script? (Different files) ```js const { Events, time, Ti...
Questions via DM 12 messages
orchid gulch How can I send the questions to the user individually via DM server and the next question should not be asked until the ...
1081589071526240296
Send NextResponse.json then process further 10 messages
heady adder Hi everyone, I'm making a small project in NextJS and I'm using the `api/some/random/url/route.ts` file to handle calls ...
1081589071526240296 1081589253575823411
help me 15 messages
merry vapor how to fix it
1081589071526240296
Problem with an event 22 messages
1081589071526240296 1081590299358412983
How to host a bot that was written in Typescript? 4 messages
sour grotto I have everything ready, even the server. Just not sure about what the steps are.
1081589253575823411
can't see slash commands 4 messages
1081590447216017570
Fetching tags with specific data in Sequelize 36 messages
sage ore How do I fetch all tags that have a specific value and how do I get the data that is paired with that tag?
1081589071526240296 1081590299358412983
how can i install nvm ?? 53 messages
merry vapor hellppp
1081589071526240296
djs msg fetch error and more issue 8 messages
bold kiln ```ts const sentCh = await interaction.guild?.channels.fetch(existing.regChID) as TextChannel; ...
1081589253575823411
Can someone explain me what this code fragment do? 1 messages
last knot ```js client.once('ready', () => { console.log('Ready!'); client.user.setPresence({ activities: [{ name: 'text', typ...
1081589071526240296 1081590299358412983
Implementing a Modal Help 5 messages
junior remnant Im trying to work with modals to enhance UI, but everytime I press the button to initiate the modal, it would load it up...
1081590447216017570 1081589253575823411
Bot not being recognized and my profile is not getting active developer badge. 25 messages
wicked lake Hello, I am a new discord developer and I was creating a new bot for moderation purpose for a couple of server and I did...
Roblox group gamepass price chage 29 messages
tough sentinel https://sourceb.in/ibjt6I3R83 cmd code https://sourceb.in/SSIR5gfgQU errors
1081589071526240296
module.exports help 11 messages
hasty temple I'm getting started with Javascript. What is causing this error/what is the issue: `(node:24300) Warning: Accessing non-...
1081589071526240296
Using the client on separate threads for expensive operations 9 messages
charred spear I have an expensive command which syncs the bot up with its message channels, requiring it to go through each message an...
1081589071526240296
hmm can someone help me to fix my error 56 messages