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.
159 160 161 |
# File 'lib/discorb/message_meta.rb', line 159 def id @id end |
#name -> String? (readonly)
162 163 164 |
# File 'lib/discorb/message_meta.rb', line 162 def name @name end |
#type -> Class (readonly)
Returns The type of interaction.
164 165 166 |
# File 'lib/discorb/message_meta.rb', line 164 def type @type end |
#user -> Discorb::User (readonly)
Returns The user.
166 167 168 |
# File 'lib/discorb/message_meta.rb', line 166 def user @user end |