other-js-ts

3634 threads · Page 25 of 73

export a module but when import it it shows object 15 messages
fair panther how to get it as value ? ```const date = new Date(); const actualTime = date.toLocaleString("zh-CN", {timeZone: "Asia/Sh...
No addition of the user and his currency total in the DB. 3 messages
tacit flame Hello, I have a problem writing values to my SQLite DB. I'm following the guide to create a currency system on discordj...
Node.js Database
DB ERROR 2 messages
frosty timber How to solved this
Node.js
Express server locking up? 9 messages
haughty pecan i'm probably doing something incredibly stupid but i'm using rpc/websockets in order to communicate between a server hos...
Bard command 10 messages
light plank https://pastebin.com/M0dQLFu9 Im always getting the error "prompt is required" and im always have a prompt
Node.js Browser
What's the best way of waiting for extremely long periods of time? 6 messages
rich loom I'm making a calendar app where users can schedule events. What's the best way to wait for extremely long perdios of tim...
Node.js
Does anyone know why it's like this? 3 messages
pulsar slate ```javascript //index.js const profile = require("./src/commands/profile"); console.log(typeof profile) //function ``` ...
Node.js
Best way to find Value with Key name in Object 18 messages
hardy python How would you write a function to find a value given a dynamic key name. ```JS data: { "code": "AA", "name": "...
OAuth Help 2 messages
minor moat Hello, I was wondering if there are any up to date documentation pertaining to `Discord OAuth` and `Discord.js`. On disc...
Node.js
what would be the best way to generate an invoice like this? 5 messages
karmic widget generate dynamic pdf with help of html/css? OR is it possible to use this image as template then write over this image?...
Node.js
TypeError: makeDatabaseSearchRequest is not a function 14 messages
ionic walrus Ok I have a bit of a weird one. Im making a system that takes a users input from a command and then passes it into an ap...
Typescript Error in debounce function 33 messages
onyx bear So I had this debounce implementation before switching to TS. ```js const debouncedSync = debounce(sync, 2000); function...
Node.js TypeScript
How to use Airtable within slash commands? 2 messages
shell vigil I'm trying to make use of the airtable API with Discord.js, and having some issues with getting it to work. Haven't foun...
mongodb save data on async endpoint 2 messages
misty minnow Hello, my bot is handling reservations from a slashcommand, i have the issue when 2 people are using the command at the ...
Issue fetching files with import() 3 messages
empty willow Does someone mind explaining to me why on earth this wont work? ```js for(const file of commandFiles) { // Add e...
better-sqlite3 50 messages
acoustic crypt ```/home/container/node_modules/bindings/bindings.js:135 throw err; ^ Error: Could not locate the bindings file. Tri...
Node.js
shopify api 9 messages
karmic widget does someone has experience with the API and can help me implement something? is it possible to generate invoice for a...
Node.js
Issues with dpeendiices or smth in diresnode.com (paterdcal demon via docker) 8 messages
long stirrup As you can see in th eimage somethign si wrong I ran npm i but nothing happened.
augmenting websocket interface still gives typescript error 13 messages
onyx bear I'm adding a new property to my WebSocket instance, which gives a ts error cuz that property doesn't exist in the WebSoc...
Node.js TypeScript
Discord API error [50035] : invalid form body 10 messages
winter cape this started to appear when i changed my slash command code which is this ```js // Slash const slashcommands = []; read...
Node.js
Error 2 messages
pallid timber I was trying to make a command handler but I'm getting this error. And I cant figure out why
Is there any translating API thats free and don't break discord's TOS 8 messages
light plank title
Switching from JS to TS 15 messages
royal silo Hello, I have been thinking of switching from JS to TS lately (including my DJS projects), but I don't know where to sta...
TypeScript
_ _ 4 messages
7/24 discord.js online 8 messages
open dawn I want to keep my bot active 24/7 for free. It doesn't work. Replit is said to be free, but the bot goes away.
Fix no storing in let variable 16 messages
surreal furnace I have now a src/index.js with ```js const {client} = require("./client"); const eventListener = require("./event/listen...
Node.js TypeScript
How do I fix this issue? 3 messages
ripe totem It is saying "[nodemon] app crashed - waiting for file changes before starting..." and some other stuff. I don't know ho...
{"error":"Error during login"} After login with discord 20 messages
cobalt shuttle As the title suggest I'm trying to make the login with discord thing, but I can't find how
Node.js Browser
Twitch Interaction 15 messages
grand totem Hello, i need help with twitch integration to bot. I want send a message when defined user go live. How can i do it? (i ...
Node.js Browser
Custom Notifications with RPC 11 messages
weak talon I'm trying to get notifications for when certain keywords are sent. I've tried to loop through the list of channels in e...
Node.js
typescript so dumb with generic type constraints in classes??????!!??!! ☠☠☠☠ 21 messages
true furnace im hopping from go back to typescript after a year ```ts interface Options { name: string } type AnyProps = { [key...
Help... 6 messages
How do you make it so you can register slash commands in a folder or the whole slash command folder 3 messages
lament cobalt ```js const arrayOfSlashCommands = [ //code for registering commands in a folder ]; ```
Node.js
npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: not found: makenpm ERR! gyp ERR! stac 4 messages
edgy timber ```{ "name": "projectphil-bot", "version": "1.0.0", "description": "*This is the official repository for projectph...
TypeScript Help 3 messages
pale jolt I'm trying to learn ts by converting one of my project, the permission here is typed as `PermissionResolvable` and I get...
TypeScript
Try Catch 7 messages
heady vortex Why is the bot offline even though I have used try catch?
attachment 3 messages
wintry jackal ``` const image = { inlineData: { data: Buffer.from(fs.readFileSync("cookie.png")).toString("base64"), mimeTyp...
Fetch() method Put problem 23 messages
daring reef I have a problem, this can't want to edit my json file. I have json-server. ```js const respond = fetch("http://...
Node.js Database
Database Advice 6 messages
pastel blaze Hey people, I have made my own api and would like to have some way to track data, and activity. I would like to make a w...
Database
Eslint problems 7 messages
rain trail hey 👋 How can I easily change eslint rules from discordjs.guide - <https://discordjs.guide/preparations/setting-up-a-l...
Cached DJS commands? 3 messages
vernal hollow Hello! I'm making a Plants vs Zombies bot with a command called `/plantme` that gives a random list of plants to pick i...
How can i use regex for links in .includes on a message? 4 messages
wooden knoll I found a regex online, but i need help to find out how i can use it in .includes. The regex is `^((http|https)\:\/\/)?(...
Mongoose helping 4 messages
ionic ibex Could someone help me write a mongoose aggregate query? For reference, I have a user document that is created for every ...
Database
High Ram and CPU utilization (Fixed) 26 messages
flint stirrup I uptime **4 bots** and while 3 of them use ram at normal levels, one of them can output at least **50MB** and *up to* *...
Node.js
How to check if randomServerWithAd blacklisted the server that is running this command. 13 messages
sick geyser ```js module.exports = { data: new SlashCommandBuilder() .setName("partner") .setDescription("Partne...
Node.js Database
Markdown Error 3 messages
fair elm ```js const { Events, inlineCode, codeBlock } = require('discord.js'); module.exports = { name: Events.InteractionC...
Node.js
Adds undefined while i didn't ask for it 2 messages
icy copper Code: https://srcb.in/gVhmAPWuwe, https://srcb.in/aoEL4ZymhO When i create, it creates a new embed as i want. But when i...
Node.js
fetching data 3 messages
misty minnow Hello, somone with skill issues here. to use my discord bot you have to register with your player name of a game. unfort...
Node.js TypeScript
TypeError: Cannot convert undefined or null to object 3 messages
split crown that's the error i get when executing this script, at the keys() function ``` const attachments = [{ url: 'https:/...
Dumb mongoose error 2 messages
sharp crystal hi all, probably dumb question but I dont work with mongo DJS V14 NodeJS v v21.6.0 Am I connecting the wrong way? Ive r...
Node.js Database