Class MessageReactionsKt
-
- All Implemented Interfaces:
public final class MessageReactionsKt
-
-
Method Summary
Modifier and Type Method Description final static MessageaddMyReaction(Message $self, Reaction reaction, Boolean enforceUnique)Add a Reaction created by the currently logged user to the given Message. final static MessageremoveMyReaction(Message $self, Reaction reaction)Remove a Reaction created by the currently logged user from the given Message. -
-
Method Detail
-
addMyReaction
final static Message addMyReaction(Message $self, Reaction reaction, Boolean enforceUnique)
Add a Reaction created by the currently logged user to the given Message.
- Parameters:
reaction- The reaction to add.enforceUnique- If true, the reaction will be added only if the user hasn't already added a reaction of the same type.
-
removeMyReaction
final static Message removeMyReaction(Message $self, Reaction reaction)
Remove a Reaction created by the currently logged user from the given Message.
- Parameters:
reaction- The reaction to remove.
-
-
-
-