diff --git a/deno/rest/v10/emoji.ts b/deno/rest/v10/emoji.ts index 43b13f0fd..d1fc13218 100644 --- a/deno/rest/v10/emoji.ts +++ b/deno/rest/v10/emoji.ts @@ -59,3 +59,40 @@ export type RESTPatchAPIGuildEmojiResult = APIEmoji; * https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */ export type RESTDeleteAPIGuildEmojiResult = never; + +/** + * https://discord.com/developers/docs/resources/emoji#list-application-emojis + */ +export interface RESTGetAPIApplicationEmojisResult { + items: APIEmoji[]; +} + +/** + * https://discord.com/developers/docs/resources/emoji#get-application-emoji + */ +export type RESTGetAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params + */ +export type RESTPostAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji + */ +export type RESTPostAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#delete-application-emoji + */ +export type RESTDeleteAPIApplicationEmojiResult = never; diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index 901697785..702d0ee63 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -32,6 +32,7 @@ export const Routes = { applicationRoleConnectionMetadata(applicationId: Snowflake) { return `/applications/${applicationId}/role-connections/metadata` as const; }, + /** * Route for: * - GET `/guilds/{guild.id}/auto-moderation/rules` @@ -912,8 +913,8 @@ export const Routes = { /** * Route for: - * - GET `/guilds/${guild.id}/onboarding` - * - PUT `/guilds/${guild.id}/onboarding` + * - GET `/guilds/{guild.id}/onboarding` + * - PUT `/guilds/{guild.id}/onboarding` */ guildOnboarding(guildId: Snowflake) { return `/guilds/${guildId}/onboarding` as const; @@ -963,11 +964,30 @@ export const Routes = { /** * Route for: - * - POST `/applications/${application.id}/entitlements/${entitlement.id}/consume` + * - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume` */ consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake) { return `/applications/${applicationId}/entitlements/${entitlementId}/consume` as const; }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis` + * - POST `/applications/{application.id}/emojis` + */ + applicationEmojis(applicationId: Snowflake) { + return `/applications/${applicationId}/emojis` as const; + }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis/{emoji.id}` + * - PATCH `/applications/{application.id}/emojis/{emoji.id}` + * - DELETE `/applications/{application.id}/emojis/{emoji.id}` + */ + applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) { + return `/applications/${applicationId}/emojis/${emojiId}` as const; + }, }; export const StickerPackApplicationId = '710982414301790216'; diff --git a/deno/rest/v9/emoji.ts b/deno/rest/v9/emoji.ts index 0c4451c39..1a025377a 100644 --- a/deno/rest/v9/emoji.ts +++ b/deno/rest/v9/emoji.ts @@ -59,3 +59,40 @@ export type RESTPatchAPIGuildEmojiResult = APIEmoji; * https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */ export type RESTDeleteAPIGuildEmojiResult = never; + +/** + * https://discord.com/developers/docs/resources/emoji#list-application-emojis + */ +export interface RESTGetAPIApplicationEmojisResult { + items: APIEmoji[]; +} + +/** + * https://discord.com/developers/docs/resources/emoji#get-application-emoji + */ +export type RESTGetAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params + */ +export type RESTPostAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji + */ +export type RESTPostAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#delete-application-emoji + */ +export type RESTDeleteAPIApplicationEmojiResult = never; diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index 57f5fc103..cd68adc0b 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -32,6 +32,7 @@ export const Routes = { applicationRoleConnectionMetadata(applicationId: Snowflake) { return `/applications/${applicationId}/role-connections/metadata` as const; }, + /** * Route for: * - GET `/guilds/{guild.id}/auto-moderation/rules` @@ -921,8 +922,8 @@ export const Routes = { /** * Route for: - * - GET `/guilds/${guild.id}/onboarding` - * - PUT `/guilds/${guild.id}/onboarding` + * - GET `/guilds/{guild.id}/onboarding` + * - PUT `/guilds/{guild.id}/onboarding` */ guildOnboarding(guildId: Snowflake) { return `/guilds/${guildId}/onboarding` as const; @@ -972,11 +973,30 @@ export const Routes = { /** * Route for: - * - POST `/applications/${application.id}/entitlements/${entitlement.id}/consume` + * - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume` */ consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake) { return `/applications/${applicationId}/entitlements/${entitlementId}/consume` as const; }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis` + * - POST `/applications/{application.id}/emojis` + */ + applicationEmojis(applicationId: Snowflake) { + return `/applications/${applicationId}/emojis` as const; + }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis/{emoji.id}` + * - PATCH `/applications/{application.id}/emojis/{emoji.id}` + * - DELETE `/applications/{application.id}/emojis/{emoji.id}` + */ + applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) { + return `/applications/${applicationId}/emojis/${emojiId}` as const; + }, }; export const StickerPackApplicationId = '710982414301790216'; diff --git a/rest/v10/emoji.ts b/rest/v10/emoji.ts index c87855a6f..cbf54c0f3 100644 --- a/rest/v10/emoji.ts +++ b/rest/v10/emoji.ts @@ -59,3 +59,40 @@ export type RESTPatchAPIGuildEmojiResult = APIEmoji; * https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */ export type RESTDeleteAPIGuildEmojiResult = never; + +/** + * https://discord.com/developers/docs/resources/emoji#list-application-emojis + */ +export interface RESTGetAPIApplicationEmojisResult { + items: APIEmoji[]; +} + +/** + * https://discord.com/developers/docs/resources/emoji#get-application-emoji + */ +export type RESTGetAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params + */ +export type RESTPostAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji + */ +export type RESTPostAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#delete-application-emoji + */ +export type RESTDeleteAPIApplicationEmojiResult = never; diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 66cda6311..2627467fd 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -32,6 +32,7 @@ export const Routes = { applicationRoleConnectionMetadata(applicationId: Snowflake) { return `/applications/${applicationId}/role-connections/metadata` as const; }, + /** * Route for: * - GET `/guilds/{guild.id}/auto-moderation/rules` @@ -912,8 +913,8 @@ export const Routes = { /** * Route for: - * - GET `/guilds/${guild.id}/onboarding` - * - PUT `/guilds/${guild.id}/onboarding` + * - GET `/guilds/{guild.id}/onboarding` + * - PUT `/guilds/{guild.id}/onboarding` */ guildOnboarding(guildId: Snowflake) { return `/guilds/${guildId}/onboarding` as const; @@ -963,11 +964,30 @@ export const Routes = { /** * Route for: - * - POST `/applications/${application.id}/entitlements/${entitlement.id}/consume` + * - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume` */ consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake) { return `/applications/${applicationId}/entitlements/${entitlementId}/consume` as const; }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis` + * - POST `/applications/{application.id}/emojis` + */ + applicationEmojis(applicationId: Snowflake) { + return `/applications/${applicationId}/emojis` as const; + }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis/{emoji.id}` + * - PATCH `/applications/{application.id}/emojis/{emoji.id}` + * - DELETE `/applications/{application.id}/emojis/{emoji.id}` + */ + applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) { + return `/applications/${applicationId}/emojis/${emojiId}` as const; + }, }; export const StickerPackApplicationId = '710982414301790216'; diff --git a/rest/v9/emoji.ts b/rest/v9/emoji.ts index 60771f620..234274ee3 100644 --- a/rest/v9/emoji.ts +++ b/rest/v9/emoji.ts @@ -59,3 +59,40 @@ export type RESTPatchAPIGuildEmojiResult = APIEmoji; * https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */ export type RESTDeleteAPIGuildEmojiResult = never; + +/** + * https://discord.com/developers/docs/resources/emoji#list-application-emojis + */ +export interface RESTGetAPIApplicationEmojisResult { + items: APIEmoji[]; +} + +/** + * https://discord.com/developers/docs/resources/emoji#get-application-emoji + */ +export type RESTGetAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params + */ +export type RESTPostAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#create-application-emoji + */ +export type RESTPostAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiJSONBody = Pick; + +/** + * https://discord.com/developers/docs/resources/emoji#modify-application-emoji + */ +export type RESTPatchAPIApplicationEmojiResult = APIEmoji; + +/** + * https://discord.com/developers/docs/resources/emoji#delete-application-emoji + */ +export type RESTDeleteAPIApplicationEmojiResult = never; diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 129f728a5..3e8a47fe0 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -32,6 +32,7 @@ export const Routes = { applicationRoleConnectionMetadata(applicationId: Snowflake) { return `/applications/${applicationId}/role-connections/metadata` as const; }, + /** * Route for: * - GET `/guilds/{guild.id}/auto-moderation/rules` @@ -921,8 +922,8 @@ export const Routes = { /** * Route for: - * - GET `/guilds/${guild.id}/onboarding` - * - PUT `/guilds/${guild.id}/onboarding` + * - GET `/guilds/{guild.id}/onboarding` + * - PUT `/guilds/{guild.id}/onboarding` */ guildOnboarding(guildId: Snowflake) { return `/guilds/${guildId}/onboarding` as const; @@ -972,11 +973,30 @@ export const Routes = { /** * Route for: - * - POST `/applications/${application.id}/entitlements/${entitlement.id}/consume` + * - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume` */ consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake) { return `/applications/${applicationId}/entitlements/${entitlementId}/consume` as const; }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis` + * - POST `/applications/{application.id}/emojis` + */ + applicationEmojis(applicationId: Snowflake) { + return `/applications/${applicationId}/emojis` as const; + }, + + /** + * Route for: + * - GET `/applications/{application.id}/emojis/{emoji.id}` + * - PATCH `/applications/{application.id}/emojis/{emoji.id}` + * - DELETE `/applications/{application.id}/emojis/{emoji.id}` + */ + applicationEmoji(applicationId: Snowflake, emojiId: Snowflake) { + return `/applications/${applicationId}/emojis/${emojiId}` as const; + }, }; export const StickerPackApplicationId = '710982414301790216';