This commit is contained in:
1tzEmerald committed 2024-10-10 19:14:45 +01:00
1 parent 4f14722e14
commit ac0daf5fe7
28 files changed
+929 -550

No files matched your search

+7 -2
View File
@@ -35,8 +35,13 @@ module.exports = new Command({
});
}
const channelName = panelconfig.Channel;
const channel = interaction.guild.channels.cache.find(ch => ch.name === channelName);
const { getChannel } = interaction.client;
const channel = await getChannel(
supportbot.Ticket.TicketHome,
interaction.guild
);
if (!channel) {
console.log(`[TICKET PANEL] ${channelName} channel not found. Please check your config file.`);
return interaction.reply({