11 lines
262 B
TypeScript
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);
|
|
}
|
|
|
|
} |