- Update to Minecraft 1.20.5
- Updated to MC 1.20.4
- Added new sticker value type
- Added dc_sticker_from_id(stickerId)
- Added new query options:
message~'webhook_id'
emoji~'id'
server~'emojis'
server~'stickers'
message~'sticker_ids'
- Added
stickers
field to message content parsable
- Added new properties to message values:
referenced_message
type
link
flags
creation_timestamp
edit_timestamp
position
- Fixed discarpet loading events too early, causing log spam with modded entities (#42)
- Removed
__on_command_executed
in favor of builtin__on_player_command
- Server voice channels can now be used for sending messages into the buildin text-in-voice channel
- Added suppress_notifications to the message content parsable
- Updated to Minecraft 1.20
- Reloading bots will now no longer freeze the game
- Improved error handling of the /discarpet command
- Updated to Minecraft 1.19.4
- Updated to minecraft 1.19.3
- Added support for user, channel, mentionable and role select menus
- Added new
component_type
property to select menu interaction values for distinguishing between different select menus - Added
nsfw
property to channel values - Changed docs to be more consistent and correct for interaction value types
- Added
dc_create_thread
function - Added
thread
parsable - Improved error message in some cases for parsables
- Using new internal enum parser for parsables
- Updated to Minecraft 1.19.1
- Fixed webhook profile and webhook profile updater parsable throwing an error when not using an avatar
- The
text
argument__on_system_message
is now a formatted text value, which allows for better parsing usingencode_json(text)
- Improved config loading by adding missing config entries on startup
- Fix errors when events trigger when the server is starting or stopping
- Bumped dependency versions (This fixes the server not fully terminating after the world saved)
BREAKING CHANGES:
- Intents are no longer boolean values, but a list of strings instead (See Setup)
dc_get_global_slash_commands
got renamed todc_get_global_application_commands
and now returns all types of commandsdc_create_slash_command()
got renamed todc_create_application_command()
and has an additionaltype
argument, and returns the application command value instead of a boolean nowslash_command~'id'
now returns the interaction id, instead of the slash command id. Useslash_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
anduser_context_menu_builder
parsable - Added
dc_message_context_menu
anddc_user_context_menu
values - Added
dc_message_context_menu_interaction
anddc_user_context_menu_interaction
values - Added
ephemeral
andsuppress_embeds
fields tomessage_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 totimestamp
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
- Added support for modals
- Added Modal parsable
- Added new component: Text input parsable
dc_respond_interaction
now supports responding with a modal usingRESPOND_MODAL
type- Added
dc_modal_interaction
value - Added
__on_discord_modal(interaction)
event - New modal example
- Added
dc_set_name
function for renaming channels, emojis, roles, servers and webhooks - Added
locale
property to all interactions. Returns the language code likeen-US
- Slash command interaction options now work with the
attachment
option type for submitting attachments as a slash command argument (Updated the slash command example) - The
reason
argument ondc_add_role
anddc_remove_role
is now optional - Added optional
reason
argument todc_set_nickname
anddc_delete
- Added
dc_timeout
function
- Chat messages,
/say
and/me
messages are now included in__on_system_message
- Added
__on_command_executed(player, command)
event
- Removed
__on_chat_message
event due to it being in fabric-carpet now (__on_player_message
). __on_system_message
no longer provides an entity, since it only triggers from non entity bound actions now. A lot has changed with this event, many things that previously did, may no longer trigger this
First modrinth release
Update 1.3.2.1: Fixed server not terminating after stopping
Update 1.3.2.2: Fixed class not found error