Exception: DiscordStore::SearchScopeError

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

Overview

An attempt to search outside the messages this bot wrote, while the own_messages_only guard is on.

Search is the one endpoint in Discord's API that could turn this library into a scraper: it reads across a whole guild rather than a channel this bot was pointed at. The guard is enforced by pinning author_id to our own application, and this is what you get for trying to unpin it.