Skip to content

Commit 18805b5

Browse files
committed
fix(supportthreads): wait longer for initial thread message before failing
1 parent 5b1dbf0 commit 18805b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ client.on(GatewayDispatchEvents.ThreadCreate, async ({ data: channel }) => {
132132

133133
// Messages can only be sent after the thread starter message has arrived.
134134
// This can take substantial amounts of time after thread create in the case of large attachments
135-
const collected = await waitForMessage(channel.id, 10_000).catch((error: Error) => {
135+
const collected = await waitForMessage(channel.id, 60_000).catch((error: Error) => {
136136
const failedAt = Date.now();
137137
const failedAfterSeconds = (failedAt - receivedAt) / 1_000;
138138
logger.info(

0 commit comments

Comments
 (0)