notifications.unsubscribe()

Type Function
Return value none
Revision Release 2024.3703
Keywords notification, notifications, unsubscribe
See also notifications.subscribe()
notifications.*

Overview

Unsubscribe from a specific topic.

Syntax

notifications.unsubscribe( topic )
topic (required)

String. The topic to unsubscribe from.

Example

local notifications = require( "plugin.notifications.v2" )

notifications.subscribe( "news" )

-- Sometime later, unsubscribe from the topic
notifications.unsubscribe( "news" )