Skip to content

Commit 66f0630

Browse files
committed
Fix bug
1 parent 89efd64 commit 66f0630

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/modules/tccpp/components/thread-based-channels.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ function create_embed(title: string | undefined, color: number, msg: string) {
3232
}
3333

3434
export default class ThreadBasedChannels extends BotComponent {
35-
thread_based_channel_ids = new Set([
36-
this.wheatley.channels.server_suggestions.id,
37-
this.wheatley.channels.showcase.id,
38-
this.wheatley.channels.today_i_learned.id,
39-
]);
35+
thread_based_channel_ids: Set<string>;
36+
37+
override async on_ready() {
38+
this.thread_based_channel_ids = new Set([
39+
this.wheatley.channels.server_suggestions.id,
40+
this.wheatley.channels.showcase.id,
41+
this.wheatley.channels.today_i_learned.id,
42+
]);
43+
}
4044

4145
override async on_message_create(message: Discord.Message) {
4246
// Ignore bots and thread create messages

0 commit comments

Comments
 (0)