class Tourmaline::GiveawayCompleted

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(winner_count : Int32 | Int64, unclaimed_prize_count : Int32 | Int64 | Nil = nil, giveaway_message : Tourmaline::Message | Nil = nil) #

[View source]

Instance Method Detail

def giveaway_message : Tourmaline::Message | Nil #

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


[View source]
def giveaway_message=(giveaway_message : Tourmaline::Message | Nil) #

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


[View source]
def unclaimed_prize_count : Int32 | Int64 | Nil #

Optional. Number of undistributed prizes


[View source]
def unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil) #

Optional. Number of undistributed prizes


[View source]
def winner_count : Int32 | Int64 #

Number of winners in the giveaway


[View source]
def winner_count=(winner_count : Int32 | Int64) #

Number of winners in the giveaway


[View source]