Skip to content

Commit

Permalink
chore: ensure routes definitions emit correct paths
Browse files Browse the repository at this point in the history
to prevent a repeat of a bug
  • Loading branch information
vladfrangu committed Jul 20, 2024
1 parent eb7b3d9 commit 799044d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deno/rest/v10/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ export const Routes = {
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) {
return `/applications/${applicationId}/emojis/${emojiId}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export const StickerPackApplicationId = '710982414301790216';

Expand Down Expand Up @@ -1277,7 +1277,7 @@ export const CDNRoutes = {
) {
return `/guilds/${guildId}/users/${userId}/banners/${guildMemberBanner}.${format}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;

Expand Down
4 changes: 2 additions & 2 deletions deno/rest/v9/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ export const Routes = {
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) {
return `/applications/${applicationId}/emojis/${emojiId}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export const StickerPackApplicationId = '710982414301790216';

Expand Down Expand Up @@ -1286,7 +1286,7 @@ export const CDNRoutes = {
) {
return `/guilds/${guildId}/users/${userId}/banners/${guildMemberBanner}.${format}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;

Expand Down
4 changes: 2 additions & 2 deletions rest/v10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ export const Routes = {
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) {
return `/applications/${applicationId}/emojis/${emojiId}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export const StickerPackApplicationId = '710982414301790216';

Expand Down Expand Up @@ -1277,7 +1277,7 @@ export const CDNRoutes = {
) {
return `/guilds/${guildId}/users/${userId}/banners/${guildMemberBanner}.${format}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;

Expand Down
4 changes: 2 additions & 2 deletions rest/v9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ export const Routes = {
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) {
return `/applications/${applicationId}/emojis/${emojiId}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export const StickerPackApplicationId = '710982414301790216';

Expand Down Expand Up @@ -1286,7 +1286,7 @@ export const CDNRoutes = {
) {
return `/guilds/${guildId}/users/${userId}/banners/${guildMemberBanner}.${format}` as const;
},
};
} satisfies Record<string, (...args: unknown[]) => `/${string}`>;

export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;

Expand Down

0 comments on commit 799044d

Please sign in to comment.