BMmarci1234
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 10/28/2024 in #djs-questions
It doesnt work.
So I have a discord bot that always when someone deleting a message it could not find the deleter. can anyone help me?
the code: https://sourceb.in/DtistNYGW7
8 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 10/6/2024 in #djs-questions
I have an error that i cannot solve.
This error is just a console error but it works fine for me to the but, there is obv a problem.
My code: https://sourceb.in/Jd8ZsB3U2d
My error: Error handling modal submission: DiscordAPIError[10062]: Unknown interaction
at handleErrors (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async BurstHandler.runRequest (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:831:23)
at async _REST.request (D:\dcbot321312\node_modules@discordjs\rest\dist\index.js:1272:22)
at async ModalSubmitInteraction.reply (D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:115:5)
at async Client.<anonymous> (D:\dcbot321312\index.js:71:11) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1292418026485977242/aW50ZXJhY3Rpb246MTI5MjQxODAyNjQ4NTk3NzI0MjpnQjlCUlBoMXB2N01VWWJ4b01XMXhUN0d0Tkk1bTl2MW13aGxPMnE2bjVnUTFoQ1JGeWZTUVVMeFJaa0xNOFk3OEFvM3ZsR3hxWnFmbkU1cHUxRUEyaXFYY1JsUndyWU00VTNWMkl1NHN6TTk0R3hWZERMWTBZOXF0QlRmTGZ1OQ/callback'
}
6 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 10/5/2024 in #djs-questions
Error that i cannot fix.
I know that i asked help for this once but i still need help. This is my codes: index.js https://sourceb.in/LrDkNyzADH
commands\contest.js https://sourceb.in/BO3kmjr7MH
And the error I got: D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.reply (D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105:46)
at InteractionCollector.<anonymous> (D:\dcbot321312\commands\contest.js:82:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'InteractionAlreadyReplied'
}
Node.js v22.8.0
7 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 10/4/2024 in #djs-questions
I got an error that I dont understand
This is my codes: index.js https://sourceb.in/LrDkNyzADH
commands\contest.js https://sourceb.in/BO3kmjr7MH
And the error I got: D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105
if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied);
^
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
at ButtonInteraction.reply (D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105:46)
at InteractionCollector.<anonymous> (D:\dcbot321312\commands\contest.js:82:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'InteractionAlreadyReplied'
}
Node.js v22.8.0
12 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 10/1/2024 in #djs-questions
I have an error that I cannot solve
My code is: https://sourceb.in/nXRmM0SEUW
And the error is: at Task._execution (D:\atermibot\index.js:35:36)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
14 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/23/2024 in #djs-questions
Hi! I have an error.
15 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/22/2024 in #djs-questions
Some error that I do not understand
I have a code and it has a few problems. Even if it is not the console saying it, but you see something bad in it, tell me.
The console error is:
Unexpected error: TypeError: (intermediate value).setTitle(...).setDescription(...).addField is not a function
at askQuestion (D:\atermibot\index.js:130:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async askQuestion (D:\atermibot\index.js:113:21)
at async askQuestion (D:\atermibot\index.js:113:21)
at async askQuestion (D:\atermibot\index.js:113:21)
at async askQuestion (D:\atermibot\index.js:113:21)
at async Client.<anonymous> (D:\atermibot\index.js:142:9)
And the code is: https://sourceb.in/ot4siSAXRQ
18 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/22/2024 in #djs-questions
No idea how to solve this.
So I have a bot. This bot does a few other features that works, but the one that I have a problem with is where the !startquiz and the answers. First of all I want it to immediatly say that you can only choose A,B,C,D. And I want it that if the quiz hasnt been completed in 7 minutes then it should say the time up. And when I complete it it just says that choose A,B,C,D.
If you dont understand here is what I mean. Here is the:
Where the user said other than A,B,C,D: await message.author.send("Helytelen válasz. Kérlek, válassz A, B, C vagy D közül.");
And where the time ran out: await message.author.send("Időtúllépés történt. Kérlek, indítsd újra a kérdőívet a !startquiz paranccsal.");
My code: https://sourceb.in/9UOSgmADHl
11 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/21/2024 in #djs-questions
I dont know if i used it wrong or made an error in it
So I have an index.js file that has lots of features, but the one that i have error in, is that someone dm's the bot !startquiz and it starts a quiz for them. When I dm the bot it says nothing. I don't know if I did something wrong, but help me. These are the guilds I use: GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessageTyping
And these where the dm quiz part is: client.on(Events.MessageCreate, async (message) => {
if (message.content.toLowerCase() === '!startquiz') {
if (message.guild) {
message.author.send(
Áhh... Mr | Ms ${message.author.username}! Lássuk, mely házba kerülsz pár rövid kérdéssel!
).catch(console.error);
let index = 0;
const answers = [];
const askQuestion = async () => {
if (index < questions.length) {
const question = questions[index];
let embed = new EmbedBuilder()
.setTitle(Kérdés ${index + 1}
)
.setDescription(question.question)
.addFields(
{ name: "A", value: question.options.A },
{ name: "B", value: question.options.B },
{ name: "C", value: question.options.C },
{ name: "D", value: question.options.D }
)
.setColor("RANDOM");12 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/16/2024 in #djs-questions
Unexpected error for me.
So I have a slashcommands and commands folder where I keep the slashcommands and the prefix commands. And in the slashcommands the commands are bugging. Like all the old commands I used before updating everything, there are 2 of them and neither of them work and the new ones i made today doesnt even work, but in the commands it works. Could anyone explain to me what I did wrong. Here is the index.js: https://sourceb.in/u33AJ7UBKo I think the problem is in here
3 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/13/2024 in #djs-questions
I have an error that I cannot solve.
So I have a warn.js file that has an error. The file is https://sourceb.in/6Hrc2IpLUt and the error is: TypeError: Cannot read properties of null (reading 'id')
at Object.execute (D:\Happybottesttobeofficial\slashcommands\warn.js:26:89)
at Client.<anonymous> (D:\Happybottesttobeofficial\index.js:52:19)
at Client.emit (node:events:520:28)
at InteractionCreateAction.handle (D:\Happybottesttobeofficial\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (D:\Happybottesttobeofficial\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (D:\Happybottesttobeofficial\node_modules\discord.js\src\client\websocket\WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (D:\Happybottesttobeofficial\node_modules\discord.js\src\client\websocket\WebSocketManager.js:232:12)
at WebSocketManager.emit (D:\Happybottesttobeofficial\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31)
at WebSocketShard.<anonymous> (D:\Happybottesttobeofficial\node_modules@discordjs\ws\dist\index.js:1190:51)
at WebSocketShard.emit (D:\Happybottesttobeofficial\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31)
66 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 9/1/2024 in #djs-questions
I dont know the error
So I have a code with an error I dont understand and I dont know how to solve it. the setup.js https://sourceb.in/o5RbAKpNEC and the error: https://sourceb.in/KKIutqsbGI
37 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 8/18/2024 in #djs-questions
Error that I cannot solve
Basically I got an unexpected error.
Codes: index.js https://sourceb.in/soOMadCNaf
deploy-commands.js https://sourceb.in/x3uEymAmqo
commands/weather.js https://sourceb.in/wNcJ0oQ7es
Error:
node:internal/modules/cjs/loader:1222
throw err;
^
Error: Cannot find module 'commands\weather.js'
Require stack:
- D:\atermibot\deploy-commands.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (D:\atermibot\deploy-commands.js:30:19)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'D:\atermibot\deploy-commands.js' ]
}
Node.js v22.5.1
5 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 8/1/2024 in #djs-questions
Application didnt respond
When I start the bot with node index,js and after node deploy-commands.js no error, but when I type in the command in discord the application didnt answer.
My codes:
commands/
add.js https://sourceb.in/zfzAWmmtKk
authorticketpermission.js https://sourceb.in/oQSFhFDXQ4
close.js https://sourceb.in/4qEvve4oWD
help.js https://sourceb.in/WX9jIws7hF
setup.js https://srcb.in/0OYqz7E5uq
config.json (token, guildId, clientId)
deploy-commands.js https://sourceb.in/zyLEjnTbzg
index.js https://srcb.in/AWTlNrzI9O
(other files and folders that doesnt matter)
10 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 7/27/2024 in #djs-questions
So my commands doesn't work.
On the cmds there is no error, but on discord it says: The application did not answer.
Here are every code that is with the commands.
deploy-commands.js https://sourceb.in/PZlJoC9CKM
commands
for users
8-ball.js https://sourceb.in/zV5uoOm4gy
echo.js https://sourceb.in/k2j4p1vZxa
flip.js https://sourceb.in/ShZQYE52mD
hello.js https://sourceb.in/eakyehC7F2
help.js https://sourceb.in/m2q9voQQDE
ping.js https://sourceb.in/ReJS01sB17
poll.js https://srcb.in/CZSqZuMsYH
moderation warn.js https://sourceb.in/eSc9uOY29H index.js https://sourceb.in/pmjdPJs1pN
moderation warn.js https://sourceb.in/eSc9uOY29H index.js https://sourceb.in/pmjdPJs1pN
6 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 6/11/2024 in #djs-questions
Help me with an unexpected error!!!
my D:\testtestbot\deploy-commands.js: https://sourceb.in/o6TK1zBkQJ and my D:\testtestbot\commands\8-ball.js: https://sourceb.in/nzmSq84Hhi
31 replies
DIAdiscord.js - Imagine an app
•Created by BMmarci1234 on 6/2/2024 in #djs-questions
Can anybody help me?
my warn.js code is: https://sourceb.in/In5H2k2pXo
and my unwarn.js code (is not removing the warn, so it isn't working) https://sourceb.in/vhYDX69F6W
It always says that it is removed but idk why it isn't removed....
2 replies