BoxWithout
BoxWithout
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
I will remove the extra await XD
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
It's working now! Thank you for your help!
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
Also, it's createMessageComponentCollector() not createMessageCollector().
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
It's because it's resource not resources
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
InteractionCallbackResponse {
interaction: InteractionCallback {
id: '1332761414464438313',
type: 5,
activityInstanceId: null,
responseMessageId: '1332761415119015987',
responseMessageLoading: false,
responseMessageEphemeral: true
},
resource: InteractionCallbackResource {
type: 4,
activityInstance: null,
message: Message {
channelId: '1206384509042298981',
guildId: '1206372423465832519',
id: '1332761415119015987',
createdTimestamp: 1737825482874,
type: 19,
system: false,
content: 'The date you entered is not in the correct format. Please click the button to try again.',
author: [ClientUser],
pinned: false,
tts: false,
nonce: '1332761408512720896',
embeds: [],
components: [Array],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: 0,
roleSubscriptionData: null,
resolved: [Object],
editedTimestamp: null,
reactions: [ReactionManager],
mentions: [MessageMentions],
webhookId: '1182005992712572999',
groupActivityApplication: null,
applicationId: '1182005992712572999',
activity: null,
flags: [MessageFlagsBitField],
reference: [Object],
InteractionCallbackResponse {
interaction: InteractionCallback {
id: '1332761414464438313',
type: 5,
activityInstanceId: null,
responseMessageId: '1332761415119015987',
responseMessageLoading: false,
responseMessageEphemeral: true
},
resource: InteractionCallbackResource {
type: 4,
activityInstance: null,
message: Message {
channelId: '1206384509042298981',
guildId: '1206372423465832519',
id: '1332761415119015987',
createdTimestamp: 1737825482874,
type: 19,
system: false,
content: 'The date you entered is not in the correct format. Please click the button to try again.',
author: [ClientUser],
pinned: false,
tts: false,
nonce: '1332761408512720896',
embeds: [],
components: [Array],
attachments: Collection(0) [Map] {},
stickers: Collection(0) [Map] {},
position: 0,
roleSubscriptionData: null,
resolved: [Object],
editedTimestamp: null,
reactions: [ReactionManager],
mentions: [MessageMentions],
webhookId: '1182005992712572999',
groupActivityApplication: null,
applicationId: '1182005992712572999',
activity: null,
flags: [MessageFlagsBitField],
reference: [Object],
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
I am having trouble copying the error for whatever reason. Let me try doing it from bash instead of portainer
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
Oh right, good point.
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
I am gonna put await back in and see what happens
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
It returns a promise XD
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
Yeah will do
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
The error is on line 28, or line 3 in that code block
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
I am getting the error: TypeError: Cannot read properties of undefined (reading 'message')
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
I am not sure why this is better, either. Is it just because fetchReply is deprecated?
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 1/25/2025 in #djs-questions
My collector isn't triggering, but is being created. There are no errors in console.
So I got it to work with fetchReply: true, but I am confused by the better options. Heres what lines 25 and 28 look like now:
const retryMessage = interaction.reply({ content: 'The date you entered is not in the correct format. Please click the button to try again.', components: [actionRow], withResponse: true, flags: MessageFlags.Ephemeral });

const retryCollector = await retryMessage.resources.message.createMessageCollector({ componentType: ComponentType.Button, time: 1000 * 60 * 3 });
const retryMessage = interaction.reply({ content: 'The date you entered is not in the correct format. Please click the button to try again.', components: [actionRow], withResponse: true, flags: MessageFlags.Ephemeral });

const retryCollector = await retryMessage.resources.message.createMessageCollector({ componentType: ComponentType.Button, time: 1000 * 60 * 3 });
24 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
Now it makes A LOT more sense XD. Thank you.
28 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
I understand. I appreciate your time, thanks again!
28 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
That makes sense. I appreciate your help!
28 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
response belongs to the modal submission.
28 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
the interaction type is button, the embed that triggered it was from a modal submission.
28 replies
DIAdiscord.js - Imagine an app
Created by BoxWithout on 2/21/2024 in #djs-questions
Help collecting a button component
Would you happen to know why that isn't included in the tutorial? Is there something specific about my code that requires that?
28 replies