Class: Rubirai::VoiceMessage
- Defined in:
- lib/rubirai/messages/message.rb
Overview
The voice message type
Instance Attribute Summary collapse
-
#path ⇒ String?
readonly
The local path of the voice.
-
#url ⇒ String?
readonly
The url of the voice.
-
#voice_id ⇒ String?
readonly
The voice id from mirai.
Attributes inherited from Message
Class Method Summary collapse
Methods inherited from Message
all_types, check_type, #to_h, to_message
Instance Attribute Details
#path ⇒ String? (readonly)
Returns the local path of the voice.
368 |
# File 'lib/rubirai/messages/message.rb', line 368 :Voice, :voice_id, :url, :path |
#url ⇒ String? (readonly)
Returns the url of the voice.
368 |
# File 'lib/rubirai/messages/message.rb', line 368 :Voice, :voice_id, :url, :path |
#voice_id ⇒ String? (readonly)
Returns the voice id from mirai.
368 |
# File 'lib/rubirai/messages/message.rb', line 368 :Voice, :voice_id, :url, :path |
Class Method Details
.from(**kwargs) ⇒ Rubirai::VoiceMessage
Form a Rubirai::VoiceMessage. Only needs to give one of the three arguments.
368 |
# File 'lib/rubirai/messages/message.rb', line 368 :Voice, :voice_id, :url, :path |