diff --git a/deno/payloads/v10/emoji.ts b/deno/payloads/v10/emoji.ts index 9117d25f..9315d852 100644 --- a/deno/payloads/v10/emoji.ts +++ b/deno/payloads/v10/emoji.ts @@ -3,6 +3,7 @@ */ import type { Snowflake } from '../../globals.ts'; +import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIRole } from './permissions.ts'; import type { APIUser } from './user.ts'; @@ -49,3 +50,33 @@ export interface APIEmoji extends APIPartialEmoji { */ available?: boolean; } + +/** + * @see {@link https://discord.com/developers/docs/resources/emoji#emoji-object-applicationowned-emoji} + */ +export type APIApplicationEmoji = _NonNullableFields>> & { + /** + * Roles allowed to use this emoji. + * + * @remarks Always empty. + */ + roles: []; + /** + * Whether this emoji must be wrapped in colons. + * + * @remarks Always `true`. + */ + require_colons: true; + /** + * Whether this emoji is managed. + * + * @remarks Always `false`. + */ + managed: false; + /** + * Whether this emoji is available. + * + * @remarks Always `true`. + */ + available: true; +}; diff --git a/deno/payloads/v9/emoji.ts b/deno/payloads/v9/emoji.ts index 9117d25f..9315d852 100644 --- a/deno/payloads/v9/emoji.ts +++ b/deno/payloads/v9/emoji.ts @@ -3,6 +3,7 @@ */ import type { Snowflake } from '../../globals.ts'; +import type { _NonNullableFields } from '../../utils/internals.ts'; import type { APIRole } from './permissions.ts'; import type { APIUser } from './user.ts'; @@ -49,3 +50,33 @@ export interface APIEmoji extends APIPartialEmoji { */ available?: boolean; } + +/** + * @see {@link https://discord.com/developers/docs/resources/emoji#emoji-object-applicationowned-emoji} + */ +export type APIApplicationEmoji = _NonNullableFields>> & { + /** + * Roles allowed to use this emoji. + * + * @remarks Always empty. + */ + roles: []; + /** + * Whether this emoji must be wrapped in colons. + * + * @remarks Always `true`. + */ + require_colons: true; + /** + * Whether this emoji is managed. + * + * @remarks Always `false`. + */ + managed: false; + /** + * Whether this emoji is available. + * + * @remarks Always `true`. + */ + available: true; +}; diff --git a/deno/rest/v10/emoji.ts b/deno/rest/v10/emoji.ts index 3f6e5173..4d6431b3 100644 --- a/deno/rest/v10/emoji.ts +++ b/deno/rest/v10/emoji.ts @@ -1,5 +1,5 @@ import type { Snowflake } from '../../globals.ts'; -import type { APIEmoji } from '../../payloads/v10/mod.ts'; +import type { APIApplicationEmoji, APIEmoji } from '../../payloads/v10.ts'; /** * @see {@link https://discord.com/developers/docs/resources/emoji#list-guild-emojis} @@ -64,13 +64,13 @@ export type RESTDeleteAPIGuildEmojiResult = never; * @see {@link https://discord.com/developers/docs/resources/emoji#list-application-emojis} */ export interface RESTGetAPIApplicationEmojisResult { - items: APIEmoji[]; + items: APIApplicationEmoji[]; } /** * @see {@link https://discord.com/developers/docs/resources/emoji#get-application-emoji} */ -export type RESTGetAPIApplicationEmojiResult = APIEmoji; +export type RESTGetAPIApplicationEmojiResult = APIApplicationEmoji; /** * @see {@link https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params} @@ -80,7 +80,7 @@ export type RESTPostAPIApplicationEmojiJSONBody = Pick>> & { + /** + * Roles allowed to use this emoji. + * + * @remarks Always empty. + */ + roles: []; + /** + * Whether this emoji must be wrapped in colons. + * + * @remarks Always `true`. + */ + require_colons: true; + /** + * Whether this emoji is managed. + * + * @remarks Always `false`. + */ + managed: false; + /** + * Whether this emoji is available. + * + * @remarks Always `true`. + */ + available: true; +}; diff --git a/payloads/v9/emoji.ts b/payloads/v9/emoji.ts index ea0f6c86..cee792ed 100644 --- a/payloads/v9/emoji.ts +++ b/payloads/v9/emoji.ts @@ -3,6 +3,7 @@ */ import type { Snowflake } from '../../globals'; +import type { _NonNullableFields } from '../../utils/internals'; import type { APIRole } from './permissions'; import type { APIUser } from './user'; @@ -49,3 +50,33 @@ export interface APIEmoji extends APIPartialEmoji { */ available?: boolean; } + +/** + * @see {@link https://discord.com/developers/docs/resources/emoji#emoji-object-applicationowned-emoji} + */ +export type APIApplicationEmoji = _NonNullableFields>> & { + /** + * Roles allowed to use this emoji. + * + * @remarks Always empty. + */ + roles: []; + /** + * Whether this emoji must be wrapped in colons. + * + * @remarks Always `true`. + */ + require_colons: true; + /** + * Whether this emoji is managed. + * + * @remarks Always `false`. + */ + managed: false; + /** + * Whether this emoji is available. + * + * @remarks Always `true`. + */ + available: true; +}; diff --git a/rest/v10/emoji.ts b/rest/v10/emoji.ts index c855bddd..296d2b54 100644 --- a/rest/v10/emoji.ts +++ b/rest/v10/emoji.ts @@ -1,5 +1,5 @@ import type { Snowflake } from '../../globals'; -import type { APIEmoji } from '../../payloads/v10/index'; +import type { APIApplicationEmoji, APIEmoji } from '../../payloads/v10'; /** * @see {@link https://discord.com/developers/docs/resources/emoji#list-guild-emojis} @@ -64,13 +64,13 @@ export type RESTDeleteAPIGuildEmojiResult = never; * @see {@link https://discord.com/developers/docs/resources/emoji#list-application-emojis} */ export interface RESTGetAPIApplicationEmojisResult { - items: APIEmoji[]; + items: APIApplicationEmoji[]; } /** * @see {@link https://discord.com/developers/docs/resources/emoji#get-application-emoji} */ -export type RESTGetAPIApplicationEmojiResult = APIEmoji; +export type RESTGetAPIApplicationEmojiResult = APIApplicationEmoji; /** * @see {@link https://discord.com/developers/docs/resources/emoji#create-application-emoji-json-params} @@ -80,7 +80,7 @@ export type RESTPostAPIApplicationEmojiJSONBody = Pick