Method: Discordrb::Bot#name

Defined in:
lib/discordrb/bot.rb

#nameString

The bot's name which discordrb sends to Discord when making any request, so Discord can identify bots with the same codebase. Not required but I recommend setting it anyway.

Returns:

  • The bot's name.



57
58
59
# File 'lib/discordrb/bot.rb', line 57

def name
  @name
end