90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Changelog

BREAKING CHANGES:

  • Intents are no longer boolean values, but a list of strings instead (See Setup)
  • dc_get_global_slash_commands got renamed to dc_get_global_application_commands and now returns all types of commands
  • dc_create_slash_command() got renamed to dc_create_application_command() and has an additional type argument, and returns the application command value instead of a boolean now
  • slash_command~'id' now returns the interaction id, instead of the slash command id. Use slash_command~'command_id' instead
  • The string representation of all discord values is now no longer the type name, but a custom string

Other changes:

  • Added message_context_menu_builder and user_context_menu_builder parsable
  • Added dc_message_context_menu and dc_user_context_menu values
  • Added dc_message_context_menu_interaction and dc_user_context_menu_interaction values
  • Added ephemeral and suppress_embeds fields to message_content parsable
  • dc_create_application_command now works with message context menu and user context menu commands
  • Fixed modal parsable internally being called embed
  • Internally, renamed instant parsable to timestamp to match docs

Revamped documentation

  • The docs have moved to https://replaceitem.github.io/carpet-discarpet/
  • All functions, values, parsables, events and examples have their own page now
  • Added internal parsable names to the docs
  • Added documentation on dc_get_global_application_commands() which was missing
  • Many many more changes and polishes to docs

Files

discarpet-1.19-1.4.3.jar(4.32 MiB) Primary Download

Project members

replaceitem

Owner

Details

Licensed MIT
Published 2 years ago
Updated 5 months ago