Class: Discorb::Message::Interaction
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Message::Interaction
- Defined in:
- lib/discorb/message.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.
653 654 655 |
# File 'lib/discorb/message.rb', line 653 def id @id end |
#name -> String? (readonly)
656 657 658 |
# File 'lib/discorb/message.rb', line 656 def name @name end |
#type -> Class (readonly)
Returns The type of interaction.
658 659 660 |
# File 'lib/discorb/message.rb', line 658 def type @type end |
#user -> Discorb::User (readonly)
Returns The user.
660 661 662 |
# File 'lib/discorb/message.rb', line 660 def user @user end |