Raay
Raay
DIAdiscord.js - Imagine an app
Created by Raay on 9/3/2024 in #djs-questions
Private therth not work
Pleas help me Code:
const client = require('../../client.js')

const {EmbedBuilder, StringSelectMenuBuilder, ButtonBuilder, ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, ChannelType, ThreadAutoArchiveDuration, channel} = require('discord.js')

client.on('interactionCreate', async interaction => {
if (interaction.isButton()){
if (interaction.customId === 'ticket_create'){

await interaction.channel.threads.create({
name: 'Ticket',
autoArchiveDuration: ThreadAutoArchiveDuration.OneDay,
reason: 'System',
type: ChannelType.PrivateThread,

});


}
}
})
const client = require('../../client.js')

const {EmbedBuilder, StringSelectMenuBuilder, ButtonBuilder, ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, ChannelType, ThreadAutoArchiveDuration, channel} = require('discord.js')

client.on('interactionCreate', async interaction => {
if (interaction.isButton()){
if (interaction.customId === 'ticket_create'){

await interaction.channel.threads.create({
name: 'Ticket',
autoArchiveDuration: ThreadAutoArchiveDuration.OneDay,
reason: 'System',
type: ChannelType.PrivateThread,

});


}
}
})
10 replies
DIAdiscord.js - Imagine an app
Created by Raay on 8/21/2024 in #djs-questions
User install Commands
Hello can anyone say me how i make User install commands
36 replies
DIAdiscord.js - Imagine an app
Created by Raay on 6/18/2024 in #djs-questions
set permissions
Hello can anyone say me How i set permissions to the Command (i Not use SlashCommandBuilder)
14 replies