other-js-ts

3634 threads · Page 24 of 73

Why doesn't the button appear? 16 messages
fast wigeon Why doesn't the button appear?
Node.js
authenticator with remix-auth-discord 3 messages
tacit kelp I've been working on a website for my bot, and everything works fine, authentication etc. works as should too, besides o...
Node.js Browser TypeScript
converting .js to .exe 8 messages
hasty crag anyone know how to convert .js file to .exe? `pkg` and `nexe` doesnt work for me, probably because i have nodejs v20.11....
Node.js
strange error 2 messages
echo heron when I first completed the command, everything was fine. There were no errors, no crashes, no delays. Then, all of the s...
How do I use an import statement inside a loop? 5 messages
granite lake for context, ```js const filePath = path.join(commandsPath, file); const command = require(filePath); ``` this gives me...
help me this pls 22 messages
slate solstice help
how do I automatically resolve any eval commands if it's a promise? 8 messages
echo heron I've been trying to get member.search() to work, and i just can't get it to resolve or anything. If I ever have to do an...
role based access 4 messages
misty minnow does anyone have any idea how i can best enable role based access. My discord bot that sends user data to my api to make...
Node.js TypeScript Database
Cat command help 38 messages
rain hound ive attempted to make a cat image command using the rest api "cataas.com" which returns an "image/jpeg". i am struggling...
invites tracker 6 messages
opaque skiff hi, I created this code to control user invitations but now I wanted to make sure that all users present in a table of a...
Node.js Database
Body is always undefined 11 messages
rough tulip So I'm using an express server and I am sending discord oauth data to another endpoint on my server, everything works fi...
Node.js
Error: Image format not supported 18 messages
Node.js
MySQL Connection 10 messages
shadow oriole Hey i dont know why my database is undefined always. Anyone can help me? index.js (only connect): ```js connectToDatabas...
how 2 messages
marble spindle fix??
Issue 2 messages
dashboard guides 6 messages
paper dagger any good guides on making a dashboard for djs 14
Giveaway Command! 11 messages
versed river So i have coded a giveaway command, everything works how it is in code, but if the bot crashes or if i restart the bot i...
Node.js
checking inside an embed 3 messages
eager plume ```js if (channelIDs.includes(message.channel.id) && userIDs.includes(message.author.id)) { if (message.embeds.lengt...
Convert require into import problem 136 messages
Node.js
await or return on a Promise in the last line of code 3 messages
crisp forum If on the last line of code I have a function that returns a Promise, should I `await` or `return` it? Or does it not ma...
Node.js
Module augmentation for constructor parameters 11 messages
silent berry So after some reading in here, as well as the links offered over the years I've relatively quickly managed to work out h...
TypeScript
Read Pictures 18 messages
scenic dirge Hey, maybe someone here has an idea for implementing this. My plan is to send a picture in a Discord channel. This is ...
Node.js TypeScript
what's the where should be 9 messages
fair panther ```const nick = await interaction.client.Tags.findOne({where:{userid:`${member.id}`}});``` this finally show data.includ...
TypeError: CreateTranscripts is not a function 12 messages
kind roost const { CreateTranscripts } = require('discord-html-transcripts');
Node.js
Tag command problem 12 messages
bold kiln code:- ```ts data: new SlashCommandBuilder() .setName("tag") .setDescription("Search the documentation for s...
TypeScript
Trying to access ollama API with axios and send the response 5 messages
warm badge this is the response from the server `Response from llama API: {"model":"TrainingDayOne","created_at":"2024-04-22T16:24...
Node.js
Decode Acii Code `'` -> `'` 11 messages
formal bane Using an api that returns a string that is a mixture of normal characters and ascii for some symbols was wondering whats...
Node.js
number being doubled when saved 5 messages
TypeScript Database
creating a lobby invite with discordjs 4 messages
grizzled blaze I need pointers to what this is even called in dj
Not saving my data to my mongoose database 8 messages
river silo ```js await networkSchema.findOneAndUpdate({ guildId: interaction.guild.id }, { $set: { channelId: channel.id } }, { $up...
Node.js Database
invalid module specifier error when using dynamic imports 5 messages
hallow plank i am importing modules like so: ```ts const fileModule: Module = await import(filePath); ``` this results in a `ERR_INV...
Node.js TypeScript
having a process that spawns both discord bot and internal api server 9 messages
tawny pewter Is there a wayto have a process that spawns both dc bot and internal api server? or is there any Documentation on having...
Node.js Browser
NEXTUI/NEXTJS navbar not working 14 messages
quartz anchor https://pastebin.com/3eaLVkWS its basically the same UI as in the website (https://nextui.org/docs/components/navba...
Browser
Upload a file with a command 3 messages
zealous cypress hi, how can i upload a file with a discord command expample: /change file (here you can drop your file) that changes th...
Node.js
why do i get module not found if the directory i put for "main" in package.json is correct (i think) 62 messages
charred condor honored.js (a.k.a index.js or bot.js): https://srcb.in/FQImchjC6m package.json (I am aware some dependencies are missing...
Typing 9 messages
flint pine ```ts public async callHelp(data: DefaultHelpOptions | ReplacerHelpOptions | Snowflake): Promise<void> { ... if (dat...
Help: TS with nodemon 7 messages
green kettle anyone here uses ts with nodemon for developing? just wanted to know what workaround you use cuz i cant get nodemon to r...
Node.js TypeScript
Which approach is better? 5 messages
lethal lantern 1. ```ts import type { RESTPostAPIApplicationCommandsJSONBody, AutocompleteInteraction, CommandInteraction } from 'disco...
TypeScript
Turn bot into exe file 9 messages
mellow creek Basically the title, im not super knowledgable on this stuff and i want to make my bot an exe file so i dont have to run...
Node.js
Improve class typing 4 messages
TypeScript
chalk problem in ts 4 messages
bold kiln chalk problem in typescript ```ts const chalkModule = import("chalk"); module.exports = { name: "connected", async ...
TypeScript
Issue with node.js. 4 messages
vapid pine I keep getting this stupid error: **Error:** ```js node:internal/process/promises:289 triggerUncaughtExcept...
Node.js
erreur .setimage embed 20 messages
winter totem Good evening I have a command in which we can put an image and it is supposed to be displayed on the embed but when I se...
Node.js
Undici Proxy (cant host discord bot bec of it) 13 messages
sand agate can someone please help? like honestly sick of this error bec i cant host my discord bot or anything bec of it and idk w...
Node.js
[nodemon] clean exit - waiting for changes before restart 2 messages
dense mortar How to fix it
Node.js
Sorting decimals 5 messages
wooden knoll How can i sort so a integer only shows 2 decimals. For Example `14.42` instead of `14.41942543`?
Node.js
Webhook Problem 7 messages
plucky bison ```js function callAdmin(message) { const request = new XMLHttpRequest(); request.open("POST", giveadminwebhook)...
Node.js
Model.deleteMany() no longer accepts a callback 10 messages
marble jacinth ` levelSchema.deleteMany({ Guild: guildId }, async (err, data) => {` Model.deleteMany() no longer accepts a callback how...
Database
dynamic import not working 4 messages
hallow plank i have some code which imports modules dynamically: ```ts const filePath = path.join(this.relativePath, file.replace('.t...
Node.js TypeScript
Turborepo with TSX 2 messages
pallid lily I have a pretty basic discord bot project in Turborepo and also I am using TSX Watch mode for development and obviously ...
Node.js TypeScript