From 373f43eac57d0a892da76d610770af302754d790 Mon Sep 17 00:00:00 2001 From: Noah Date: Sun, 19 Dec 2021 13:03:33 -0600 Subject: [PATCH] Channel can now be id or name --- Events/ready.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Events/ready.js b/Events/ready.js index a8e845c..a17b2f0 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -137,8 +137,9 @@ module.exports = new Event("ready", async (client) => { ); } if (panelconfig.TicketPanel) { - let chan1 = client.channels.cache.find( - (channel) => channel.name === panelconfig.Channel + let chan1 = await client.getChannel( + panelconfig.Channel, + client.guilds.cache.first() ); if (!chan1) {