bitburner-src/doc/source/netscript/basicfunctions/toast.rst
Olivier Gagnon c7c582e9fa update doc
2021-10-16 22:36:49 -04:00

18 lines
413 B
ReStructuredText

toast() Netscript Function
============================
.. js:function:: toast(message[, variant])
:RAM cost: 0 GB
:param string message: message to display
:param success|info|warning|error variant: color of the toast
Spawns a toast (those bottom right notifications).
Example:
.. code-block:: javascript
toast("Reached $1b");
toast("Failed to hack home", "error");