Skip to content

Commit

Permalink
deprecate HelixCustomReward#autoApproved and rename it to autoFulfill
Browse files Browse the repository at this point in the history
fixes #300
  • Loading branch information
d-fischer committed Oct 20, 2021
1 parent 18bad65 commit bdbe208
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/api/src/api/helix/channelPoints/HelixCustomReward.ts
Expand Up @@ -206,7 +206,16 @@ export class HelixCustomReward extends DataObject<HelixCustomRewardData> {
}

/**
* Whether redemptions should be automatically approved.
* Whether redemptions should automatically be marked as fulfilled.
*/
get autoFulfill(): boolean {
return this[rawDataSymbol].should_redemptions_skip_request_queue;
}

/**
* Whether redemptions should automatically be marked as fulfilled.
*
* @deprecated Use `autoFulfill` instead.
*/
get autoApproved(): boolean {
return this[rawDataSymbol].should_redemptions_skip_request_queue;
Expand Down

0 comments on commit bdbe208

Please sign in to comment.