Class: Nanobot::Config::DiscordConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::DiscordConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Discord channel configuration
Instance Attribute Summary collapse
-
#allow_from ⇒ Object
Returns the value of attribute allow_from.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(enabled: false, token: nil, allow_from: []) ⇒ DiscordConfig
constructor
A new instance of DiscordConfig.
Constructor Details
#initialize(enabled: false, token: nil, allow_from: []) ⇒ DiscordConfig
Returns a new instance of DiscordConfig.
138 139 140 |
# File 'lib/nanobot/config/schema.rb', line 138 def initialize(enabled: false, token: nil, allow_from: []) super end |
Instance Attribute Details
#allow_from ⇒ Object
Returns the value of attribute allow_from
134 135 136 |
# File 'lib/nanobot/config/schema.rb', line 134 def allow_from @allow_from end |
#enabled ⇒ Object
Returns the value of attribute enabled
134 135 136 |
# File 'lib/nanobot/config/schema.rb', line 134 def enabled @enabled end |
#token ⇒ Object
Returns the value of attribute token
134 135 136 |
# File 'lib/nanobot/config/schema.rb', line 134 def token @token end |