class Tourmaline::GiveawayCompleted
- Tourmaline::GiveawayCompleted
- Reference
- Object
Overview
This object represents a service message about the completion of a giveaway without public winners.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(winner_count : Int32 | Int64, unclaimed_prize_count : Int32 | Int64 | Nil = nil, giveaway_message : Tourmaline::Message | Nil = nil)
Instance Method Summary
-
#giveaway_message : Tourmaline::Message | Nil
Optional.
-
#giveaway_message=(giveaway_message : Tourmaline::Message | Nil)
Optional.
-
#unclaimed_prize_count : Int32 | Int64 | Nil
Optional.
-
#unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil)
Optional.
-
#winner_count : Int32 | Int64
Number of winners in the giveaway
-
#winner_count=(winner_count : Int32 | Int64)
Number of winners in the giveaway
Constructor Detail
def self.new(winner_count : Int32 | Int64, unclaimed_prize_count : Int32 | Int64 | Nil = nil, giveaway_message : Tourmaline::Message | Nil = nil)
#
Instance Method Detail
def giveaway_message : Tourmaline::Message | Nil
#
Optional. Message with the giveaway that was completed, if it wasn't deleted
def giveaway_message=(giveaway_message : Tourmaline::Message | Nil)
#
Optional. Message with the giveaway that was completed, if it wasn't deleted
def unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil)
#
Optional. Number of undistributed prizes