other-js-ts

4043 threads · Page 40 of 81

Weird Prisma error 2 messages
how do i do guildMemberAdd to set up a cammnd to set it up pls help 2 messages
autumn rock pls
1081589071526240296
{RESOLVED} Error of my code 68 messages
stuck yew How I can use `SQlite3` package ? For register all informations. I don't use one time.
1081589071526240296 1081590299358412983
MongoDB 8 messages
canvas image not loading 5 messages
autumn hare ```js const { Client, GatewayIntentBits, ActivityType, Events, Collection, Partials, EmbedBuilder, AttachmentBuilder } =...
1081589071526240296
null values in database 15 messages
remote cosmos Hullo there... it's been a long time... i am having a little difficulty with working on node js and sqlite3... i am gett...
1081589071526240296 1081590299358412983
Birth Problem 55 messages
covert jackal Hello, I have a problem, I made a birthday system and when it's the birthday the bot has to send "happy birthday" in a c...
1081589071526240296 1081590299358412983
"invalid emoji" 12 messages
rapid burrow the script where i add the emojis ```js function RevealButtons(buttons) { for(let i = 0; i < buttons.length; i++) { ...
1081589071526240296
sqlite error 14 when attempting to write 14 messages
rain turret Whenever I try to write to my sqlite database i get error 14: errno: 14, code: 'SQLITE_CANTOPEN' Can't figure out what...
1081590299358412983
const foldersPath = path.join(__dirname, 'commands'); 5 messages
dim shadow const foldersPath = path.join(__dirname, 'commands'); That line is in my bot/src/index.js, and i wanna go to bot/command...
Discord bot without slash command 7 messages
dim shadow I would like to get a reminder how to do a command (not a slash command) with discord.js v14 please.
A bot for recording a conversation in a channel 8 messages
buoyant sapphire Hello everyone I want to implement a bot that will connect to the channel on command and record the conversation, after...
1081589071526240296
mongoose help 12 messages
wet turret Hi, I did this command, for my economy system, it's about being able to sell objects from the inventory, the error I hav...
Defaults for object parameters 2 messages
restive cipher I am trying to set the parameters to be optional with a default setup, I tried to make this but it shows cannot read pro...
1081589071526240296
Djs Collections and their memory consumption 14 messages
cedar otter Hey so i have a slash command that fetches data from an url and caches it for a day. I'm a bit concerned about the memor...
1081589071526240296
Event emitter emits twice 17 messages
night cosmos ```js client.emit("loggerAdd", loggerData) console.log("emitted") ``` ```js client.on("loggerAdd", () => { console.lo...
1081589071526240296
Syntax error 2 messages
vague garden Why do I get the syntax error `Declaration or statement expected. [Ln 81, Col 11]` when using [this code](<https://paste...
RankCard Editing 27 messages
pm2 start not work 4 messages
gleaming storm how i use pm2 start i tried like this pm2 start C:\Users\Administrator\Desktop\warn_bot But that not working how to fin...
TypeError: Cannot read properties of undefined (reading 'startsWith') 10 messages
rapid burrow ```js function RevealButtons(buttons) { for(let i = 1; i < buttons.length; i++) { let button = buttons[i]; con...
1081589071526240296
auto complete 3 messages
coarse lichen im not sure why my autocomplete isnt populating but it says "failed to load" in discord when i start typing in my string...
1081589071526240296
adding an exception to a cooldown 29 messages
fresh viper generated.add(member.id); setTimeout(() => { generated.delete(me...
.catch() question 11 messages
crisp forum I have recently noticed a bunch of developers using `.catch(() => {})` instead of `.catch(() => null)` Is there any diff...
1081589071526240296
hi I'm trying to make a system for config the welcome message 2 messages
crimson quest hi I'm trying to make a system for config the welcome message is to start is the autorole with a command /setup-bvn to r...
filter results by alphabetical sorting 5 messages
dense igloo Do you have any idea how I can do this? To add each result of my individual filterNameMap to my loop? filterNameMap ret...
1081589071526240296
TypeError: Cannot read properties of undefined (reading '1') 6 messages
rapid burrow ```js client.on("interactionCreate", async (interaction) => { if (!interaction.isChatInputCommand()) return; ...
Axios will make an API call to reddit on my laptop, but when I push the code to my VPS it errors 10 messages
frosty dawn Function Code: ```js async function fetchRedditPost(client) { try { const response = await axios.get('https:...
1081589071526240296
nodejs execution window pops up when forking process running on pm2 7 messages
sage lagoon idk why but if i fork a procces runing using pm2 on windows, I have a nodejs execution window that opens then closes. If...
glob help 3 messages
shy trench ```ts import { glob } from "glob"; const commandFiles = await glob(join(__dirname, "../commands", "**/*{.ts,.js}")); con...
1081589071526240296 1081589253575823411
Pretty-ms error (Command Cooldown) 1 messages
ruby robin ```js if (typeof cooldown.get(identifier) !== 'undefined' || typeof regularCooldown.get(identifier) !== 'undefined') ret...
1081589071526240296
String is not being edited and doesn't change with desired condition 3 messages
royal hamlet Hey guys, i'm having some problems with an interaction i'm trying to handle with my bot, here's a brief explanation of t...
How to fix "OpenAI API error: TypeError: openai.chat.completions is not a function" error? 5 messages
lofty hedge ``` if (msg.author.bot) return; if (msg.content.startsWith('!ss talk')) { const userMessage = msg.content.s...
role problem 13 messages
opaque skiff hi, when I go to run the command the bot give me always the phrase "You are not a server booster", what I did wrong? ```...
code issue 9 messages
wicked pebble Heya its not saving to mongodb and I have no clue why no errors or anything and the code seems correct Code: https://s...
subcommands error 16 messages
opaque skiff this is the code: ```js const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const accountSchema = requi...
npm 4 messages
glossy spire Hello. I have a little question. I published a package on npm with a specific version, but soon deleted it. When I publi...
How can I use absolute Paths using Discord JS? 3 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
1081589071526240296
How can I use absolute Paths using DiscordJS? 11 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
1081589071526240296
How can I use absolute Paths using DiscordJS? 2 messages
upper crypt Hey, I tried many things and cant get Absolute Paths working. So my Folder Structure is attached. I would just need a...
1081589071526240296
guildMemberAdd - Canvas 1 messages
trying to figure out how to use try properly 7 messages
fossil mountain im a bit confused on how to use try, new to javascript so sorry if i explain this poorly, ```javascript if (interactio...
database problem 8 messages
opaque skiff hi, I know what is wrong but I have no idea how can I solve, can anyone help me? ```js const { SlashCommandBuilder, Emb...
1081589071526240296 1081590299358412983
Markdown Question 5 messages
1081589071526240296 1081589253575823411
No work discord.js v14 to new MessageInput 1 messages
subtle ocean if(commandName == '###') { const ownerId = interaction.guild.id; const row = new ActionRowBuilde...
1081589071526240296
Problem in Canvas 4 messages
Collector for Webhook Interactions 2 messages
candid plume Hello i'm trying to build a fully operationnal workaround around the Interaction thing in Discord.js (i have already don...
1081589071526240296 1081589253575823411
mongoose help 32 messages
silent citrus I think my code is not fetching data from mongoose
Needing boilerplate for node.js Sequelize integration with discord.js 0 messages
gdpr and storing ids 6 messages
thin shuttle hey lads not sure where to ask this but are there any restrictions for storing user ids and message ids on a database fo...
1081590299358412983
ween i use - it does work ```jsclient.on("messageCreate", async msg => { if (msg.content.startsW 9 messages