Class: Discorb::Message::Interaction
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Message::Interaction
- Defined in:
- lib/discorb/message_meta.rb
Overview
Represents a interaction of message.
Instance Attribute Summary collapse
-
#id -> Discorb::Snowflake
readonly
The user ID.
- #name -> String? readonly
-
#type -> Class
readonly
The type of interaction.
-
#user -> Discorb::User
readonly
The user.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#id -> Discorb::Snowflake (readonly)
Returns The user ID.
111 112 113 |
# File 'lib/discorb/message_meta.rb', line 111 def id @id end |
#name -> String? (readonly)
114 115 116 |
# File 'lib/discorb/message_meta.rb', line 114 def name @name end |
#type -> Class (readonly)
Returns The type of interaction.
116 117 118 |
# File 'lib/discorb/message_meta.rb', line 116 def type @type end |
#user -> Discorb::User (readonly)
Returns The user.
118 119 120 |
# File 'lib/discorb/message_meta.rb', line 118 def user @user end |