class Discorb::Sticker::Pack
Represents a sticker pack.
Attributes
cover_sticker_id[R]
@return [Discorb::Snowflake] The cover sticker of the pack.
description[R]
@return [String] The description of the pack.
id[R]
@return [Discorb::Snowflake] The ID of the sticker pack.
name[R]
@return [String] The name of the sticker pack.
sku_id[R]
@return [Discorb::Snowflake] The ID of the SKU.
stickers[R]
@return [Array<Discorb::Sticker>] The stickers in the pack.
Public Class Methods
new(client, data)
click to toggle source
@!visibility private
# File lib/discorb/sticker.rb, line 120 def initialize(client, data) @client = client @id = Snowflake.new(data[:id]) @name = data[:name] @sku_id = Snowflake.new(data[:sku_id]) @cover_sticker_id = Snowflake.new(data[:cover_sticker_id]) @description = data[:description] @banner_asset_id = Snowflake.new(data[:banner_asset_id]) @banner = Asset.new(self, data[:banner_asset_id], path: "app-assets/710982414301790216/store") @stickers = data[:stickers].map { |s| Sticker.new(@client, s) } end