other-js-ts

3634 threads · Page 22 of 73

voice multiguilded issus 5 messages
tawdry lagoon hey i have here when i setup the system for example in test1 server it works 100% all things but if i setup it in anothe...
Node.js Database
error when starting bot 64 messages
daring delta ode:fs:1515 const result = binding.readdir( ^ Error: ENOENT: no such file or directory, scan...
Node.js TypeScript
Glob returning empty string array 10 messages
willow bloom Does anyone know why glob would be returning an empty string array for the following code? ```typescript const commandF...
Node.js TypeScript
Parsing Error 9 messages
mossy kayak When a user enters an input with punctuation `(')`, the bot will break due to a MySQL error as shown below. How can I fi...
Node.js Database
How can I only allow one SCHEMA? 38 messages
twilit cave ```js const { SlashCommandBuilder, EmbedBuilder, PermissionsBitField, embedLength } = require('discord.js'); const link...
Node.js
How do I send sculed messages using cron please 27 messages
viscid umbra HI im not to sure how to work with cron and commands to end a timed message every midnight, im a little bit confused be...
Node.js
db.run is not a function (better-sqlite3) 73 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...
Node.js Database
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...
Node.js
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...
Browser
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?
Node.js TypeScript
2 problems need help on 87 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...
Node.js TypeScript
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...
Node.js
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...
TypeScript
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?
Node.js TypeScript
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...
TypeScript
Memory leak with canvas npm package? 4 messages
river salmon ```js const { createCanvas } = require('canvas'); function renderImage() { const bgCanvas = createCanvas(800, 600); ...
Node.js
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...
Database
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...
Node.js
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...
TypeScript
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...
Node.js
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 ...
Node.js
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 ...
Node.js TypeScript
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 ...
Node.js
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,...
Browser TypeScript
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...
Node.js
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 26 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...
TypeScript
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 ...
TypeScript
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 ...
Node.js Database
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...
Node.js Browser
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...
Node.js TypeScript
Cast to Number failed for value "NaN" (type number) at path "cash" 17 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...
Foreach 3 messages
storm finch ```leaderboard.forEach((entry, index) => {``` ```ReferenceError: entry is not defined at Object.execute (C:\Users\Ge...
Node.js Database
max message length issue 12 messages
dusty fox ```js const OPENROUTER_API_KEY = 'REMOVED'; const MAX_MESSAGE_LENGTH = 2000; module.exports = { name: 'ai', descri...
Fixing POST Requests from IPS 7 messages
nimble estuary ```js const { SlashCommandBuilder } = require('@discordjs/builders'); module.exports = { data: new SlashCommandBuil...