DanielBA
DanielBA
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Thanks, after downloading them all on my pc, compressing and extracting now i only seem to have missing import errors
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
doing that right now
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Done and Done. it prints undefined for some reason.
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
https://pastebin.com/BSQFwp7F error:
Uncaught rejection at: TypeError: ContainerBuilder is not a constructor
at Object.execute (/home/container/LiveAlertsTest/Commands/Staff/newSetup.js:11:25)
at module.exports (/home/container/LiveAlertsTest/Events/interactionCreate.js:6:17)
at Client.<anonymous> (/home/container/LiveAlertsTest/index.js:72:53)
at Client.emit (node:events:507:28)
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/home/container/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/home/container/node_modules/@discordjs/ws/dist/index.js:1190:51)
Uncaught rejection at: TypeError: ContainerBuilder is not a constructor
at Object.execute (/home/container/LiveAlertsTest/Commands/Staff/newSetup.js:11:25)
at module.exports (/home/container/LiveAlertsTest/Events/interactionCreate.js:6:17)
at Client.<anonymous> (/home/container/LiveAlertsTest/index.js:72:53)
at Client.emit (node:events:507:28)
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/home/container/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/home/container/node_modules/@discordjs/ws/dist/index.js:1190:51)
package.json:
{
"name": "multi-loader",
"version": "1.0.0",
"description": "LA",
"main": "loader.js",
"scripts": {},
"author": "Jay Williams",
"license": "ISC",
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"axios": "^1.6.7",
"cheerio": "^1.0.0-rc.12",
"discord.js": "14.19.1",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"nodemon": "^3.0.1",
"rss-parser": "^3.13.0",
"sapphire": "^0.0.3",
"sequelize": "^6.37.0",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.22"
},
"nodeVersion": "23.1.0",
"file": "loader.js"
}
{
"name": "multi-loader",
"version": "1.0.0",
"description": "LA",
"main": "loader.js",
"scripts": {},
"author": "Jay Williams",
"license": "ISC",
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"axios": "^1.6.7",
"cheerio": "^1.0.0-rc.12",
"discord.js": "14.19.1",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"nodemon": "^3.0.1",
"rss-parser": "^3.13.0",
"sapphire": "^0.0.3",
"sequelize": "^6.37.0",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.22"
},
"nodeVersion": "23.1.0",
"file": "loader.js"
}
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Done, same error. not sure about the sapphire one as well but it seems to be the newest version
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Moved it back eariler to try both. The error happens on 14.19.1 as well
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
{
"name": "multi-loader",
"version": "1.0.0",
"description": "LA",
"main": "loader.js",
"scripts": {},
"author": "Jay Williams",
"license": "ISC",
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"axios": "^1.6.7",
"cheerio": "^1.0.0-rc.12",
"discord.js": "14.19.0",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"nodemon": "^3.0.1",
"rss-parser": "^3.13.0",
"sapphire": "^0.0.3",
"sequelize": "^6.37.0",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.22",
"discord-api-types": "0.38.1",
"@discordjs/builders": "1.11.1"
},
"nodeVersion": "23.1.0",
"file": "loader.js"
}
{
"name": "multi-loader",
"version": "1.0.0",
"description": "LA",
"main": "loader.js",
"scripts": {},
"author": "Jay Williams",
"license": "ISC",
"dependencies": {
"@napi-rs/canvas": "^0.1.44",
"axios": "^1.6.7",
"cheerio": "^1.0.0-rc.12",
"discord.js": "14.19.0",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"nodemon": "^3.0.1",
"rss-parser": "^3.13.0",
"sapphire": "^0.0.3",
"sequelize": "^6.37.0",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.22",
"discord-api-types": "0.38.1",
"@discordjs/builders": "1.11.1"
},
"nodeVersion": "23.1.0",
"file": "loader.js"
}
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
the ssh keeps timing out before I can do a thing
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Not sure how can run the command in the host
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Alright, Changed the entire code. Now I recieve an error in the following line:
const container = new ContainerBuilder();
const container = new ContainerBuilder();
saying this is not a constructor again
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Can't find any player to view it, even online ones
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Can't open the video, seems to be an unsupported file type
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
how should I write my componets variable then so this example will work?
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Oh, it seems like he is using a different package
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Used it as well, same thing occurs. And weirdly, the tutorial I tried did work for him
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
This is the entire file
const { SeparatorSpacingSize, TextDisplayBuilder, RoleSelectBuilder, ChannelSelectBuilder, Seperator, ButtonStyle, ButtonBuilder, ComponentBuilder, TextDisplay, ContainerBuilder, Client, GatewayIntentBits, ActivityType, EmbedBuilder, SlashCommandBuilder, Routes, NewsChannel, ChannelType, PermissionFlagsBits, PermissionsBitField, Embed, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, OverwriteType } = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("newsetup")
.setDMPermission(false)
.setDescription("פקודת סטאפ חדשה")
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute(interaction, client) {

const components = new ComponentBuilder()
.setComponents([
new ContainerBuilder()
.setComponents([
new TextDisplay("Testing")
])
.setColor(1146986)
])


await interaction.reply(components.toJSON());
},
};
const { SeparatorSpacingSize, TextDisplayBuilder, RoleSelectBuilder, ChannelSelectBuilder, Seperator, ButtonStyle, ButtonBuilder, ComponentBuilder, TextDisplay, ContainerBuilder, Client, GatewayIntentBits, ActivityType, EmbedBuilder, SlashCommandBuilder, Routes, NewsChannel, ChannelType, PermissionFlagsBits, PermissionsBitField, Embed, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, OverwriteType } = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("newsetup")
.setDMPermission(false)
.setDescription("פקודת סטאפ חדשה")
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute(interaction, client) {

const components = new ComponentBuilder()
.setComponents([
new ContainerBuilder()
.setComponents([
new TextDisplay("Testing")
])
.setColor(1146986)
])


await interaction.reply(components.toJSON());
},
};
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 4/27/2025 in #djs-questions
Components v2 error
Currently tried to connect using an ssh
22 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 10/28/2024 in #djs-questions
Bot Preformance - Sending the same message to many servers
Rather weird, because it says that the rate limit is 10,000 in 10 minutes. I know for a fact taht we sent much more than that many times already, around 50 and even 100 thousand.
9 replies
DIAdiscord.js - Imagine an app
Created by DanielBA on 10/28/2024 in #djs-questions
Bot Preformance - Sending the same message to many servers
I understand that if a bot is verified, the rate limit is more flexible, isn't it?
9 replies