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.
106 107 108 |
# File 'lib/discorb/message_meta.rb', line 106 def format @format end |
#id ⇒ Discorb::Snowflake (readonly)
Returns The sticker ID.
102 103 104 |
# File 'lib/discorb/message_meta.rb', line 102 def id @id end |
#name ⇒ String (readonly)
Returns The sticker name.
104 105 106 |
# File 'lib/discorb/message_meta.rb', line 104 def name @name end |
Instance Method Details
#inspect ⇒ Object
114 115 116 |
# File 'lib/discorb/message_meta.rb', line 114 def inspect "#<#{self.class.name} #{@id}: #{@name} format=#{@format}>" end |