other-js-ts

4043 threads · Page 42 of 81

Discord Rich Presence feature 2 messages
wispy minnow I want to add a little extra feature on Discord's Spotify rich presence, but I'm not finding anything about editing a al...
How can i make loop for create a new embed every 10 obj in the array?? 4 messages
uneven lodge pls answer with example code
CANVAS ASAP 20 messages
primal wave can someone help me i want to make a canva display a name like a title and the event date using discord.js slash command...
Embedding a image 5 messages
peak maple So ive made a discord bot and an api for the website so when you do /upload attachment it saves the image in a folder, i...
1081589071526240296 1081590447216017570
Canvas Help 1 messages
molten urchin Can more than one color be used in a text in Canvas? I pull the text from the API "&4Hello &aWorld&1!" A text like thi...
is there a way to make this so if there is 5 in a row, it creates a new line for the next five and s 6 messages
warm summit # is there a way to make this so if there is 5 in a row, it creates a new line for the next five and so on? this is my ...
error 8 messages
deft cloud ``` const userDetail = await userSchema.findOne({userId: message.author.id}) || {hunt: 0, battle: 0, owo: 0, battleXp...
unexpected token in json at position 0 4 messages
1081589071526240296
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...
1081589071526240296
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...
help me 1 messages
crimson quest I have a problem with my code I get this error ReferenceError: suggestion is not defined at Object.run (/home/contai...
1081589071526240296
new line 8 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 ...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
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...
1081589071526240296
error sql, slash cmd 2 messages
bleak garnet ```js const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); module.exports = { category: 'economy', ...
1081589071526240296 1081590299358412983
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 ...
1081589071526240296
auth doesnt worked 2 messages
dull edge even though is added
1081590447216017570 1081589253575823411
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...
Guild Update 1 messages
slim copper Hi! I am unable to update the guild (server), I want to update server name and server icon but i can not do it, i think...
1081589071526240296
I create a 'sending select menu' 1 messages
last knot But If I choise a option the bot dosent respons. Can someone tell me what is missing ty🙏🏼🌚
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...
1081589253575823411 1081590299358412983
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("...
1081589071526240296
How to save images inside a local storage? 93 messages
1081589253575823411
Getting the correct index of a permission bit 36 messages
somber mango ```js Object.keys(PermissionsBitField.Flags)[PermissionsBitField.Flags.Administrator]); ``` This outputs `"PrioritySpeak...
canvas welcome embed 1 messages
mint ruin Hello, I use the canvas module, I am currently working on the events guildMemberAdd.js, so that the message is sent in e...
1081589071526240296 1081590299358412983
How to make a download-image button or link in discord? 56 messages
eternal tundra .
1081589253575823411
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...
1081589071526240296
DB not updating 1 messages
1081589071526240296 1081590299358412983
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 ...
1081589071526240296
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...
1081589071526240296
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 ...
1081589071526240296 1081590299358412983
weird parseInt behavior 32 messages
discord linked to excel 53 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...
1081589071526240296
Unsupported grant type 33 messages
raven roost ```js app.get('/callback', passport.authenticate('discord', { failureRedirect: '/login', }), async (req, res) => { c...
1081589071526240296
What am I doing wrong? 20 messages
eternal tundra ```js await new WarnedMember({ Reporter: user.id, targetMemberId: targetMessage.author.id, ...
1081589253575823411 1081590299358412983
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...
1081589071526240296 1081589253575823411
Cassandra DB bot connection problem 4 messages
bold kiln ```js const { Client: CassandraClient } = require('cassandra-driver') require('dotenv').config(); const { ASTRA_CLIENT_I...
1081589071526240296 1081590299358412983
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...
1081589071526240296
help 9 messages
slim pelican node:internal/modules/cjs/loader:1147 throw err; ^ Error: Cannot find module 'C:\Users\espin\Downloads\Botsito\Comm...
1081589071526240296