other-js-ts

4043 threads · Page 24 of 81

db.run is not a function (better-sqlite3) 72 messages
molten pelican Hiya! I'm extremely new to js, am a python dude mainly. I started working on a project with my friend who knows js bette...
1081589071526240296 1081590299358412983
my /help command is glitching 6 messages
daring delta soo when i do /help (on my bot) it gives the following error ```ts iscordAPIError[10062]: Unknown interaction at ha...
1081589071526240296
Discord.js Documentation Voice down 4 messages
empty thunder Hey devs, I am trying to access the discord.js AudioPlayer documentation [Here](https://discord.js.org/docs/packages/vo...
1081590447216017570
i want to make a qotd command thats gets a random one everyday but im not sure where to start! 4 messages
daring delta could you help please?
1081589071526240296 1081589253575823411
2 problems need help on 86 messages
daring delta so when my bot joins a server its supposed to dm **one** time instead it dms **four** times also, it is supposed to sen...
1081589071526240296 1081589253575823411
error handling 5 messages
opaque skiff hi, I have the handler of the official djs guide, and I have an error that put my bot offline, the error doesn't come fr...
1081589071526240296
game deals command 1 messages
visual forge some bugs but working for the most part<:bluegrrr:1177810907989037136>
axios.get() is flooding my console with everything even though i want to log just axios.status 20 messages
mystic falcon i'm testing with a 404 error page to then return 'This user doesn't exist', but even though i'm expicitly trying to catc...
testing express using jest and mongoose 5 messages
misty minnow anyone knows a solution to get rid of my errors? ```ts import {createApp} from "@/app"; import mongoose from "@/database...
Segfault on Windows Bun 6 messages
waxen echo Hi, I'm currently using bun (on Windows) to develop a bot and I often have some segfaults (when I define some unused var...
1081589253575823411
Moving from JS to TS 13 messages
royal silo I've recently made a decision to move over to TS, what are some things I should know before I do the switch?
1081589071526240296 1081589253575823411
ESM loader cannot import files 17 messages
velvet gazelle I have just switched my bot from ubuntu to windows and I've read all the stack overflow questions, typescript server old...
1081589253575823411
Memory leak with canvas npm package? 4 messages
river salmon ```js const { createCanvas } = require('canvas'); function renderImage() { const bgCanvas = createCanvas(800, 600); ...
1081589071526240296
read ECONNRESET Error: 2 messages
lament cobalt For some reason, my IP keeps getting blacklisted even though I am allowing my cluster to access any IP. Can anyone help...
1081590299358412983
How do i Keep button load animation? 8 messages
marble cairn Hello i want to make my button keep the load animation and do not show any text until i resolve my request and change th...
1081589071526240296
Connection Timed Out 3 messages
winter iris I've moved my bot to a vps (linode) and for some reason I'm getting a connection timed out error? My index.ts file is ju...
1081589253575823411
client.player.getQueue is not a function 6 messages
glossy marsh I dont understand how it is not a function but oh well, so the problem is that only the play command works and others do...
1081589071526240296
mongodb save error? 5 messages
rain hound https://luastate.embed.fail/w5er7uh0.png https://luastate.embed.fail/s2oebsix.png these values should be the same code...
Weird mongodb error 39 messages
dapper roost I'm getting this error out of nowhere Error: https://pastebin.com/XEprvax6 Code: https://pastebin.com/F8bPhQuy I'm free ...
1081589071526240296
weird javascript bug 14 messages
crystal hare Can someone who knows JS enlighten me on why this is happening? This is not supposed to happen only one event should be ...
1081589071526240296 1081589253575823411
Yarn add discord.js error 16 messages
formal granite I have recieved an Yarn error with follow command in cmd:"yarn add discord " Error: ` error This project's package.json ...
1081589071526240296
Slash Command Register 1 messages
lethal hare Hello, I need your help that will help to create registrars/teams and separate files for commands, there is an understan...
mongodb help 3 messages
placid field i want to create a array that would be the same as the user's profile, imagine if i used create, i only neeed to provide...
react dashboard 38 messages
flint pine i want to implement a react dashboard into my bot. i know its best to run this on a separate process to the bot however,...
1081590447216017570 1081589253575823411
Typescript memory leak - discord.js 33 messages
glacial ice Typescript question: Hello this is how my code looks like (roughly): - src/index.ts - src/Utils/*Util.ts now i wanna ...
not sure how to do database caching 105 messages
placid field I want to cache the database, when updating user data also update it in the cache then i can take the data from the cach...
Define const for use in array. 7 messages
spice kernel Is there a way to define a const for use in an array? I can send my code if needed. I'm new to JS, sorry if this is a st...
1081589071526240296
bot creating multiple instances?? 56 messages
dusty fox for some reason my bot just began starting multiple processes every time it was ran, I don't really know how to explain ...
deploying slash commands properly 44 messages
placid field i have a issue where my old slash commands are staying there forever, so i want to make a function that refreshes a guil...
saving data to bot per guild 45 messages
placid field how do i make it so my economy bot saves data like: currency emoji, prefix, user data, shop, etc per guild like ik to ...
running the "!help" command with "!h" and/or other 27 messages
placid field Hello, i will refer to it as sub-commands, where you can run the !help command by also typing !h or !cmds, the way i th...
extracting userids from mentions with messageCreate 25 messages
placid field hello
The problem with the output of the event to the console via a custom method 4 messages
charred tundra Hi, I had a problem with displaying the event name in the console. I have a small class for the `boxen` library in which...
1081589253575823411
messageCreate event 32 messages
placid field <@167988857046827010>
Convert a hexcode string to hexadecimal literal number 10 messages
umbral crow Basically I have a hexcode (let's use "#FFFFFF" as an example). How can I convert this to 0xFFFFFF and have it typed as ...
1081589253575823411
mongodb 10 messages
terse jetty hi, I have a problem, when a user leaves and rejoin for the first time the invite doesn't count but when he does it the ...
1081589071526240296 1081590299358412983
telegraf... yep... 4 messages
fickle rock ```js function loadCommands(folderPath) { fs.readdirSync(folderPath).forEach(file => { const filePath = path.join(...
looking to hire someone who is good with node.js 2 messages
upper pine I’m not sure if I’m allowed to ask but I’ve been looking to find someone I can hire to help with my current discord bot ...
Getting response data with looping 8 messages
true vessel hey guys - so i have this json response here, i have a thing where u can do 10, 25, 50, or 100, but i how would i make i...
1081589071526240296 1081590447216017570
Compiling issues 15 messages
winter iris No idea what im doing wrong or what the issue is but for some reason every time I compile my typescript with `tsc` and t...
1081589071526240296 1081589253575823411
Cast to Number failed for value "NaN" (type number) at path "cash" 0 messages
Building custom messages from discord-giveaways package 4 messages
severe sandal I'm building an discord giveaway system using https://discord-giveaways.js.org/global.html#GiveawayStartOptions. Now can...
Looking for update information regarding Discord Bots being added to user accounts 3 messages
river crown Heard something about this a while ago, can't seem to find anything recently so not sure if someone any any update / oth...
alternatives for globpromise? 1 messages
sudden sleet const slashCommands = await globPromise( `${process.cwd()}/src/slashCommands/*/*/*.js` );
1081589071526240296
Foreach 3 messages
storm finch ```leaderboard.forEach((entry, index) => {``` ```ReferenceError: entry is not defined at Object.execute (C:\Users\Ge...
1081589071526240296 1081590299358412983
max message length issue 12 messages
dusty fox ```js const OPENROUTER_API_KEY = 'REMOVED'; const MAX_MESSAGE_LENGTH = 2000; module.exports = { name: 'ai', descri...
Buffer.concat() size error 1 messages
sage moss ```js Buffer.concat(buffers)```
1081589071526240296
Fixing POST Requests from IPS 7 messages
nimble estuary ```js const { SlashCommandBuilder } = require('@discordjs/builders'); module.exports = { data: new SlashCommandBuil...
database not being updated 19 messages
buoyant vine ```js model<IConfig>('config', new Schema<IConfig>({ id: String, roles: Object }); const data = await model.findOne...
1081589253575823411 1081590299358412983
Is my Node.js not working? 4 messages
cerulean escarp I need a second idea of what might be going on inside my project
1081589071526240296