In api for mute_alert written:
I use that:mute_alert(alert_type) → boolean
Mutes alerts for the given alert category.
Parameters
alert_type :: defines.alert_type
Return value
If the alert type was muted (false if it was already muted).
Code: Select all
player.mute_alert(defines.alert_type.custom);