Daniel
Daniel
Explore posts from servers
SIASapphire - Imagine a framework
Created by Daniel on 9/10/2023 in #sapphire-support
Sharding Error
@Helpers
5 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
That’s what i did…
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
interaction.showModal(newUserModal);
interaction
.awaitModalSubmit({ time: 180000 })
.then(async (modal) => {
let name = modal.fields.getTextInputValue("name");
let email = modal.fields.getTextInputValue("email");
console.log(name, email);
modal
.reply({
embeds: [
new EmbedBuilder()
.setTitle("Verification Process")
.setAuthor({
name: `${interaction.user.username}#${interaction.user.discriminator}`,
iconURL:
interaction.user.displayAvatarURL(),
})
.setDescription(
`Please confirm the following information is correct.`
)
.setColor("#2f3136")
.addFields([
{
name: "Name/Nickname",
value: `||${name}||`,
inline: true,
},
{
name: "Email",
value: `||${email}||`,
inline: true,
},
])
.setImage(
"https://i.imgur.com/gLT4grB.png"
),
],
components: [correctOrIncorrect],
ephemeral: true,
})
.then((msg) => {
console.log(msg);
msg.awaitMessageComponent({
filter: (i) =>
i.user.id === interaction.user.id,
componentType: ComponentType.Button,
time: 60000,
})
.then(async (i) => {
console.log(2);
interaction.showModal(newUserModal);
interaction
.awaitModalSubmit({ time: 180000 })
.then(async (modal) => {
let name = modal.fields.getTextInputValue("name");
let email = modal.fields.getTextInputValue("email");
console.log(name, email);
modal
.reply({
embeds: [
new EmbedBuilder()
.setTitle("Verification Process")
.setAuthor({
name: `${interaction.user.username}#${interaction.user.discriminator}`,
iconURL:
interaction.user.displayAvatarURL(),
})
.setDescription(
`Please confirm the following information is correct.`
)
.setColor("#2f3136")
.addFields([
{
name: "Name/Nickname",
value: `||${name}||`,
inline: true,
},
{
name: "Email",
value: `||${email}||`,
inline: true,
},
])
.setImage(
"https://i.imgur.com/gLT4grB.png"
),
],
components: [correctOrIncorrect],
ephemeral: true,
})
.then((msg) => {
console.log(msg);
msg.awaitMessageComponent({
filter: (i) =>
i.user.id === interaction.user.id,
componentType: ComponentType.Button,
time: 60000,
})
.then(async (i) => {
console.log(2);
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
No because after the modal, it sends a message with buttons
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
Slash Command -> Modal -> Failed Button
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
No, it's shown from the slash command
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
msg is an InteractionModalResponse which according to the docs has awaitMessageComponenent
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
Thats the error it gives
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 10/4/2022 in #djs-questions
Message Component Collector Issue
Error: InteractionCollectorError
at InteractionCollector.<anonymous> (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\InteractionResponse.js:37:21)
at Object.onceWrapper (node:events:628:26)
at InteractionCollector.emit (node:events:525:35)
at InteractionCollector.emit (node:domain:489:12)
at InteractionCollector.stop (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\interfaces\Collector.js:218:10)
at Timeout.<anonymous> (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\interfaces\Collector.js:96:61)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Error: InteractionCollectorError
at InteractionCollector.<anonymous> (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\InteractionResponse.js:37:21)
at Object.onceWrapper (node:events:628:26)
at InteractionCollector.emit (node:events:525:35)
at InteractionCollector.emit (node:domain:489:12)
at InteractionCollector.stop (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\interfaces\Collector.js:218:10)
at Timeout.<anonymous> (C:\Users\dzold\OneDrive\Documents\CodingProjects\aerHub-v2\node_modules\discord.js\src\structures\interfaces\Collector.js:96:61)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
11 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
erlpack Issues
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
erlpack Issues
[email protected] /root/pmsb └── (empty)
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
client.guilds.cache.array()
Sorry
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
client.guilds.cache.array()
Oh my bad then
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
client.guilds.cache.array()
so I just do client.guilds.cache?
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 8/9/2022 in #djs-questions
client.guilds.cache.array()
I can do collection.forEach?
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 7/27/2022 in #djs-questions
Default Permissions
<rejected> RangeError [BitFieldInvalid]: Invalid bitfield flag or number: 8.
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 7/27/2022 in #djs-questions
Default Permissions
says
9 replies
DIAdiscord.js - Imagine an app
Created by Daniel on 7/27/2022 in #djs-questions
Default Permissions
default_member_permissions: 8,
9 replies