mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 10:44:13 +02:00
fix(arabot): checks for wrong channel if cache doesn't work
This commit is contained in:
parent
ab0e6c5adf
commit
fa476f06be
@ -39,7 +39,7 @@ class VerificationReady extends Listener {
|
||||
// Get verification category
|
||||
let welcome = client.channels.cache.get(IDs.channels.welcome) as TextChannel | 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) {
|
||||
console.error('verifyStart: Welcome not found');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user