Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
Signed-off-by: cobalt <[email protected]>
  • Loading branch information
cobaltt7 committed Oct 22, 2024
1 parent b3c6645 commit b1e6ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/cobaltt7/strife.js"
"url": "git+https://github.com/cobaltt7/strife.js.git"
},
"license": "MIT",
"author": {
Expand Down
3 changes: 1 addition & 2 deletions src/util/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
bold,
chatInputApplicationCommandMention,
escapeMarkdown,
formatEmoji,
lazy,
type Snowflake,
} from "discord.js";
Expand Down Expand Up @@ -69,7 +68,7 @@ export function formatAnyEmoji(
): string | undefined {
if (typeof options === "string") return options;
if (typeof options?.id !== "string") return options?.name ?? undefined;
return `<${options.animated ? "a" : ""}:emoji:${options.id}>`;
return `<${options.animated ? "a" : ""}:${options?.name ?? "emoji"}:${options.id}>`;
}

/** A global regular expression variant of {@link MessageMentions.UsersPattern}. */
Expand Down

0 comments on commit b1e6ed6

Please sign in to comment.