Class: Discorb::Message::Activity

Inherits:
DiscordModel show all
Defined in:
lib/discorb/message.rb

Overview

Represents a activity of message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #hash

Instance Attribute Details

#name -> String (readonly)

Returns The name of activity.

Returns:

  • (String)

    The name of activity.



659
660
661
# File 'lib/discorb/message.rb', line 659

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



661
662
663
# File 'lib/discorb/message.rb', line 661

def type
  @type
end