other-js-ts

3634 threads · Page 36 of 73

node_modules size 2 messages
ivory bay I've been experimenting with package.json, however im running into something I can't explain. Below are two different pa...
Node.js
Sequelize 8 messages
cobalt glacier Does anyone now how i get the all values from one column in a mariadb with Sequelize?
Node.js Database
setMaxListeners() 18 messages
heady patio How do I increase the maxListeners? I get this error: `MaxListenersExceededWarning: Possible EventEmitter memory leak de...
how do i do guildMemberAdd to set up a cammnd to set it up pls help 2 messages
autumn rock pls
Node.js
{RESOLVED} Error of my code 32 messages
stuck yew How I can use `SQlite3` package ? For register all informations. I don't use one time.
Node.js Database
MongoDB 7 messages
canvas image not loading 5 messages
autumn hare ```js const { Client, GatewayIntentBits, ActivityType, Events, Collection, Partials, EmbedBuilder, AttachmentBuilder } =...
Node.js
null values in database 15 messages
remote cosmos Hullo there... it's been a long time... i am having a little difficulty with working on node js and sqlite3... i am gett...
Node.js Database
Birth Problem 55 messages
covert jackal Hello, I have a problem, I made a birthday system and when it's the birthday the bot has to send "happy birthday" in a c...
Node.js Database
"invalid emoji" 12 messages
rapid burrow the script where i add the emojis ```js function RevealButtons(buttons) { for(let i = 0; i < buttons.length; i++) { ...
Node.js
sqlite error 14 when attempting to write 14 messages
rain turret Whenever I try to write to my sqlite database i get error 14: errno: 14, code: 'SQLITE_CANTOPEN' Can't figure out what...
Database
const foldersPath = path.join(__dirname, 'commands'); 5 messages
dim shadow const foldersPath = path.join(__dirname, 'commands'); That line is in my bot/src/index.js, and i wanna go to bot/command...
Discord bot without slash command 7 messages
dim shadow I would like to get a reminder how to do a command (not a slash command) with discord.js v14 please.
A bot for recording a conversation in a channel 8 messages
buoyant sapphire Hello everyone I want to implement a bot that will connect to the channel on command and record the conversation, after...
Node.js
mongoose help 12 messages
wet turret Hi, I did this command, for my economy system, it's about being able to sell objects from the inventory, the error I hav...
Defaults for object parameters 2 messages
restive cipher I am trying to set the parameters to be optional with a default setup, I tried to make this but it shows cannot read pro...
Node.js
Djs Collections and their memory consumption 14 messages
cedar otter Hey so i have a slash command that fetches data from an url and caches it for a day. I'm a bit concerned about the memor...
Node.js
Event emitter emits twice 17 messages
night cosmos ```js client.emit("loggerAdd", loggerData) console.log("emitted") ``` ```js client.on("loggerAdd", () => { console.lo...
Node.js
Syntax error 2 messages
vague garden Why do I get the syntax error `Declaration or statement expected. [Ln 81, Col 11]` when using [this code](<https://paste...
RankCard Editing 26 messages
pm2 start not work 4 messages
gleaming storm how i use pm2 start i tried like this pm2 start C:\Users\Administrator\Desktop\warn_bot But that not working how to fin...
TypeError: Cannot read properties of undefined (reading 'startsWith') 11 messages
rapid burrow ```js function RevealButtons(buttons) { for(let i = 1; i < buttons.length; i++) { let button = buttons[i]; con...
Node.js
auto complete 3 messages
coarse lichen im not sure why my autocomplete isnt populating but it says "failed to load" in discord when i start typing in my string...
Node.js
adding an exception to a cooldown 29 messages
fresh viper generated.add(member.id); setTimeout(() => { generated.delete(me...
.catch() question 11 messages
crisp forum I have recently noticed a bunch of developers using `.catch(() => {})` instead of `.catch(() => null)` Is there any diff...
Node.js
hi I'm trying to make a system for config the welcome message 2 messages
crimson quest hi I'm trying to make a system for config the welcome message is to start is the autorole with a command /setup-bvn to r...
filter results by alphabetical sorting 5 messages
dense igloo Do you have any idea how I can do this? To add each result of my individual filterNameMap to my loop? filterNameMap ret...
Node.js
TypeError: Cannot read properties of undefined (reading '1') 6 messages
rapid burrow ```js client.on("interactionCreate", async (interaction) => { if (!interaction.isChatInputCommand()) return; ...
Axios will make an API call to reddit on my laptop, but when I push the code to my VPS it errors 10 messages
frosty dawn Function Code: ```js async function fetchRedditPost(client) { try { const response = await axios.get('https:...
Node.js
nodejs execution window pops up when forking process running on pm2 7 messages
sage lagoon idk why but if i fork a procces runing using pm2 on windows, I have a nodejs execution window that opens then closes. If...
glob help 3 messages
shy trench ```ts import { glob } from "glob"; const commandFiles = await glob(join(__dirname, "../commands", "**/*{.ts,.js}")); con...
Node.js TypeScript
String is not being edited and doesn't change with desired condition 3 messages
royal hamlet Hey guys, i'm having some problems with an interaction i'm trying to handle with my bot, here's a brief explanation of t...
How to fix "OpenAI API error: TypeError: openai.chat.completions is not a function" error? 5 messages
lofty hedge ``` if (msg.author.bot) return; if (msg.content.startsWith('!ss talk')) { const userMessage = msg.content.s...
role problem 13 messages
opaque skiff hi, when I go to run the command the bot give me always the phrase "You are not a server booster", what I did wrong? ```...
code issue 9 messages
wicked pebble Heya its not saving to mongodb and I have no clue why no errors or anything and the code seems correct Code: https://s...
subcommands error 16 messages
opaque skiff this is the code: ```js const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const accountSchema = requi...
npm 4 messages
glossy spire Hello. I have a little question. I published a package on npm with a specific version, but soon deleted it. When I publi...
How can I use absolute Paths using Discord JS? 3 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
Node.js
How can I use absolute Paths using DiscordJS? 11 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
Node.js
How can I use absolute Paths using DiscordJS? 2 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
Node.js
trying to figure out how to use try properly 7 messages
fossil mountain im a bit confused on how to use try, new to javascript so sorry if i explain this poorly, ```javascript if (interactio...
database problem 8 messages
opaque skiff hi, I know what is wrong but I have no idea how can I solve, can anyone help me? ```js const { SlashCommandBuilder, Emb...
Node.js Database
Markdown Question 4 messages
Node.js TypeScript
Problem in Canvas 4 messages
Collector for Webhook Interactions 2 messages
candid plume Hello i'm trying to build a fully operationnal workaround around the Interaction thing in Discord.js (i have already don...
Node.js TypeScript
mongoose help 32 messages
silent citrus I think my code is not fetching data from mongoose
gdpr and storing ids 6 messages
thin shuttle hey lads not sure where to ask this but are there any restrictions for storing user ids and message ids on a database fo...
Database
ween i use - it does work ```jsclient.on("messageCreate", async msg => { if (msg.content.startsW 9 messages
developersId.includes is not a function 27 messages
opaque skiff ```js async run(interaction) { if (!developersId.includes(interaction.member.id)) { const rEmbe...
Canvas problem 2 messages
plucky bison ```js const playerscard = await kartcek('path', randomnamesagain) console.log(playerscard) const can...
Node.js