Exception: Clacky::Channel::Adapters::Feishu::FeishuDocScopeError

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

Overview

Raised when the app hasn’t been granted the API scope for documents (error code 99991672). The admin needs to approve the scope via the returned auth_url.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_url) ⇒ FeishuDocScopeError

Returns a new instance of FeishuDocScopeError.



27
28
29
30
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 27

def initialize(auth_url)
  @auth_url = auth_url
  super("App is missing docx API scope")
end

Instance Attribute Details

#auth_urlObject (readonly)

Returns the value of attribute auth_url.



25
26
27
# File 'lib/clacky/server/channel/adapters/feishu/bot.rb', line 25

def auth_url
  @auth_url
end