.
.
DIAdiscord.js - Imagine an app
Created by . on 5/22/2024 in #djs-questions
help with command
idek how to code someone just made it for me. this is the command itself if it helps idk
const { MessageEmbed } = require("discord.js")


module.exports = {
name: 'ticketembed',
async execute(message, client) {

const ticketEmbed = new MessageEmbed()
.setTitle("šŸŽŸ | Support Tickets")
.setDescription(`Found a bug, or error? Have a question, or another concern? Would you like to partner with us? Click one of the buttons corresponding to what we listed here!\n\nšŸ› - Report a bug\nā“ - General Support\nā” - Partnerships`)
.setColor("#2F3136")

await message.delete();
const ticketEmbedMsg = await message.channel.send({ embeds: [ticketEmbed] });
await ticketEmbedMsg.react("šŸ›");
await ticketEmbedMsg.react("ā“");
await ticketEmbedMsg.react("ā”");

}
}
const { MessageEmbed } = require("discord.js")


module.exports = {
name: 'ticketembed',
async execute(message, client) {

const ticketEmbed = new MessageEmbed()
.setTitle("šŸŽŸ | Support Tickets")
.setDescription(`Found a bug, or error? Have a question, or another concern? Would you like to partner with us? Click one of the buttons corresponding to what we listed here!\n\nšŸ› - Report a bug\nā“ - General Support\nā” - Partnerships`)
.setColor("#2F3136")

await message.delete();
const ticketEmbedMsg = await message.channel.send({ embeds: [ticketEmbed] });
await ticketEmbedMsg.react("šŸ›");
await ticketEmbedMsg.react("ā“");
await ticketEmbedMsg.react("ā”");

}
}
6 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
TypeError: pendingTicketsChannel.createChannel is not a function
alright i get that. is there like any way to use older versions
17 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
TypeError: pendingTicketsChannel.createChannel is not a function
thought to update it to the latest,
17 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
TypeError: pendingTicketsChannel.createChannel is not a function
i know like a bit.. does this answer that question.
const bugReportChannel = await pendingTicketsChannel.createChannel(`bug-report-${currentTicketNumber}`, {
type: 'GUILD_TEXT',
permissionOverwrites: [
{
id: member.id,
allow: ["SEND_MESSAGES", "VIEW_CHANNEL", "READ_MESSAGE_HISTORY", "ATTACH_FILES", "EMBED_LINKS"],
deny: ["USE_APPLICATION_COMMANDS", "CREATE_PUBLIC_THREADS", "CREATE_PRIVATE_THREADS"]
},
{
id: reaction.message.channel.guild.id,
deny: ["VIEW_CHANNEL", "READ_MESSAGE_HISTORY"],
},
],
});
const bugReportChannel = await pendingTicketsChannel.createChannel(`bug-report-${currentTicketNumber}`, {
type: 'GUILD_TEXT',
permissionOverwrites: [
{
id: member.id,
allow: ["SEND_MESSAGES", "VIEW_CHANNEL", "READ_MESSAGE_HISTORY", "ATTACH_FILES", "EMBED_LINKS"],
deny: ["USE_APPLICATION_COMMANDS", "CREATE_PUBLIC_THREADS", "CREATE_PRIVATE_THREADS"]
},
{
id: reaction.message.channel.guild.id,
deny: ["VIEW_CHANNEL", "READ_MESSAGE_HISTORY"],
},
],
});
17 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
TypeError: pendingTicketsChannel.createChannel is not a function
like i dont code
17 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
TypeError: pendingTicketsChannel.createChannel is not a function
so like. pendingTicketsChannel.guild.channels.create
17 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
ColorConvert error
node -v is 20.13.1
6 replies
DIAdiscord.js - Imagine an app
Created by . on 5/21/2024 in #djs-questions
ColorConvert error
discord.js version is 14.10.2
6 replies