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 interaction ID.
- #name -> String? readonly
-
#type -> Class
readonly
The type of interaction.
-
#user -> Discorb::User
readonly
The user.
Instance Method Summary collapse
Methods inherited from DiscordModel
Instance Attribute Details
#id -> Discorb::Snowflake (readonly)
Returns The interaction ID.
123 124 125 |
# File 'lib/discorb/message_meta.rb', line 123 def id @id end |
#name -> String? (readonly)
126 127 128 |
# File 'lib/discorb/message_meta.rb', line 126 def name @name end |
#type -> Class (readonly)
Returns The type of interaction.
128 129 130 |
# File 'lib/discorb/message_meta.rb', line 128 def type @type end |
#user -> Discorb::User (readonly)
Returns The user.
130 131 132 |
# File 'lib/discorb/message_meta.rb', line 130 def user @user end |
Instance Method Details
#inspect -> Object
147 148 149 |
# File 'lib/discorb/message_meta.rb', line 147 def inspect "<#{self.class.name} #{@id}: #{@name} type=#{@type} #{@user}>" end |