Files
hexerade/src/events/handle-thread-create.ts
T
2026-05-29 08:43:48 -04:00

11 lines
262 B
TypeScript

import { AnyThreadChannel } from 'discord.js';
export async function handleThreadCreate(thread: AnyThreadChannel, newlyCreated: boolean) {
try {
await thread.join();
} catch (e) {
console.error('Failed to join thread:');
console.error(e);
}
}