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.



633
634
635
# File 'lib/discorb/message.rb', line 633

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



635
636
637
# File 'lib/discorb/message.rb', line 635

def type
  @type
end