Method: Discordrb::Bot#game=

Defined in:
lib/discordrb/bot.rb

#game=(name) ⇒ String Also known as: playing=

Sets the currently playing game to the specified game.

Parameters:

  • name (String)

    The name of the game to be played.

Returns:

  • (String)

    The game that is being played now.



551
552
553
554
# File 'lib/discordrb/bot.rb', line 551

def game=(name)
  gateway_check
  update_status(@status, name, nil)
end