seyfert/structures/MessageReaction.ts
2022-07-03 13:14:47 -05:00

24 lines
625 B
TypeScript

import type { Session } from "../session/Session.ts";
import type { DiscordReaction } from "../vendor/external.ts";
import Emoji from "./Emoji.ts";
/**
* Represents a reaction
* @link https://discord.com/developers/docs/resources/channel#reaction-object
* */
export class MessageReaction {
constructor(session: Session, data: DiscordReaction) {
this.session = session;
this.me = data.me;
this.count = data.count;
this.emoji = new Emoji(session, data.emoji);
}
readonly session: Session;
me: boolean;
count: number;
emoji: Emoji;
}
export default MessageReaction;