Class: Rubirai::ImageMessage
- Defined in:
- lib/rubirai/messages/message.rb
Overview
The image message type. Only one out of the three fields is needed to form the message.
Instance Attribute Summary collapse
-
#image_id ⇒ String?
readonly
The image id from mirai.
-
#path ⇒ String?
readonly
The local path of the image.
-
#url ⇒ String?
readonly
The url of the image.
Attributes inherited from Message
Class Method Summary collapse
Methods inherited from Message
all_types, check_type, #to_h, to_message
Instance Attribute Details
#image_id ⇒ String? (readonly)
Returns the image id from mirai.
332 |
# File 'lib/rubirai/messages/message.rb', line 332 :Image, :image_id, :url, :path |
#path ⇒ String? (readonly)
Returns the local path of the image.
332 |
# File 'lib/rubirai/messages/message.rb', line 332 :Image, :image_id, :url, :path |
#url ⇒ String? (readonly)
Returns the url of the image.
332 |
# File 'lib/rubirai/messages/message.rb', line 332 :Image, :image_id, :url, :path |
Class Method Details
.from(**kwargs) ⇒ Rubirai::ImageMessage
Form an Rubirai::ImageMessage. Only needs to give one of the three arguments.
332 |
# File 'lib/rubirai/messages/message.rb', line 332 :Image, :image_id, :url, :path |