other-js-ts

4043 threads · Page 26 of 81

Giving the favorite food of the user selected 18 messages
brave meadow Hi! so im trying to make so when i select a user in a slash commands, it tells me the users favorite food but here is wh...
Why doesn't the button appear? 16 messages
fast wigeon Why doesn't the button appear?
1081589071526240296
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...
1081589071526240296 1081590447216017570 1081589253575823411
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....
1081589071526240296
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...
1081589071526240296 1081589253575823411 1081590299358412983
bot dashboard 1 messages
rough tulip I wanted to make a bot dashboard for a public bot i'm developing. Is there a common way to have a connection between the...
1081589071526240296 1081590447216017570
Cat command help 37 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...
Dumb question in JavaScript: Class Reflection? (Answered) 2 messages
1081589071526240296
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...
1081589071526240296 1081590299358412983
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...
1081589071526240296
Error: Image format not supported 18 messages
1081589071526240296
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...
1081589071526240296
Giveaway command. 1 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...
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
1081589071526240296
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...
1081589071526240296
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...
1081589253575823411
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 ...
1081589071526240296 1081589253575823411
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');
1081589071526240296
Tag command problem 12 messages
bold kiln code:- ```ts data: new SlashCommandBuilder() .setName("tag") .setDescription("Search the documentation for s...
1081589253575823411
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...
1081589071526240296
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...
1081589071526240296
number being doubled when saved 5 messages
1081589253575823411 1081590299358412983
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...
1081589071526240296 1081590299358412983
Where should I implement redis caching in my data flow? 1 messages
willow bloom Here’s a question… I’ve built an app that uses an api to fetch, create, modify and delete data as the api will server th...
1081589071526240296 1081589253575823411 1081590299358412983
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081590447216017570
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...
1081590447216017570
Upsert mongoose not saving to database 1 messages
river silo ```js await networkSchema.findOneAndUpdate({ guildId: interaction.guild.id }, { $set: { channelId: channel.id } }, { $up...
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...
1081589071526240296
Bot is joining channel but not playing music 2 messages
1081589253575823411
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...
1081589071526240296 1081589253575823411
Which approach is better? 5 messages
lethal lantern 1. ```ts import type { RESTPostAPIApplicationCommandsJSONBody, AutocompleteInteraction, CommandInteraction } from 'disco...
1081589253575823411
How to resize and compress a video and send it back? 1 messages
mint willow I used sharp before for images to convert them into `webp` and decrease their file size by sacrificing just a little bit...
1081589071526240296 1081589253575823411
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...
1081589071526240296
Can't install npm items 2 messages
Connect Timeout Error on vscode 1 messages
1081589071526240296
Improve class typing 4 messages
1081589253575823411