Sup3r
Sup3r
KPCKevin Powell - Community
Created by admin.o7 on 3/30/2024 in #front-end
CSS vs Tailwind
@admin.o7 Learn HTML and CSS Semantics, along with best practices for both languages if you want to keep your project Scalable.
37 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
Got it working
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
do i need to remove the filter?
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
try {
const confirmation = await response.createMessageComponentCollector({
filter: collectorFilter
});

switch (confirmation.customId) {
case 'profile':
btnManager('profile')
await confirmation.update({
embeds: [profileEmbed],
components: [oRow]
});
break;
case 'settings':
btnManager('settings');
await confirmation.update({
content: 'Settings command selected',
components: [oRow]
});
break;
case 'questions':
await confirmation.update({
content: 'Questions command selected',
components: [oRow]
});
break;
case 'manage':
await confirmation.update({
content: 'Manage command selected',
components: [oRow]
});
break;
default:
await confirmation.update({
content: 'Invalid selection',
components: []
});
break;
}

} catch (e) {
await interaction.editReply({
content: 'Response not received within 1 minute, buttons removed.',
components: []
});
console.error(e);
}
try {
const confirmation = await response.createMessageComponentCollector({
filter: collectorFilter
});

switch (confirmation.customId) {
case 'profile':
btnManager('profile')
await confirmation.update({
embeds: [profileEmbed],
components: [oRow]
});
break;
case 'settings':
btnManager('settings');
await confirmation.update({
content: 'Settings command selected',
components: [oRow]
});
break;
case 'questions':
await confirmation.update({
content: 'Questions command selected',
components: [oRow]
});
break;
case 'manage':
await confirmation.update({
content: 'Manage command selected',
components: [oRow]
});
break;
default:
await confirmation.update({
content: 'Invalid selection',
components: []
});
break;
}

} catch (e) {
await interaction.editReply({
content: 'Response not received within 1 minute, buttons removed.',
components: []
});
console.error(e);
}
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
When using that, its returning this error, TypeError: confirmation.update is not a function at Object.execute (C:\Users\forst\Coding\VS Code Workspace\Projects\Server Rift\Main App\Bot\commands\Utils\help.js:57:40) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (C:\Users\forst\Coding\VS Code Workspace\Projects\Server Rift\Main App\Bot\Events\interatctionCreate.js:46:7)
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
kk
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
No
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
Thx that worked with the first issue, how would i attach listeners after clicking the first button?
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
alr
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
switch (confirmation.customId) {
case 'profile':
btnManager('profile')
await interaction.update({
embeds: [profileEmbed],
components: [oRow]
});
break;
case 'settings':
btnManager('settings');
await interaction.update({
content: 'Settings command selected',
components: [oRow]
});
break;
case 'questions':
await interaction.update({
content: 'Questions command selected',
components: [oRow]
});
break;
case 'manage':
await interaction.update({
content: 'Manage command selected',
components: [oRow]
});
break;
default:
await interaction.update({
content: 'Invalid selection',
components: []
});
break;
}
switch (confirmation.customId) {
case 'profile':
btnManager('profile')
await interaction.update({
embeds: [profileEmbed],
components: [oRow]
});
break;
case 'settings':
btnManager('settings');
await interaction.update({
content: 'Settings command selected',
components: [oRow]
});
break;
case 'questions':
await interaction.update({
content: 'Questions command selected',
components: [oRow]
});
break;
case 'manage':
await interaction.update({
content: 'Manage command selected',
components: [oRow]
});
break;
default:
await interaction.update({
content: 'Invalid selection',
components: []
});
break;
}
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
Tried this
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
thx
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
So how would i fix that? interaction.Update?
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
If you guys know of any examples of this concept, that might just be the best way to help!
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
Theres also an issue when trying to use /help again where an error is thrown
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
20 replies
DIAdiscord.js - Imagine an app
Created by Sup3r on 3/30/2024 in #djs-questions
Trying to make a help menu using button builder
20 replies