class

Tourmaline::ProximityAlertTriggered

Inherits JSON::Serializable / Reference / Object

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Constructors

new(traveler : Tourmaline::User, watcher : Tourmaline::User, distance : Int32 | Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

distance

The distance between the users

Source
distance=(distance : Int32 | Int64)

The distance between the users

Source
traveler

User that triggered the alert

Source
traveler=(traveler : Tourmaline::User)

User that triggered the alert

Source
watcher

User that set the alert

Source
watcher=(watcher : Tourmaline::User)

User that set the alert

Source