Class: Discorb::Message::Sticker
- Inherits:
-
Object
- Object
- Discorb::Message::Sticker
- Defined in:
- lib/discorb/message_meta.rb
Overview
Represents a sticker.
Instance Attribute Summary collapse
-
#format -> Symbol
readonly
The sticker format.
-
#id -> Discorb::Snowflake
readonly
The sticker ID.
-
#name -> String
readonly
The sticker name.
Instance Method Summary collapse
-
#initialize(data) -> Sticker
constructor
A new instance of Sticker.
- #inspect -> Object
Constructor Details
Instance Attribute Details
#format -> Symbol (readonly)
Returns The sticker format.
112 113 114 |
# File 'lib/discorb/message_meta.rb', line 112 def format @format end |
#id -> Discorb::Snowflake (readonly)
Returns The sticker ID.
108 109 110 |
# File 'lib/discorb/message_meta.rb', line 108 def id @id end |
#name -> String (readonly)
Returns The sticker name.
110 111 112 |
# File 'lib/discorb/message_meta.rb', line 110 def name @name end |
Instance Method Details
#inspect -> Object
120 121 122 |
# File 'lib/discorb/message_meta.rb', line 120 def inspect "#<#{self.class.name} #{@id}: #{@name} format=#{@format}>" end |