Class: Discorb::Sticker::Pack

Inherits:
DiscordModel show all
Defined in:
lib/discorb/sticker.rb

Overview

Represents a sticker pack.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

Returns The banner of the pack.

Returns:



126
127
128
# File 'lib/discorb/sticker.rb', line 126

def banner
  @banner
end

Returns The banner asset ID of the pack.

Returns:

  • (Discorb::Store::SKU)

    The banner asset ID of the pack.



122
123
124
# File 'lib/discorb/sticker.rb', line 122

def banner_asset_id
  @banner_asset_id
end

#cover_sticker_id -> Discorb::Snowflake (readonly)

Returns The cover sticker of the pack.

Returns:



118
119
120
# File 'lib/discorb/sticker.rb', line 118

def cover_sticker_id
  @cover_sticker_id
end

#description -> String (readonly)

Returns The description of the pack.

Returns:

  • (String)

    The description of the pack.



120
121
122
# File 'lib/discorb/sticker.rb', line 120

def description
  @description
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the sticker pack.

Returns:



112
113
114
# File 'lib/discorb/sticker.rb', line 112

def id
  @id
end

#name -> String (readonly)

Returns The name of the sticker pack.

Returns:

  • (String)

    The name of the sticker pack.



114
115
116
# File 'lib/discorb/sticker.rb', line 114

def name
  @name
end

#sku_id -> Discorb::Snowflake (readonly)

Returns The ID of the SKU.

Returns:



116
117
118
# File 'lib/discorb/sticker.rb', line 116

def sku_id
  @sku_id
end

#stickers -> Array<Discorb::Sticker> (readonly)

Returns The stickers in the pack.

Returns:



124
125
126
# File 'lib/discorb/sticker.rb', line 124

def stickers
  @stickers
end