/
true or false (sometimes null or a value)
to indicate success or failure. Now those functions no longer return anything
(or only return a value) and instead throw custom discarpet exceptions that can be caught using try().
This affects the following functions and queries:
dc_set_channel_topicdc_reactdc_set_nicknamedc_add_roledc_remove_roledc_set_namedc_deletedc_send_messagedc_send_webhookdc_create_webhookdc_update_webhookdc_create_threaddc_create_application_commanddc_get_global_application_commandsdc_user_from_iddc_message_from_iddc_webhook_from_iddc_webhook_from_urlattachment~'download'channel~'webhooks'server~'webhooks'server~'slash_commands'user~'private_channel'dc_respond_interaction can still return null when the response type doesn't create a message. In all other cases it will either throw an exception or return a Message__on_discord_message(message, old_message, is_actual_edit)__on_discord_message_delete(message)__on_discord_server_member_join(server, user)__on_discord_server_member_leave(server, user)dc_create_slash_command. Use dc_create_application_command insteaddc_timeout into dc_get_timeout and dc_set_timeout
Fabric carpet extension that adds discord functionality to scarpet