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



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

def join
  @join
end

#matchString? (readonly)

Returns secret for a specific instanced match.

Returns:

  • (String, nil)

    secret for a specific instanced match



151
152
153
# File 'lib/discordrb/data/activity.rb', line 151

def match
  @match
end

#spectateString? (readonly)

Returns secret for spectating.

Returns:

  • (String, nil)

    secret for spectating



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

def spectate
  @spectate
end