other-js-ts

4043 threads · Page 23 of 81

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) => ...
1081589071526240296 1081590299358412983
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...
1081589071526240296 1081590299358412983
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 ...
1081590299358412983
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...
1081589071526240296 1081590299358412983
permissions arent set for cmd 71 messages
hidden pawn ```javascript async function editcmdperms(roleid) { const options = { method: 'PUT', headers: { ...
1081589071526240296 1081590447216017570
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,...
1081589071526240296 1081590299358412983
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...
1081589071526240296 1081590299358412983
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...
1081589071526240296
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...
1081589071526240296 1081590299358412983
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...
1081589071526240296
redirect to "bounce back" or "previous page" 1 messages
radiant wasp ```js app.use(async (req, res, next) => { if (!/(?<ignoredPaths>login|logout|callback|api)/i.test(req.path)) req.sessi...
1081589253575823411
help-code 18 messages
fast wigeon ```js const url = `https://discord.com/users/@me/guilds/${response.idnewserver}`; const options = { ...
1081589071526240296
Canvas error 9 messages
raven stratus https://sourceb.in/5YRvsjKNfA Any clue what's wrong? Getting a ```Error: Unsupported image type at setSource (/home/...
1081589071526240296
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() { ...
1081589071526240296
npm install i error 5 messages
earnest owl whenever I try to install npm I get this error
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
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 47 messages
plain cape Hello, Is there a way to fetch the data from this site: https://dashboard.pokemonrevolution.net/dashboard and make the c...
1081589071526240296 1081590447216017570 1081590299358412983
realm database 17 messages
opaque skiff hi, anyone know how can I convert a .realm file to a JavaScript one?
Wanted to Fetch Data from Website to Discord Bot 1 messages
plain cape Hello, Is there a way to fetch the data from this site: https://dashboard.pokemonrevolution.net/dashboard and make the c...
1081589071526240296 1081590447216017570 1081590299358412983
Does somebody know somthing about speakeasy / 2fa verification 5 messages
1081589071526240296
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...
1081589253575823411
SQL database query question 3 messages
1081589071526240296 1081590299358412983
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...
1081589071526240296
Invalid_Grant error for OAuth 2.0 49 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 ...
1081589071526240296 1081590447216017570
Database Error 12 messages
blissful nebula ```js const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const mysql = require('mysql2/promise'); con...
1081589071526240296 1081590299358412983
error 3 messages
1081589071526240296
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...
1081589071526240296 1081589253575823411 1081590299358412983
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...
1081589071526240296 1081589253575823411
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 21 messages
compact zodiac ```ts const warnData = { guildID, userID, t...
1081589071526240296 1081589253575823411 1081590299358412983
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...
1081589071526240296 1081590299358412983
Self hosted proxy 1 messages
tired tendon Is it easy to create a self hosted proxy for Discord webhooks? Instead of using discordapp.com/api/webhooks you would us...
1081589071526240296 1081590299358412983
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081590299358412983
error when starting bot 64 messages
daring delta ode:fs:1515 const result = binding.readdir( ^ Error: ENOENT: no such file or directory, scan...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081589253575823411
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...
1081589071526240296 1081590299358412983
How can I only allow one SCHEMA? 38 messages
twilit cave ```js const { SlashCommandBuilder, EmbedBuilder, PermissionsBitField, embedLength } = require('discord.js'); const link...
1081589071526240296
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...
1081589071526240296