Class: Dislogger::Formatters::DiscordFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Dislogger::Formatters::DiscordFormatter
- Defined in:
- lib/dislogger/formatters/discord_formatter.rb
Instance Method Summary collapse
Methods inherited from BaseFormatter
Constructor Details
This class inherits a constructor from Dislogger::Formatters::BaseFormatter
Instance Method Details
#format ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dislogger/formatters/discord_formatter.rb', line 6 def format { username: @config.bot_username, embeds: [ { title: format_title, description: format_description, color: get_error_color, fields: build_fields, timestamp: Time.current.utc.iso8601 } ] } end |