other-js-ts

3634 threads · Page 38 of 73

unexpected token in json at position 0 3 messages
Node.js
help me 17 messages
crimson quest I have a problem with my code I get this error ReferenceError: suggestion is not defined at Object.run (/home/contai...
Node.js
how can i check first number in a string? 5 messages
deft cloud i have text like = "asdsadsad 120 qwewq 123123 + 123120" i wanna check first number (120) or second (123123) how can i ...
Getting Data from command files 8 messages
wheat gulch After playing around and google and chatgpt i got around all requires and made the discordjs doc stuff into es module co...
new line 9 messages
maiden hare ```js const message = `This Is New Line` ``` i need to add ```%0A``` at the end of each line with out adding it to the ...
Node.js
Module not found: Can't resolve 'zlib-sync' 2 messages
craggy karma ERROR : ```js Module not found: Can't resolve 'zlib-sync' ``` Code : ```js const {Client, Events, GatewayIntentBits} =...
meme command error 2 messages
dim talon can someone help me with this error? ``` const { EmbedBuilder } = require("discord.js"); const colors = require(`../colo...
Node.js
Scheduled Job 2 messages
surreal jay Have this, I can run the function on launching the bot, but I can't seem to get the reoccurring schedule to work, idea...
Node.js
how to know if channel is created by bot or by discord user 3 messages
slim copper Hi! I need to make a method in which i am firing the event and i want to fire events only when discord bot creates new c...
Node.js
error sql, slash cmd 2 messages
bleak garnet ```js const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); module.exports = { category: 'economy', ...
Node.js Database
How I can use the clash of clans api 3 messages
last knot Sry I am a beginner programmier and Iits my first time to work with one. I have a stringoption and am try to compare it ...
Node.js
auth doesnt worked 2 messages
dull edge even though is added
Browser TypeScript
Problem with a navbar using JS 4 messages
cyan trout i know it's not exactly about dsjs but it's about js, so i made a website and on the main page i can see the button like...
Help with ts class generics 2 messages
ancient leaf https://tsplay.dev/WKb8zm This code works but I would like to remove the getMethods for example: ```ts farm.getDog().b...
Guild user bots 7 messages
peak maple uhh how can i fetch the bot servers the user linked to that server after the user authorizes with the bot on the webpage...
String variable not changing 31 messages
paper vault I have this code that reads an RSS every minute and does something with it. Before so I check that it isn't the same id...
Hey I try to edit my code that my path structure is diffrent from the tutorial 14 messages
last knot Here is the discord js tutorial code: ```js const foldersPath = path.join(__dirname, 'commands'); const commandFolders =...
How to read the size of my project? 4 messages
eternal tundra I host my bot on Cybrancee and have a storage of 512mb I'm going to store images etc. I want to get notified when I reac...
TypeScript Database
Modifying object name using an variable. 20 messages
worldly rose Hi, so how can i edit an object with number addition. Because I've 9 buttons objects with each one has after the `button...
Problem saving to file using fs | NO ERRORS 11 messages
hazy wedge for some reason theres a problem with this: ```js let jsonString = JSON.stringify(config, null, 2); fs.writeFileSync("...
Node.js
How to save images inside a local storage? 92 messages
TypeScript
Getting the correct index of a permission bit 38 messages
somber mango ```js Object.keys(PermissionsBitField.Flags)[PermissionsBitField.Flags.Administrator]); ``` This outputs `"PrioritySpeak...
How to make a download-image button or link in discord? 57 messages
eternal tundra .
TypeScript
TypeScript 11 messages
misty minnow Hello guys maybe someone can explain me how i use the correct type for the member object. Currently im doing this ```js ...
Missing } in template expression 6 messages
feral kelp it says `Missing } in template expression` on this line: ```js description: `${price[interaction.guild.id].boosts.OneM.2...
Node.js
Tagging a role via http 6 messages
mellow dirge Is it possible to tag a discord role when sending a message via http only using a discord bot? It sends the message bu...
'./messages.json' is not a valid file? 14 messages
narrow plaza `Error: ENOENT: no such file or directory, open './messages.json'` ```js client.on(Events.GuildMemberAdd, async (member...
Making a 2-players game, XO 2 messages
worldly rose Hi, i was wondering how i can make a 2-players turns system, for example: the current turn is for ❌ player and after he ...
Node.js
Something similar to d.js docs bot? 13 messages
narrow plaza I'm making a bot for a programming support server, and it would be really nice to have commands that searched docs of, n...
Node.js
Making a line chart for server joins 10 messages
wet tree So every time a user joins my server I add the join to the database and I am now using canvas and charts.js to generate ...
Node.js Database
weird parseInt behavior 31 messages
discord linked to excel 54 messages
solid seal hi everyone, i'm trying to have a excel database using google sheets linked to my discord bot, i've seen some options li...
Node.js
Unsupported grant type 33 messages
raven roost ```js app.get('/callback', passport.authenticate('discord', { failureRedirect: '/login', }), async (req, res) => { c...
Node.js
What am I doing wrong? 20 messages
eternal tundra ```js await new WarnedMember({ Reporter: user.id, targetMemberId: targetMessage.author.id, ...
TypeScript Database
Extending a interface and changing the property type to a extending type 6 messages
placid dust I have a interface `Component` with a property `interaction` with the type `MessageComponentInteraction`. In my second i...
Node.js TypeScript
Cassandra DB bot connection problem 4 messages
bold kiln ```js const { Client: CassandraClient } = require('cassandra-driver') require('dotenv').config(); const { ASTRA_CLIENT_I...
Node.js Database
Canvas Font not loading 2 messages
valid pike I was following this tutorial to create a leaderboard for my app https://discordjs.guide/popular-topics/canvas.html#man...
Node.js
help 9 messages
slim pelican node:internal/modules/cjs/loader:1147 throw err; ^ Error: Cannot find module 'C:\Users\espin\Downloads\Botsito\Comm...
Node.js
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...
Node.js Browser Database
Problem with connecting to MongoDB 2 messages
tiny sequoia ```js require('dotenv').config(); const { Client, IntentsBitField } = require('discord.js'); const mongoose = require('m...
Node.js Database
Securely download an image to my server from a user 3 messages
Node.js Database
Guys I want to access output but I can't await this in any way: 16 messages
normal cove code: https://srcb.in/BDEgj14vL5
Node.js Database
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? ```...
Node.js
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...
Getting module not found :\ 9 messages
echo pier here is my code ```js const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js"); const fs = require("f...
Node.js
Discord.JS and MySql2 and sequalize 3 messages
loud gull try { // equivalent to: INSERT INTO tags (name, description, username) values (?, ?, ?); const t...
Node.js Browser Database
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
Node.js
How do I get timestamp of exact time in sql? 92 messages
normal cove ```js sql = `CREATE TABLE IF NOT EXISTS Modlogs (Guild_id VARCHAR(255), User_id VARCHAR(255), Moderator_id VARCHAR(255)...
Node.js Database