Brett
Brett
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
it works thank you
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
done
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
I think that's not my last question so I change that now
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
ho yes sorry
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
thank you
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
Ho good
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
even if it's ephemeral it works ?
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
I have to do a interaction.reply ?
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
hooooo
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
what do you mean ?
20 replies
DIAdiscord.js - Imagine an app
Created by Brett on 12/8/2023 in #djs-questions
The app does not repond
const { ChatInputCommandInteraction, SlashCommandBuilder, ActionRowBuilder, StringSelectMenuBuilder } = require('discord.js');
const ExtendedClient = require('../../../class/ExtendedClient');
require('dotenv').config();

module.exports = {
structure: new SlashCommandBuilder()
.setName('createticket')
.setDescription('Create the ticket message'),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction} interaction
*/
run: async (client, interaction) => {
const ticketChannel = interaction.guild.channels.cache.get('1181171950375161897');

await ticketChannel.send({
content: 'Ouvrir un ticket',
components: [
new ActionRowBuilder()
.addComponents(
new StringSelectMenuBuilder()
.setCustomId('select-ticket')
.setPlaceholder('Choisis une catégorie de ticket')
.addOptions(
{ label: '📩 Postuler', value: 'recruitment' },
{ label: '📜 Collaboration', value: 'collaboration' },
{ label: '💬 Question', value: 'question' },
)
)
]
});
}
};
const { ChatInputCommandInteraction, SlashCommandBuilder, ActionRowBuilder, StringSelectMenuBuilder } = require('discord.js');
const ExtendedClient = require('../../../class/ExtendedClient');
require('dotenv').config();

module.exports = {
structure: new SlashCommandBuilder()
.setName('createticket')
.setDescription('Create the ticket message'),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction} interaction
*/
run: async (client, interaction) => {
const ticketChannel = interaction.guild.channels.cache.get('1181171950375161897');

await ticketChannel.send({
content: 'Ouvrir un ticket',
components: [
new ActionRowBuilder()
.addComponents(
new StringSelectMenuBuilder()
.setCustomId('select-ticket')
.setPlaceholder('Choisis une catégorie de ticket')
.addOptions(
{ label: '📩 Postuler', value: 'recruitment' },
{ label: '📜 Collaboration', value: 'collaboration' },
{ label: '💬 Question', value: 'question' },
)
)
]
});
}
};
There is one where the error appear
20 replies