Skip to content

Commit

Permalink
fix: replace deprecated RESTAPIPollCreate with RESTAPIPoll (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza authored Sep 5, 2024
1 parent 344274b commit d3b5187
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno/rest/v10/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
poll?: RESTAPIPoll | undefined;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion deno/rest/v9/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
poll?: RESTAPIPoll | undefined;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion rest/v10/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
poll?: RESTAPIPoll | undefined;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion rest/v9/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
poll?: RESTAPIPoll | undefined;
};

/**
Expand Down

0 comments on commit d3b5187

Please sign in to comment.