Havoc
Havoc
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
const rawreply = await interaction.reply({ embeds: [buttomEmbed], components: [row], fetchReply: true })
const filter = (i) => i.user.id === interaction.user.id
const reply = interaction.fetchReply()


const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 15000
})

collector.on('collect', async (interaction) => {
console.log('Button Clicked')
})
const rawreply = await interaction.reply({ embeds: [buttomEmbed], components: [row], fetchReply: true })
const filter = (i) => i.user.id === interaction.user.id
const reply = interaction.fetchReply()


const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 15000
})

collector.on('collect', async (interaction) => {
console.log('Button Clicked')
})
@Squid This is the whole line of code
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
So should I add that to
inrteraction.reply()
inrteraction.reply()
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
Wrong lines
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
Mb
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
const reply = interaction.fetchReply()
const reply = interaction.fetchReply()
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 15000
})
const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 15000
})
411 through 414
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
@Squid Still not working
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
node:events:492
throw er; // Unhandled 'error' event
^

TypeError: reply.createMessageComponentCollector is not a function
at Client.<anonymous> (/home/runner/Universal/index.js:411:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

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

TypeError: reply.createMessageComponentCollector is not a function
at Client.<anonymous> (/home/runner/Universal/index.js:411:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v20.10.0
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
Thx one sec
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
I have a variable
const reply = await interaction.fetchReply()
const reply = await interaction.fetchReply()
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
I have it to a variable that awaits interaction.fetchReply
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
Thats what its showing now
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
It was my origional error
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
@Qjuh
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
node:events:492
throw er; // Unhandled 'error' event
^

TypeError: reply.createMessageComponenetCollector is not a function
at Client.<anonymous> (/home/runner/Universal/index.js:411:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

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

TypeError: reply.createMessageComponenetCollector is not a function
at Client.<anonymous> (/home/runner/Universal/index.js:411:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:397:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v20.10.0
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
I can’t right now will in a little
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
Could I possibly get a code snippet? I have put await from interaction.fetchReply() to interaction.reply(...) and it still isnt working
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
const reply = await interaction.fetchReply()

const filter = (i) => i.user.id === interaction.user.id

const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 60000
});
const reply = await interaction.fetchReply()

const filter = (i) => i.user.id === interaction.user.id

const collector = reply.createMessageComponentCollector({
componentType: ComponentType.Button,
filter,
time: 60000
});
32 replies
DIAdiscord.js - Imagine an app
Created by Havoc on 1/4/2024 in #djs-questions
Discord Error Code 10015 when using a collector to handle button events
No description
32 replies