aboutsummaryrefslogtreecommitdiff
path: root/bot/src/events/ThreadCreate.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/events/ThreadCreate.js')
-rw-r--r--bot/src/events/ThreadCreate.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/bot/src/events/ThreadCreate.js b/bot/src/events/ThreadCreate.js
new file mode 100644
index 0000000..61cb217
--- /dev/null
+++ b/bot/src/events/ThreadCreate.js
@@ -0,0 +1,8 @@
+import { Events } from 'discord.js';
+
+export default {
+ name: Events.ThreadCreate,
+ async execute(thread) {
+ await thread.join(thread.id);
+ }
+};