chore: emoji changes

This commit is contained in:
izzy
2025-06-06 16:23:27 +01:00
parent 002357ff4a
commit 165195a37a
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -81,6 +81,15 @@ export class Emoji {
return this.#collection.getUnderlyingObject(this.id).nsfw;
}
/**
* URL to emoji
*/
get url() {
return `${this.#collection.client.configuration?.features.autumn.url}/emojis/${
this.id
}`;
}
/**
* Delete Emoji
*/
+9
View File
@@ -746,6 +746,15 @@ export class Server {
);
}
/**
* All emojis tied to this server
*/
get emojis(): Emoji[] {
return this.#collection.client.emojis.filter(
(emoji) => emoji.parent.type === "Server" && emoji.parent.id === this.id,
);
}
/**
* Delete emoji
* @param emojiId Emoji ID