fix(arabot): checks for wrong channel if cache doesn't work

This commit is contained in:
smyalygames 2022-10-21 19:40:03 +01:00
parent ab0e6c5adf
commit fa476f06be

View File

@ -39,7 +39,7 @@ class VerificationReady extends Listener {
// Get verification category // Get verification category
let welcome = client.channels.cache.get(IDs.channels.welcome) as TextChannel | undefined; let welcome = client.channels.cache.get(IDs.channels.welcome) as TextChannel | undefined;
if (welcome === undefined) { if (welcome === undefined) {
welcome = await client.channels.fetch(IDs.categories.verification) as TextChannel | undefined; welcome = await client.channels.fetch(IDs.channels.welcome) as TextChannel | undefined;
if (welcome === undefined) { if (welcome === undefined) {
console.error('verifyStart: Welcome not found'); console.error('verifyStart: Welcome not found');
return; return;