UNPKG

guilded.ts

Version:

A powerful NPM module that allows you to easily interact with the Guilded API.

25 lines 946 B
import { Message } from '../../structures/message/Message'; import { MessageReaction } from '../../structures/message/MessageReaction'; import { BaseManager } from '../BaseManager'; /** * The manager of reactions that belong to a message. * @example new MessageReactionManager(message); */ export declare class MessageReactionManager extends BaseManager<number, MessageReaction> { readonly message: Message; /** @param message The message the reactions belong to. */ constructor(message: Message); /** * Add a reaction to the message. * @param emojiId The ID of the emoji to react with. * @example reactions.add(123); */ add(emojiId: number): Promise<void>; /** * Remove a reaction from message. * @param emojiId The ID of the emoji to remove. * @example reactions.remove(123); */ remove(emojiId: number): Promise<void>; } //# sourceMappingURL=MessageReactionManager.d.ts.map