Exception: Clacky::Channel::Adapters::Feishu::FeishuScopeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clacky/server/channel/adapters/feishu/bot.rb

Overview

Raised when any API call fails with 99991672 (missing app scope). The admin needs to open auth_url to grant the required permissions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_url, required_scopes: []) ⇒ FeishuScopeError

Returns a new instance of FeishuScopeError.



39
40
41
42
43
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 39

def initialize(auth_url, required_scopes: [])
  @auth_url = auth_url
  @required_scopes = required_scopes
  super("App is missing required API scope")
end

Instance Attribute Details

#auth_urlObject (readonly)

Returns the value of attribute auth_url.



37
38
39
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 37

def auth_url
  @auth_url
end

#required_scopesObject (readonly)

Returns the value of attribute required_scopes.



37
38
39
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 37

def required_scopes
  @required_scopes
end