Skip to content

class Tourmaline::GiveawayCompleted
inherits Reference #

This object represents a service message about the completion of a giveaway without public winners.

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(winner_count, unclaimed_prize_count : Int32 | Int64 | Nil = nil, giveaway_message : Tourmaline::Message? = nil) #

View source

Methods#

#giveaway_message : Tourmaline::Message? #

Optional. Message with the giveaway that was completed, if it wasn't deleted

View source

#giveaway_message=(giveaway_message : Tourmaline::Message?) #

Optional. Message with the giveaway that was completed, if it wasn't deleted

View source

#unclaimed_prize_count : Int32 | Int64 | Nil #

Optional. Number of undistributed prizes

View source

#unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil) #

Optional. Number of undistributed prizes

View source

#winner_count : Int32 | Int64 #

Number of winners in the giveaway

View source

#winner_count=(winner_count : Int32 | Int64) #

Number of winners in the giveaway

View source