Skip to content

Commit 8e5f07e

Browse files
author
Vitor
authored
feat(RESTPostAPIWebhookWithTokenJSONBody): add thread_name (#463)
* feat(RESTPostAPIWebhookWithTokenJSONBody): add `thread_name` * docs: update from upstream * docs: make it clear
1 parent 1c6ea86 commit 8e5f07e

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

deno/rest/v10/webhook.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
144144
* Message flags combined as a bitfield
145145
*/
146146
flags?: MessageFlags;
147+
/**
148+
* Name of thread to create
149+
*
150+
* Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter
151+
*/
152+
thread_name: string;
147153
}>;
148154

149155
/**
@@ -171,6 +177,8 @@ export interface RESTPostAPIWebhookWithTokenQuery {
171177
wait?: boolean;
172178
/**
173179
* Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.
180+
*
181+
* Available only if the {@link RESTPostAPIWebhookWithTokenJSONBody.thread_name} JSON body property is not specified
174182
*/
175183
thread_id?: Snowflake;
176184
}

deno/rest/v9/webhook.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
144144
* Message flags combined as a bitfield
145145
*/
146146
flags?: MessageFlags;
147+
/**
148+
* Name of thread to create
149+
*
150+
* Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter
151+
*/
152+
thread_name: string;
147153
}>;
148154

149155
/**
@@ -171,6 +177,8 @@ export interface RESTPostAPIWebhookWithTokenQuery {
171177
wait?: boolean;
172178
/**
173179
* Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.
180+
*
181+
* Available only if the {@link RESTPostAPIWebhookWithTokenJSONBody.thread_name} JSON body property is not specified
174182
*/
175183
thread_id?: Snowflake;
176184
}

rest/v10/webhook.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
144144
* Message flags combined as a bitfield
145145
*/
146146
flags?: MessageFlags;
147+
/**
148+
* Name of thread to create
149+
*
150+
* Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter
151+
*/
152+
thread_name: string;
147153
}>;
148154

149155
/**
@@ -171,6 +177,8 @@ export interface RESTPostAPIWebhookWithTokenQuery {
171177
wait?: boolean;
172178
/**
173179
* Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.
180+
*
181+
* Available only if the {@link RESTPostAPIWebhookWithTokenJSONBody.thread_name} JSON body property is not specified
174182
*/
175183
thread_id?: Snowflake;
176184
}

rest/v9/webhook.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine
144144
* Message flags combined as a bitfield
145145
*/
146146
flags?: MessageFlags;
147+
/**
148+
* Name of thread to create
149+
*
150+
* Available only if the webhook is in a forum channel and a thread is not specified in {@link RESTPostAPIWebhookWithTokenQuery.thread_id} query parameter
151+
*/
152+
thread_name: string;
147153
}>;
148154

149155
/**
@@ -171,6 +177,8 @@ export interface RESTPostAPIWebhookWithTokenQuery {
171177
wait?: boolean;
172178
/**
173179
* Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived.
180+
*
181+
* Available only if the {@link RESTPostAPIWebhookWithTokenJSONBody.thread_name} JSON body property is not specified
174182
*/
175183
thread_id?: Snowflake;
176184
}

0 commit comments

Comments
 (0)