other-js-ts

4043 threads · Page 43 of 81

how can i create client.??? 10 messages
deft cloud i wanna create some shortcut like client.err() client.send() etc. how can i do?
null and 'null' values.... 21 messages
novel scarab Why is this giving me null if the statement is true? `const userExists = (info.friendcode !== 'null' && info.friendcode...
1081589071526240296 1081590447216017570 1081590299358412983
Problem with connecting to MongoDB 2 messages
tiny sequoia ```js require('dotenv').config(); const { Client, IntentsBitField } = require('discord.js'); const mongoose = require('m...
1081589071526240296 1081590299358412983
Securely download an image to my server from a user 4 messages
1081589071526240296 1081590299358412983
Guys I want to access output but I can't await this in any way: 16 messages
normal cove code: https://srcb.in/BDEgj14vL5
1081589071526240296 1081590299358412983
how to handle specific errors 18 messages
hazy wedge my friend was messing around and i recieved an error. how do i handle this specific error in my djs command handler? ```...
1081589071526240296
open a .sh file via js? 13 messages
quaint steppe i want to be able to run a script on my linux server from my phone which has no way of accessing it, so being able to (t...
sql db counting error 1 messages
exotic tide Im creating a wins command that uses sql (im aware more people use mongodb) anyway Im using a count to get a total amoun...
Getting module not found :\ 9 messages
echo pier here is my code ```js const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js"); const fs = require("f...
1081589071526240296
Discord.JS and MySql2 and sequalize 3 messages
loud gull try { // equivalent to: INSERT INTO tags (name, description, username) values (?, ?, ?); const t...
1081589071526240296 1081590447216017570 1081590299358412983
Member role add on join 16 messages
rose apex I know i am doing something wrong. I am new to js, well about 16 years out of practice. I dont know half the stuff I use...
I need Help making it so my bot can do an embed for a server please 3 messages
spring hinge I need help making it so my bot can do an embed in visual studios code if you can help me dm me asap please
1081589071526240296
Discord Bot Music not playing 2 messages
1081589071526240296
How do I get timestamp of exact time in sql? 91 messages
normal cove ```js sql = `CREATE TABLE IF NOT EXISTS Modlogs (Guild_id VARCHAR(255), User_id VARCHAR(255), Moderator_id VARCHAR(255)...
1081589071526240296 1081590299358412983
pulling from the config file with a name i pulled from message? 15 messages
maiden hare I'm trying to grab the Emoji name and then pull the name from the config file how the best way to do this ```json "flags...
Editing JSON Files through fs 8 messages
feral kelp I'm editing json files but sometimes it gets like the picture I uploaded in the attachment
quick.db fetch datas (leaderboard) error. 8 messages
worldly rose So i encountered this error: ```js /home/runner/Learning-Programming/node_modules/quick.db/out/index.js:200 ...
1081589071526240296 1081590299358412983
pls fix 6 messages
autumn rock thank you
1081589071526240296
Implementing console.log but for interaction.reply 34 messages
cedar otter So umhh if i were to lets say make an eval() command and want the output to be like how console.log shows in the console...
super.user() error 30 messages
opal leaf ```import fs from "fs"; import Client from "../Interfaces/Client.js"; import Command from "../Interfaces/Command.js"; im...
Guys in my code the 1 is being logged before the query gets executed completely 5 messages
normal cove I want it that first the query gets executed completely then it goes outside the callback function
1081589071526240296 1081590299358412983
Using a single mongoose connection for multiple client instances 1 messages
shut sail How can I retain the current setup I have for a database without having multiple connections to it due to sharding? ```j...
1081590299358412983
Prettier VSC Extension 2 messages
crisp forum What's are the best settings for Prettier?
1081589071526240296
Optimization 5 messages
crisp forum Would this be considered as optimization? .
1081589071526240296
I haven't text in my canvas 3 messages
mystic creek ```js const { SlashCommandBuilder } = require('discord.js'); const { createCanvas, loadImage } = require('@napi-rs/canva...
1081589071526240296
Syntax Error NPM Package: node-os-utils 24 messages
near wren Hey so I want to make a Command that shows Stats about the Bot but sadly I get an error and I dont know how to fix it......
Detect similar usernames through JS (Normalise String) 18 messages
nimble wagon Hello guys! there has been some trouble in some servers where users were attempting to impersonate users by changing the...
1081589071526240296 1081589253575823411
TypeError: db.fetch is not a function 27 messages
worldly rose So I'm using quick.db as well as i used `db.fetch()` method and i get the error: ```js TypeError: db.fetch is not a func...
1081589071526240296 1081590299358412983
Create category under existing category 2 messages
1081589071526240296
Help with the REST API 11 messages
analog thicket I followed this tutorial https://discordjs.guide/popular-topics/canvas.html#adding-in-text and now I want to send the im...
1081589071526240296 1081589253575823411
How can i better console? 3 messages
deft cloud i wanna create a conole like --------------------------------------- | Command Type | Name | True/false | | Command Typ...
Create Own Event 24 messages
deft cloud i wanna create my own event like ```client.on("myOwn", (etc, etc, etc) => {})``` how can i do?
1081589071526240296
Cannot find module 5 messages
dreamy sinew ```cmd [2023-12-01 04:48:30] error: Error: ai_processing [2023-12-01 04:48:30] error: Error: Cannot find module '../../t...
1081589253575823411
property doesnt exist 27 messages
willow kestrel how do i fix this
Method of getting most recent index on MongoDB 1 messages
mossy pelican is there a way to get a certain users most recent index and if so can you please post it bellow
How to get the returned values? 28 messages
eternal tundra ```js const {b_Success, r_Timeout, t_Timeout} = await timeoutMember(author.id)``````Property 'b_Success' does not exist ...
1081589253575823411
Help 2 messages
rough fiber So, i locally hosted a bot on my computer. I switched it to a hosting. I use the /setup command which initiates the db t...
Error when transpiling 4 messages
1081589253575823411
MySql connection problem 24 messages
Help node-fetch error 5 messages
rough fiber TypeError: Only absolute URLs are supported at getNodeRequestOptions (C:\Users\User\Desktop\Holaclient manager\Manag...
1081589071526240296 1081590447216017570
Leaderboard rankings not displaying accurate numbers 15 messages
carmine basin I want to display a users ranking for the leaderboard in the footer section of the embed so that even if theyre not list...
1081589071526240296
Hello i want some help with my bump command the cooldown isn't working the bot isn't saving the new 2 messages
vital yacht Hello i want some help with my bump command the cooldown isn't working the bot isn't saving the new bump time ( no error...
1081589071526240296
Pls help 3 messages
tame walrus Node error
Image editing 2 messages
sullen prairie How to edit a image in node js
How to properly shutdown a bot? 35 messages
gentle sable I want to e.g. execute `await client.destroy();` upon doing Ctrl+C so that my Discord.js bot can properly shut down. Sin...
Code continues even though I have await in front of the delay 33 messages
eternal tundra ```js if ( (!contentLC.startsWith("!something") || !contentLC.toLocaleLowerCase().includes("something"...
MySQL 3 messages
zealous imp Hi! I have some problem with mySQL (mariaDB) connections. I use slash command in my bot and separated it to different fo...
1081589071526240296 1081590299358412983
Canvas no rendering text 19 messages
desert quartz Hi, i'm on djs V14. Here is my code :
1081589071526240296
Editing JSON from exported JS files 1 messages
unreal ridge Is there a way I can edit the JSON exported from a JS file? For example: `config.js` ```js module.exports = { test: "...
1081589071526240296
running ts code in vsc 9 messages
prime shoal How could I run ts code instead of compiling it to javascript in vsc?
1081589253575823411