Exception: DiscordStore::UnacknowledgedError

Inherits:
Error
  • Object
show all
Defined in:
lib/discord_store/errors.rb

Overview

Raised when the caller has not acknowledged that this library operates in violation of the Discord Developer Terms of Service. See Configuration#i_understand_this_violates_discord_tos.

Constant Summary collapse

DEFAULT_MESSAGE =
<<~MSG
  discord_store stores application data in Discord messages and attachments.
  That is an explicit violation of the Discord Developer Terms of Service and
  the Discord API Developer Policy, and it can get your bot token revoked and
  your account actioned without warning.

  This library will not talk to Discord until you say, in code, that you know
  that:

      DiscordStore.configure do |c|
        c.i_understand_this_violates_discord_tos = true
      end

  Do not set this in an application you did not build for yourself.
MSG

Instance Method Summary collapse

Constructor Details

#initialize(msg = DEFAULT_MESSAGE) ⇒ UnacknowledgedError

Returns a new instance of UnacknowledgedError.



31
32
33
# File 'lib/discord_store/errors.rb', line 31

def initialize(msg = DEFAULT_MESSAGE)
  super
end