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.
532 533 534 |
# File 'lib/discorb/message.rb', line 532 def id @id end |
#name -> String? (readonly)
535 536 537 |
# File 'lib/discorb/message.rb', line 535 def name @name end |
#type -> Class (readonly)
Returns The type of interaction.
537 538 539 |
# File 'lib/discorb/message.rb', line 537 def type @type end |
#user -> Discorb::User (readonly)
Returns The user.
539 540 541 |
# File 'lib/discorb/message.rb', line 539 def user @user end |