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.



665
666
667
# File 'lib/discorb/message.rb', line 665

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



667
668
669
# File 'lib/discorb/message.rb', line 667

def type
  @type
end