Skip to content

Commit 221325f

Browse files
committed
feat: update for better modeling
1 parent 2128d28 commit 221325f

7 files changed

Lines changed: 14 additions & 22 deletions

File tree

src/payloads/Achievement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export enum AchievementId {
1616
BotKiller = 'BOT_KILLER',
1717
}
1818

19-
export interface APIAchievement<IDType = string> {
20-
_id: IDType;
19+
export interface APIAchievement {
20+
id: string;
2121
/**
2222
* The Discord Snowflake ID of the user who earned the achievement.
2323
*/

src/payloads/Channel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const CountingModes = [
1515

1616
export type CountingMode = (typeof CountingModes)[number];
1717

18-
export interface APICountingChannel<IDType = string> {
19-
_id: IDType;
18+
export interface APICountingChannel {
19+
id: string;
2020
/**
2121
* If the channel is enabled.
2222
*/

src/payloads/ChannelModifiers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Modifiers } from '../utils/BaseModifier.js';
22

3-
export interface APICountingChannelModifiers<IDType = string> {
3+
export interface APICountingChannelModifiers {
44
/**
55
* The ObjectID of the channel modifiers
66
*/
7-
_id: IDType;
7+
id: string;
88
/**
99
* The ID of the channel these modifiers are for.
1010
*/

src/payloads/Guild.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { LanguageCode } from '../utils/index.js';
22

3-
export interface APICountingGuild<IDType = string> {
4-
/**
5-
* The ObjectID of the guild
6-
*/
7-
_id: IDType;
3+
export interface APICountingGuild {
84
/**
95
* The Discord Snowflake of the guild
106
*/

src/payloads/Summary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export interface APICountingSummary<IDType = string> {
2-
_id: IDType;
1+
export interface APICountingSummary {
2+
id: string;
33
/**
44
* If the summary is the current one
55
*/

src/payloads/User.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import { ItemString } from '../utils/items.js';
22

3-
export interface APICountingUser<IDType = string> {
4-
/**
5-
* The ObjectID of the user
6-
*/
7-
_id: IDType;
3+
export interface APICountingUser {
84
/**
95
* The Discord Snowflake ID of the user
106
*/
11-
userId: string;
7+
id: string;
128
/**
139
* The amount of coins the user has
1410
*/

src/payloads/UserModifiers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Modifiers } from '../utils/BaseModifier.js';
22

3-
export interface APICountingUserModifiers<IDType = string> {
3+
export interface APICountingUserModifiers {
44
/**
5-
* The ObjectID of the user modifiers
5+
* The id of the user modifiers
66
*/
7-
_id: IDType;
7+
id: string;
88
/**
99
* The ID of the user these modifiers are for.
1010
*/

0 commit comments

Comments
 (0)