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.



676
677
678
# File 'lib/discorb/message.rb', line 676

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



678
679
680
# File 'lib/discorb/message.rb', line 678

def type
  @type
end