messages API
Display custom toast notifications in the Replit workspace using the messages API to show confirmations, errors, warnings, and notices.
The messages API allows you to send custom notices in the Replit workspace.
Usage
Methods
messages.showConfirm
Shows a confirmation toast message within the Replit workspace for length
milliseconds. Returns the ID of the message as a UUID
messages.showError
Shows an error toast message within the Replit workspace for length
milliseconds. Returns the ID of the message as a UUID
messages.showNotice
Shows a notice toast message within the Replit workspace for length
milliseconds. Returns the ID of the message as a UUID
messages.showWarning
Shows a warning toast message within the Replit workspace for length
milliseconds. Returns the ID of the message as a UUID
messages.hideMessage
Hides a message by its IDs
messages.hideAllMessages
Hides all toast messages visible on the screens
Was this page helpful?