Yuzu b15666f20e
chore: use single quotes (#68)
* chore: single quote
2022-07-18 18:25:23 +00:00

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;