Skip to content

Commit 71e77c1

Browse files
committed
fix: Fix Wheatley.log_channel assignment
1 parent 7ba9ec4 commit 71e77c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wheatley.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,9 @@ export class Wheatley {
336336
this.roles[key as keyof typeof this.roles_map] = unwrap(this.guild.roles.cache.get(info.id));
337337
}
338338

339-
console.log(this.roles);
339+
if (!config.freestanding) {
340+
this.log_channel = this.client.channels.cache.get(this.channels.log.id) as Discord.TextBasedChannel;
341+
}
340342

341343
this.info("Bot started");
342344

0 commit comments

Comments
 (0)