mirror of
https://github.com/veganhacktivists/arabot.git
synced 2026-01-02 09:48:49 +01:00
fix(arabot): checks for wrong channel if cache doesn't work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user