Skip to content

Commit 2d22f2f

Browse files
authored
refactor(GatewayThreadListSync): narrow threads (#1155)
1 parent 9b47ba5 commit 2d22f2f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

deno/payloads/v10/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type { Snowflake } from '../../globals.ts';
8-
import type { APIChannel, APIThreadMember } from './channel.ts';
8+
import type { APIThreadChannel, APIThreadMember } from './channel.ts';
99
import type { APIEmoji } from './emoji.ts';
1010
import type { APIUser } from './user.ts';
1111

@@ -361,7 +361,7 @@ export interface GatewayThreadListSync {
361361
/**
362362
* Array of the synced threads
363363
*/
364-
threads: APIChannel[];
364+
threads: APIThreadChannel[];
365365
/**
366366
* The member objects for the client user in each joined thread that was synced
367367
*/

deno/payloads/v9/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type { Snowflake } from '../../globals.ts';
8-
import type { APIChannel, APIThreadMember } from './channel.ts';
8+
import type { APIThreadChannel, APIThreadMember } from './channel.ts';
99
import type { APIEmoji } from './emoji.ts';
1010
import type { APIUser } from './user.ts';
1111

@@ -349,7 +349,7 @@ export interface GatewayThreadListSync {
349349
/**
350350
* Array of the synced threads
351351
*/
352-
threads: APIChannel[];
352+
threads: APIThreadChannel[];
353353
/**
354354
* The member objects for the client user in each joined thread that was synced
355355
*/

payloads/v10/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type { Snowflake } from '../../globals';
8-
import type { APIChannel, APIThreadMember } from './channel';
8+
import type { APIThreadChannel, APIThreadMember } from './channel';
99
import type { APIEmoji } from './emoji';
1010
import type { APIUser } from './user';
1111

@@ -361,7 +361,7 @@ export interface GatewayThreadListSync {
361361
/**
362362
* Array of the synced threads
363363
*/
364-
threads: APIChannel[];
364+
threads: APIThreadChannel[];
365365
/**
366366
* The member objects for the client user in each joined thread that was synced
367367
*/

payloads/v9/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import type { Snowflake } from '../../globals';
8-
import type { APIChannel, APIThreadMember } from './channel';
8+
import type { APIThreadChannel, APIThreadMember } from './channel';
99
import type { APIEmoji } from './emoji';
1010
import type { APIUser } from './user';
1111

@@ -349,7 +349,7 @@ export interface GatewayThreadListSync {
349349
/**
350350
* Array of the synced threads
351351
*/
352-
threads: APIChannel[];
352+
threads: APIThreadChannel[];
353353
/**
354354
* The member objects for the client user in each joined thread that was synced
355355
*/

0 commit comments

Comments
 (0)