./u.7-z
./u.7-z
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 10/31/2024 in #djs-questions
The requested module '../utils/formatTextWithStyles.js' does not provide an export named 'default'
pls help me
9 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 10/31/2024 in #djs-questions
The requested module '../utils/formatTextWithStyles.js' does not provide an export named 'default'
No description
9 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 10/13/2024 in #djs-questions
I have an error but the message is sent
I don't understand where the error comes from and the message is sent
6 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 10/13/2024 in #djs-questions
I have an error but the message is sent
Nodejs ver v20.17.0 Discordjs ver @14.16.3
6 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 10/13/2024 in #djs-questions
I have an error but the message is sent
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:129:9) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
at async BurstHandler.runRequest (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\liveweb\Desktop\DynaBot\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ChatInputCommandInteraction.deferReply (C:\Users\liveweb\Desktop\DynaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:72:5)
at async Object.execute (C:\Users\liveweb\Desktop\DynaBot\commands\drop.js:36:9)
at async Client.<anonymous> (C:\Users\liveweb\Desktop\DynaBot\index.js:129:9) {
requestBody: { files: undefined, json: { type: 5, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/.../callback'
}
6 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
bruh
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
no
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
I don't understand what you are saying
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
No description
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:59:9)
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
const ModalRow = new ActionRowBuilder().addComponents(Age)
const ModalRow2 = new ActionRowBuilder().addComponents(idée)


modal.addComponents(ModalRow, ModalRow2)
await interaction.showModal(modal);



});

const filte1r = (interaction) => interaction.customId === 'recrutement';
interaction
.awaitModalSubmit({filte1r, time: 30_000})
.then((ModalInteraction) => {
const Agevalue = ModalInteraction.fields.getTextInputValue('age');
const ideevalue = ModalInteraction.fields.getTextInputValue('idée');

ModalInteraction.reply(`Tu as ${Agevalue}`)

})
.catch((err) => {
console.log(`ERROR: ${err}`);
})
},
}
const ModalRow = new ActionRowBuilder().addComponents(Age)
const ModalRow2 = new ActionRowBuilder().addComponents(idée)


modal.addComponents(ModalRow, ModalRow2)
await interaction.showModal(modal);



});

const filte1r = (interaction) => interaction.customId === 'recrutement';
interaction
.awaitModalSubmit({filte1r, time: 30_000})
.then((ModalInteraction) => {
const Agevalue = ModalInteraction.fields.getTextInputValue('age');
const ideevalue = ModalInteraction.fields.getTextInputValue('idée');

ModalInteraction.reply(`Tu as ${Agevalue}`)

})
.catch((err) => {
console.log(`ERROR: ${err}`);
})
},
}
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
const { EmbedBuilder,TextInputBuilder, TextInputStyle, ButtonBuilder, ButtonStyle, ActionRowBuilder, ModalBuilder, ModalSubmitInteraction } = require("discord.js")
const { cp } = require("fs")
const { idempotency } = require("parse")



module.exports = {
name: 'recrutement',
execute(message) {
const embed = new EmbedBuilder()
.setTitle(`{config.emoji} Recrutement`)
.setDescription(`Appuyez sur ce boutton pour ouvrir le formulaire de rerutement de areo`)
.setColor('#0099ff')

const button1 = new ButtonBuilder()
.setCustomId('recrutement1')
.setLabel('Recrutement')
.setStyle(ButtonStyle.Secondary)

const row = new ActionRowBuilder()
.addComponents(button1)

message.channel.send({embeds: [embed], components: [row]})


const filter = (interaction) => interaction.customId === 'recrutement1';
const collector = message.channel.createMessageComponentCollector({ filter, time: 15000 });

collector.on('collect', async (interaction) => {
interaction.reply({ content: 'Tu as appuyé', ephemeral: true });
const modal = new ModalBuilder({
customId: 'recrutement',
title: ' 123',
});
const Age = new TextInputBuilder({
customId: 'age',
label: 'Quel age as-tu ?',
style: TextInputStyle.Short,
})

const idée = new TextInputBuilder({
custom_id: 'idee',
label: 'As-tu des idées ?',
style: TextInputStyle.Paragraph
})

const { EmbedBuilder,TextInputBuilder, TextInputStyle, ButtonBuilder, ButtonStyle, ActionRowBuilder, ModalBuilder, ModalSubmitInteraction } = require("discord.js")
const { cp } = require("fs")
const { idempotency } = require("parse")



module.exports = {
name: 'recrutement',
execute(message) {
const embed = new EmbedBuilder()
.setTitle(`{config.emoji} Recrutement`)
.setDescription(`Appuyez sur ce boutton pour ouvrir le formulaire de rerutement de areo`)
.setColor('#0099ff')

const button1 = new ButtonBuilder()
.setCustomId('recrutement1')
.setLabel('Recrutement')
.setStyle(ButtonStyle.Secondary)

const row = new ActionRowBuilder()
.addComponents(button1)

message.channel.send({embeds: [embed], components: [row]})


const filter = (interaction) => interaction.customId === 'recrutement1';
const collector = message.channel.createMessageComponentCollector({ filter, time: 15000 });

collector.on('collect', async (interaction) => {
interaction.reply({ content: 'Tu as appuyé', ephemeral: true });
const modal = new ModalBuilder({
customId: 'recrutement',
title: ' 123',
});
const Age = new TextInputBuilder({
customId: 'age',
label: 'Quel age as-tu ?',
style: TextInputStyle.Short,
})

const idée = new TextInputBuilder({
custom_id: 'idee',
label: 'As-tu des idées ?',
style: TextInputStyle.Paragraph
})

38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
no
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
ok i try it
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
No description
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
But he tells me it's not defined
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
How define this
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
And how
38 replies
DIAdiscord.js - Imagine an app
Created by ./u.7-z on 2/24/2024 in #djs-questions
ReferenceError: interaction is not defined at Object.execute (/home/container/commands/recru.js:
is not edfined
38 replies