Retrieves a list of message icons.
- Based on the settings, the array will either contain a list of default
message icons or a list of custom message icons retrieved from the database.
- The board_id is needed for the custom message icons (which can be set for
each board individually).