Method: Discordrb::Commands::CommandBot#prefix

Defined in:
lib/discordrb/commands/command_bot.rb

#prefixString, ... (readonly)

Returns the prefix commands are triggered with.

Returns:

  • (String, Array<String>, #call)

    the prefix commands are triggered with.

See Also:



21
22
23
# File 'lib/discordrb/commands/command_bot.rb', line 21

def prefix
  @prefix
end