Data & storage

Persistent per-server storage so leaderboards, economies, warning counts and pet games keep their state between runs.

Try asking

@Bond Track message counts and show a leaderboard

@Bond How many warnings does this user have?

The 12 tools behind it

You never call these yourself. Bond works out which ones it needs, checks your Discord permissions, and asks before anything changes.

  • get_document

    Retrieve a document from the guild's data store.

  • set_document

    Create or replace a document in the guild's data store.

  • merge_document

    Merge fields into an existing document (shallow merge).

  • delete_document

    Delete a document from the guild's data store.

  • list_documents

    List documents in a collection.

  • get_field

    Get a specific field from a document using dot notation for nested fields.

  • set_field

    Set a specific field in a document using dot notation.

  • increment_field

    Atomically increment a numeric field.

  • push_to_field

    Append a value to the end of an array field.

  • list_collections

    List all collections that exist in this guild's data store.

  • query_documents

    Execute an advanced query against the guild's data store.

  • get_leaderboard

    Get a leaderboard - the top N documents sorted by a specific field.

More of what Bond does