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