simplistic message passing
The messages interface defines a way for Hilbish-integrated commands,
user config and other tasks to send notifications to alert the user.z
The hilbish.message type is a table with the following keys:
title (string): A title for the message notification.
text (string): The contents of the message.
channel (string): States the origin of the message, hilbish.* is reserved for Hilbish tasks.
summary (string): A short summary of the text.
icon (string): Unicode (preferably standard emoji) icon for the message notification
read (boolean): Whether the full message has been read or not.
|unreadCount()|Returns the amount of unread messages.|
|readAll()|Marks all messages as read.|
|send(message)|Sends a message.|
|read(idx)|Marks a message at idx as read.|
|delete(idx)|Deletes the message at idx.|
|clear()|Deletes all messages.|
|all()|Returns all messages.|
Want to help improve this page? Create an issue.