mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
23 lines
657 B
TypeScript
23 lines
657 B
TypeScript
import type { Session } from "../session/Session.ts";
|
|
import type { Snowflake } from "../util/Snowflake.ts";
|
|
import type { DiscordEmoji } from "../vendor/external.ts";
|
|
|
|
export class Emoji {
|
|
constructor(session: Session, data: DiscordEmoji) {
|
|
this.id = data.id;
|
|
this.name = data.name;
|
|
this.animated = !!data.animated;
|
|
this.available = !!data.available;
|
|
this.requireColons = !!data.require_colons;
|
|
this.session = session;
|
|
}
|
|
readonly id?: Snowflake;
|
|
readonly session: Session;
|
|
name?: string;
|
|
animated: boolean;
|
|
available: boolean;
|
|
requireColons: boolean;
|
|
}
|
|
|
|
export default Emoji;
|