Skip to content

Commit dc924c4

Browse files
committed
feat: api error codes
1 parent 46ad44a commit dc924c4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

src/utils/CountBotAPIErrorCode.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
export enum CountBotAPIErrorCode {
2+
AchievementAlreadyExists = 'AchievementAlreadyExists',
3+
ChannelAlreadyExists = 'ChannelAlreadyExists',
4+
ChannelUpdateInvalidField = 'ChannelUpdateInvalidField',
5+
ChannelCustomReactionsPremiumOnly = 'ChannelCustomReactionsPremiumOnly',
6+
ChannelLimitReached = 'ChannelLimitReached',
7+
ChannelConfigGoalActive = 'ChannelConfigGoalActive',
8+
ChannelDefaultLimitReached = 'ChannelDefaultLimitReached',
9+
ChannelGoalNotActive = 'ChannelGoalNotActive',
10+
ChannelGoalUpdateAlreadyActive = 'ChannelGoalUpdateAlreadyActive',
11+
ChannelGoalUpdateFailInvalidGoalNumber = 'ChannelGoalUpdateFailInvalidGoalNumber',
12+
ChannelGoalUpdateModeNotDefault = 'ChannelGoalUpdateModeNotDefault',
13+
ChannelGoalUpdateRolePremiumOnly = 'ChannelGoalUpdateRolePremiumOnly',
14+
ChannelModifiersNotFound = 'ChannelModifiersNotFound',
15+
ChannelUpdateModeGoalActive = 'ChannelUpdateModeGoalActive',
16+
ChannelUpdateModePremiumOnly = 'ChannelModePremiumOnly',
17+
ChannelNotFound = 'ChannelNotFound',
18+
ChannelPremiumLimitReached = 'ChannelPremiumLimitReached',
19+
ChannelTransferIdConflict = 'ChannelTransferIdConflict',
20+
ChannelUpdateFailed = 'ChannelUpdateFailed',
21+
CountNotANumber = 'CountNotANumber',
22+
GuildAlreadyExists = 'GuildAlreadyExists',
23+
GuildNotFound = 'GuildNotFound',
24+
ShopSizeInvalid = 'ShopSizeInvalid',
25+
UserAlreadyExists = 'UserAlreadyExists',
26+
UserNotEnoughCoins = 'UserNotEnoughCoins',
27+
UserNotFound = 'UserNotFound',
28+
UserInventoryFull = 'UserInventoryFull',
29+
UserItemNotFound = 'UserItemNotFound',
30+
UserItemUseCooldown = 'UserItemUseCooldown',
31+
UserSelfFreeze = 'UserSelfFreeze',
32+
UnknownError = 'UnknownError',
33+
}

0 commit comments

Comments
 (0)