Bot icon
slash-create Docs slash-create Docs#9858
Status
Prefix:
/
Owner:
Junior
Library:
slash-create
A bot built using slash-create for searching its documentation.

Built using slash-create, /docs, /code and /search are served by the documentation as a backbone. Along with providing utility for /debug on context entities and /temporal for timestamp markup.

/docs class /code entity
docs_class code_entity
/debug user /temporal *
debug_user temporal_multi
  • /docs * queries the documentation for slash-create’s latest release.

    • /docs {class, event, method, prop, typedef} are all entity types found within the manifest.
  • /code * uses known files from the manifest to fetch source code from the repository.

    • /code entity uses a manifest entry as reference to cut around to size.
    • /code lines uses a provided file path and line ranges to cut to size.
  • /debug * was added to get ahead and allow easier inspection of payload blobs, without having to update a library or arbitrarily request the data to show.

    • /debug user targets the invoking user or a provided user (works in DMs).
    • /debug channel targets the invoking channel or a provided channel (works in DMs).
    • /debug role targets the provided role (guild only).

    Using /Debug User or /Debug Message from a context menu provides the command with the selected entity and returns the result in the channel being viewed.

  • /temporal * was added to provide easier access to Discord’s timestamp markup.

    • /temporal now generates a timestamp using the command as reference.
    • /temporal exact uses the arguments provided to construct a timestamp for the exact instant.
    • /temporal occurrences iterates between start_ and end_ years to search for matches between weekday and date/month.
    • /temporal parse uses chrono-node on query to extract date references.

Any command that appears publicly, can be deleted through the bot by the caller of the original command or a user with MANAGE_MESSAGES. If a delete button is not found on a message, /Debug Message context command can be run to add the delete button retroactively.