Skip to content

Commit

Permalink
feat(RESTJSONErrorCodes): add sticker errors (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 19, 2021
1 parent 5dccc6b commit 8dbeca0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions deno/rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export enum RESTJSONErrorCodes {
MaximumActiveAnnouncementThreads,

InvalidJSONForUploadedLottieFile = 170001,

LottieAnimationMaximumDimensionsExceeded = 170005,
UploadedLottiesCannotContainRasterizedImages,
StickerMaximumFramerateExceeded,
StickerFrameCountExceedsMaximumOf1000Frames,
LottieAnimationMaximumDimensionsExceeded,
StickerFramerateIsTooSmallOrTooLarge,
StickerAnimationDurationExceedsMaximumOf5Seconds,
}
8 changes: 6 additions & 2 deletions rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export const enum RESTJSONErrorCodes {
MaximumActiveAnnouncementThreads,

InvalidJSONForUploadedLottieFile = 170001,

LottieAnimationMaximumDimensionsExceeded = 170005,
UploadedLottiesCannotContainRasterizedImages,
StickerMaximumFramerateExceeded,
StickerFrameCountExceedsMaximumOf1000Frames,
LottieAnimationMaximumDimensionsExceeded,
StickerFramerateIsTooSmallOrTooLarge,
StickerAnimationDurationExceedsMaximumOf5Seconds,
}

0 comments on commit 8dbeca0

Please sign in to comment.