other-js-ts

3634 threads · Page 21 of 73

Hosting a bot on NAS Synology 37 messages
prisma abyss Does anybody know how and please show me the details and steps if possible. Thanks.
problem with fetch 17 messages
crimson kite There was an error: TypeError: Cannot read properties of undefined (reading 'fetch')
how to add inner glow? 2 messages
quartz zephyr anyone know how to add inner glow in canvas on a image
Node.js
[Mongoose] .findOne is not a function 10 messages
azure pine Hello! # Command ```js async execute(interaction) { const data = await schema.findOne({ User: interaction.user.id }...
Changed to a VPS and now cant access mongodb 98 messages
How do I get rid of 5 moderate severity vulnerabilities? 4 messages
west flint npm audit fix did not work
serialising sets in javascript 14 messages
pine kiln Is there any way to serialise a set so that it can be rebuilt without having to rehash the entries and rebuild the struc...
env file not working 9 messages
ancient spruce just following a tutorial and isn't working out
Node.js
[Discord API] Question: What is "Time to reset" when fetching 5 <sth> equals to? 7 messages
marsh widget How is this time calculated? Is there a fixed value and what is it equal to? For example, I try to get 6 users, but I ge...
new to using js for databases - why isnt this working? 6 messages
hidden pawn ```javascript var connectionString = 'private' var pgClient = new pg.Client(connectionString) pgClient.connect((err) => ...
Node.js Database
realm database 19 messages
opaque skiff hi, I want make a bot with the list of all players in a game so I get the realm database of the game but I now I need to...
Node.js Database
how to fix this error? 9 messages
MongoDB Help 5 messages
mortal terrace hey I am using this `const helpCounts = await client.crossServer.startsWith(helpCount_, { sort: '.data'})` and I get ...
Database
handling collected data from interactions 4 messages
misty minnow How would I handle the data which I get from my different interactions. I seperated every interaction to its own handler...
Problem when i try to use keepAlive wth MongoDB 6 messages
crimson kite (async () => { try { mongoose.set('strictQuery', false); await mongoose.connect('mongodb...
Node.js Database
permissions arent set for cmd 72 messages
hidden pawn ```javascript async function editcmdperms(roleid) { const options = { method: 'PUT', headers: { ...
Node.js Browser
the try statement isnt working and the code doesnt continue 10 messages
hidden pawn code: ```javascript try { db.serialize(() => { db.run( "CREATE TABLE rblxgroup (groupid BIGINT NOT NULL,...
Node.js Database
How to do an escape sequence with strings 2 messages
cursive shoal I have the following code in my index.js file: ```javascript const RESET = "\033[0m"; const BOLD = "\033[1m"; const UNDE...
cant require sqlite3 for some reason 10 messages
hidden pawn ```javascript const sqlite3 = require('sqlite3').verbose(); ^ ReferenceError: require is not defined in...
Node.js Database
Canvacord 4 messages
raven stratus https://sourceb.in/YVqz3ndwtY Getting a [2024-05-29 00:04:37] [ERROR] TypeError: Spotify is not a constructor at Obj...
Node.js
How can I save a role from **RoleSelectMenuBuilder**s? 3 messages
twilit cave ## SCHEMA ```js const {model, Schema} = require('mongoose'); let mgmtRole = new Schema({ Guild: String, RoleI...
Node.js Database
Array to parameter conversion 18 messages
rain mantle Lets say I have an array `const arr = [-3,3,9]` and I have a function which has 3 parameters and I need to pass in all t...
Node.js
help-code 19 messages
fast wigeon ```js const url = `https://discord.com/users/@me/guilds/${response.idnewserver}`; const options = { ...
Node.js
Canvas error 9 messages
raven stratus https://sourceb.in/5YRvsjKNfA Any clue what's wrong? Getting a ```Error: Unsupported image type at setSource (/home/...
Node.js
how to using async in modal feedback 13 messages
fair panther ```js interaction.awaitModalSubmit({ time: 50_000, filter }) .then(interaction =>{...await ...})```
Class Variables 17 messages
rain mantle ```js let message; class Test { //message = "Hi"; constructor() { someFunction.load(model, async function() { ...
Node.js
npm install i error 5 messages
earnest owl whenever I try to install npm I get this error
Node.js
Selfbots attack 8 messages
random iron Good evening everyone, I came here after asking the question on another server, and the answer was split/mixed. I'm an...
export a costant 12 messages
opaque skiff hi, I have these 3 costants and I want export all in another file, how can I do it? ```js module.exports = { data: //m...
Node.js
pass a constant 15 messages
opaque skiff hi, need to pass these constants in a class of another file, do you know how can I do it? ```js async function withdra...
Node.js
Time expiration using mongoose 13 messages
severe sandal Anyone knows how to use an time expiration with mongoose when the time is 0 i want to deleted this specific creation: ...
Fetching Data from Website to Discord Bot 3 messages
plain cape Hello, Is there a way to fetch the data from this site: https://dashboard.pokemonrevolution.net/dashboard and make the c...
Node.js Browser Database
realm database 17 messages
opaque skiff hi, anyone know how can I convert a .realm file to a JavaScript one?
Does somebody know somthing about speakeasy / 2fa verification 4 messages
Node.js
Return only text channels and not categories 8 messages
winter iris How would I only show text channels and not categories as well? ```ts { type: ApplicationCommandOptionType.Subcomma...
TypeScript
SQL database query question 2 messages
Node.js Database
return a message 8 messages
opaque skiff hi, in a file I have an `if` followed by an `else`, I want that when the else is activated the bot sends a string to ano...
Node.js
Invalid_Grant error for OAuth 2.0 50 messages
junior remnant Goal for me was to initiate a redirect (in the server side) on my web app after I receive user information from discord ...
Node.js Browser
Database Error 12 messages
blissful nebula ```js const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const mysql = require('mysql2/promise'); con...
Node.js Database
error 3 messages
Node.js
Code Review // Logger Util 5 messages
ocean glade Is there any way I can improve this utility class ```ts import chalk from 'chalk'; enum LogType { DEBUG = "debug",...
JSON Data 54 messages
uneven nacelle So, I have this variable that is a map for a slash command. Since it's a map, to keep the same data, I import that ("use...
Node.js TypeScript Database
Best way to have a 'plugin' system for listeners and slash commands? 3 messages
hallow plank I want to make something similar to D.PY's cogs system and [disnake-ext-plugins](https://github.com/DisnakeCommunity/dis...
Node.js TypeScript
Help me 24 messages
silent terrace ```js Error: Failed to convert JavaScript value `Undefined` into rust type `String```
Array.push doesn't work in loop 22 messages
compact zodiac ```ts const warnData = { guildID, userID, t...
Node.js TypeScript Database
MongoDB Storing Save / Setting data for my Discord bot 155 messages
slow sierra Currently im looking though a tutorial on how to run a Database to store information for my discord bot to save and load...
Node.js Database
Typing issue with RegisterCommand.ts 10 messages
ocean glade I'm trying to follow the Discord.js register command script, however I have an issue with the typing. This is the err...
sqlite busy 15 messages
fair panther ```js promises2 = response.map(member => { const botst = member.user.bot; if (botst == true){ return...
moment 2 messages
buoyant vine ```js console.log(objData.date.toDateString(), moment.utc().toDate().toDateString()); console.log(moment.utc().isSame(mo...
Possible memory leak 7 messages
pine gazelle Unknown what's causing it. I start the application then about 5 minutes later I get the following error, then it shuts d...
Node.js TypeScript