mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: fmt
This commit is contained in:
@@ -155,11 +155,13 @@ function makeEmojiFromString(
|
||||
) {
|
||||
if (!emoji) return;
|
||||
|
||||
if (typeof emoji !== "string") return {
|
||||
id: emoji.id ? BigInt(emoji.id) : undefined,
|
||||
name: emoji.name,
|
||||
animated: emoji.animated,
|
||||
};
|
||||
if (typeof emoji !== "string") {
|
||||
return {
|
||||
id: emoji.id ? BigInt(emoji.id) : undefined,
|
||||
name: emoji.name,
|
||||
animated: emoji.animated,
|
||||
};
|
||||
}
|
||||
|
||||
// A snowflake id was provided
|
||||
if (/^[0-9]+$/.test(emoji)) {
|
||||
|
||||
Reference in New Issue
Block a user