mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
24 lines
647 B
TypeScript
24 lines
647 B
TypeScript
import type { Session } from '../Session.ts';
|
|
import type { Snowflake } from '../Snowflake.ts';
|
|
import type { DiscordEmoji } from '../../discordeno/mod.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;
|