TextFilterUtils
Utility functions for filtering text
Installation
npm install @quenty/textfilterutils --save
Usage
Usage is designed to be simple.
TextFilterUtils.promiseNonChatStringForBroadcast(str, fromUserId, textContext)
TextFilterUtils.promiseLegacyChatFilter(playerFrom, text)
TextFilterUtils.promiseNonChatStringForUserAsync(str, fromUserId, toUserId, textContext)
TextFilterUtils.getNonChatStringForBroadcastAsync(str, fromUserId, textContext)
TextFilterUtils.getNonChatStringForUserAsync(str, fromUserId, toUserId, textContext)
TextFilterUtils._promiseTextResult(getResult, ...)