Class: Discorb::Message::Activity

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

Overview

Represents a activity of message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#name -> String (readonly)

Returns The name of activity.

Returns:

  • (String)

    The name of activity.



134
135
136
# File 'lib/discorb/message_meta.rb', line 134

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



136
137
138
# File 'lib/discorb/message_meta.rb', line 136

def type
  @type
end