@discordjs/formatters
Advanced tools
Comparing version 0.6.0-dev.1730981090-c97310681 to 0.6.0-dev.1731326712-f2f7f1f65
@@ -373,3 +373,3 @@ import { URL } from 'node:url'; | ||
*/ | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: false): `<:_:${EmojiId}>`; | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: false): `<:emoji:${EmojiId}>`; | ||
/** | ||
@@ -382,3 +382,3 @@ * Formats an animated emoji id into a fully qualified emoji identifier. | ||
*/ | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: true): `<a:_:${EmojiId}>`; | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: true): `<a:emoji:${EmojiId}>`; | ||
/** | ||
@@ -391,3 +391,3 @@ * Formats an emoji id into a fully qualified emoji identifier. | ||
*/ | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: boolean): `<:_:${EmojiId}>` | `<a:_:${EmojiId}>`; | ||
declare function formatEmoji<EmojiId extends Snowflake>(emojiId: EmojiId, animated?: boolean): `<:emoji:${EmojiId}>` | `<a:emoji:${EmojiId}>`; | ||
/** | ||
@@ -394,0 +394,0 @@ * Formats a non-animated emoji id and name into a fully qualified emoji identifier. |
@@ -293,3 +293,3 @@ "use strict"; | ||
const { id, animated: isAnimated, name: emojiName } = options; | ||
return `<${isAnimated ? "a" : ""}:${emojiName ?? "_"}:${id}>`; | ||
return `<${isAnimated ? "a" : ""}:${emojiName ?? "emoji"}:${id}>`; | ||
} | ||
@@ -412,3 +412,3 @@ __name(formatEmoji, "formatEmoji"); | ||
// src/index.ts | ||
var version = "0.6.0-dev.1730981090-c97310681"; | ||
var version = "0.6.0-dev.1731326712-f2f7f1f65"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -415,0 +415,0 @@ 0 && (module.exports = { |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@discordjs/formatters", | ||
"version": "0.6.0-dev.1730981090-c97310681", | ||
"version": "0.6.0-dev.1731326712-f2f7f1f65", | ||
"description": "A set of functions to format strings for Discord.", | ||
@@ -6,0 +6,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172580