File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ const STAFF_ACCEPT_THRESHOLD = 2;
18
18
19
19
const autoThread : ChannelHandlers = {
20
20
handleMessage : async ( { msg : maybeMessage } ) => {
21
+ if (
22
+ maybeMessage . channel . type === ChannelType . PublicThread ||
23
+ maybeMessage . channel . type === ChannelType . PrivateThread
24
+ ) {
25
+ return ;
26
+ }
27
+
21
28
const msg = maybeMessage . partial
22
29
? await maybeMessage . fetch ( )
23
30
: maybeMessage ;
Original file line number Diff line number Diff line change @@ -4,10 +4,17 @@ import { ChannelHandlers } from "../types";
4
4
import { threadStats } from "../features/stats" ;
5
5
import { format } from "date-fns" ;
6
6
import fetch from "node-fetch" ;
7
- import { MessageType } from "discord.js" ;
7
+ import { ChannelType , MessageType } from "discord.js" ;
8
8
9
9
const promotionThread : ChannelHandlers = {
10
10
handleMessage : async ( { msg : maybeMessage } ) => {
11
+ if (
12
+ maybeMessage . channel . type === ChannelType . PublicThread ||
13
+ maybeMessage . channel . type === ChannelType . PrivateThread
14
+ ) {
15
+ return ;
16
+ }
17
+
11
18
const msg = maybeMessage . partial
12
19
? await maybeMessage . fetch ( )
13
20
: maybeMessage ;
You can’t perform that action at this time.
0 commit comments