PrivateParlorXT::VideoNoteHandler
Inherits PrivateParlorXT::UpdateHandler < PrivateParlorXT::Handler < Reference < Object
A handler for video note message updates
Instance methods
Checks if the video note message meets requirements and relays it
Checks if the user is spamming video note messages
Returns true if the user is spamming video note messages, false otherwise
spend_karma(user : User, services : Services) : User
Returns the User with decremented karma when KarmaHandler is enabled and
user has sufficient karma for a video note message
Checks if the user has sufficient karma to send a video note message when KarmaHandler is enabled
Returns true if:
KarmaHandleris not enabled- The price for video note messages is less than 0
- The user's
Rankis equal to or greater than the cutoffRank - User has sufficient karma
Returns nil if the user does not have sufficient karma