Yido
Yido
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Yido on 5/25/2024 in #djs-questions
the bot is not sending message when member joins
i've tried to making a event that when a user joins the server the bot will send a message but it doesnt seem to be doing anything or give any error. i have tried to console log to see if it detects the member joining but it also doesnt do that too
7 replies
DIAdiscord.js - Imagine an app
Created by Yido on 4/9/2024 in #djs-questions
Whenever my slash command gets used for 2 times it gives an error
node:events:492
throw er; // Unhandled 'error' event
^

DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async ModalSubmitInteraction.reply (C:\Users\Yiğit\Desktop\Catto\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Client.<anonymous> (C:\Users\Yiğit\Desktop\Catto\events\suggestion_modal.js:38:21)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Your suggestion was received successfully!',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1227237570832891984/aW50ZXJhY3Rpb246MTIyNzIzNzU3MDgzMjg5MTk4NDpCOGhsWjY2ME43NXFUWEw1SFpCRkkwbjhXb2FQRUdnTlhFTnJMcmpvMHZFUzNFa3hTSDlHR2VUTmY3V0h0dEQyR2pUSVBOQU0zQ0NEZGhNc2JuckpOZVV4TVZYQkk2SjVrdXJQcnduMk10MWxKNGt4TG5Qc1ZRa2w3dkt2RG1EWQ/callback'
}

Node.js v20.10.0
node:events:492
throw er; // Unhandled 'error' event
^

DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:826:23)
at async _REST.request (C:\Users\Yiğit\Desktop\Catto\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async ModalSubmitInteraction.reply (C:\Users\Yiğit\Desktop\Catto\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Client.<anonymous> (C:\Users\Yiğit\Desktop\Catto\events\suggestion_modal.js:38:21)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Your suggestion was received successfully!',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1227237570832891984/aW50ZXJhY3Rpb246MTIyNzIzNzU3MDgzMjg5MTk4NDpCOGhsWjY2ME43NXFUWEw1SFpCRkkwbjhXb2FQRUdnTlhFTnJMcmpvMHZFUzNFa3hTSDlHR2VUTmY3V0h0dEQyR2pUSVBOQU0zQ0NEZGhNc2JuckpOZVV4TVZYQkk2SjVrdXJQcnduMk10MWxKNGt4TG5Qc1ZRa2w3dkt2RG1EWQ/callback'
}

Node.js v20.10.0
6 replies
DIAdiscord.js - Imagine an app
Created by Yido on 4/8/2024 in #djs-questions
i tried modals but it doesnt work
i got a few errors before then fixed them but now the modals dont work. and ı was following the guide, did i do something wrong? the error i was getting the "client is not defined" but now ı have fixed it
32 replies
DIAdiscord.js - Imagine an app
Created by Yido on 3/19/2024 in #djs-questions
i keep getting this error and i cannot find a solution
Error: Cannot find module 'discord.js'
Require stack:
- C:\Users\Yiğit\Desktop\marsh\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\Yiğit\Desktop\marsh\index.js:1:47)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\Yiğit\\Desktop\\marsh\\index.js' ]
}
Error: Cannot find module 'discord.js'
Require stack:
- C:\Users\Yiğit\Desktop\marsh\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\Yiğit\Desktop\marsh\index.js:1:47)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\Yiğit\\Desktop\\marsh\\index.js' ]
}
`
13 replies