Method: Discordrb::Bot#stream

Defined in:
lib/discordrb/bot.rb

#stream(name, url) ⇒ String

Sets the currently online stream to the specified name and Twitch URL.

Parameters:

  • name (String)

    The name of the stream to display.

  • url (String)

    The url of the current Twitch stream.

Returns:

  • (String)

    The stream name that is being displayed now.



578
579
580
581
582
# File 'lib/discordrb/bot.rb', line 578

def stream(name, url)
  gateway_check
  update_status(@status, name, url)
  name
end