Class: Discordrb::Activity::Secrets

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/activity.rb

Overview

Contains secrets used for rich presence

Instance Attribute Summary collapse

Instance Attribute Details

#joinString? (readonly)

Returns secret for joining a party.

Returns:

  • (String, nil)

    secret for joining a party


143
144
145
# File 'lib/discordrb/data/activity.rb', line 143

def join
  @join
end

#matchString? (readonly)

Returns secret for a specific instanced match.

Returns:

  • (String, nil)

    secret for a specific instanced match


149
150
151
# File 'lib/discordrb/data/activity.rb', line 149

def match
  @match
end

#spectateString? (readonly)

Returns secret for spectating.

Returns:

  • (String, nil)

    secret for spectating


146
147
148
# File 'lib/discordrb/data/activity.rb', line 146

def spectate
  @spectate
end