This will delete all rendered instances on the player’s end and will prevent the player from receiving new messages from this channel. → Unsubscribes the requested player from this channel. → When creating new channels with the ChannelAPI.new() method, you must subscribe the desired players to the new channel, otherwise messages sent to this channel will not register for players who are not currently subscribed to it. Returning true with your Validator function will prevent the specified message from being sent. This is useful for hiding admin command messages. → Adds a “gateway” validator that should return true/false/nil for any passed message values. Please note that messages must not be over 200 utf8 characters, otherwise the API method will fail. → Replicates the provided message IF the speaker and recipient exists. :Message( Speaker : Speaker, Message : string, Recipient : Player | Channel ) → If the queried channel exists, this method will return it. → Creates a new Channel that can be used to replicate messages to clients. If you would like to use any of these api’s, please reference the Src framework as follows: local API_TO_GET = _TO_GETĬhannels:ThisMethod() - runs ":ThisMethod()" Please note that SocialChat API methods come from the components, NOT from the module itself. Initially, you must retreive the SocialChat module in your desired script by using the following code: local SocialChat = require(game.ReplicatedStorage:WaitForChild("SocialChat")) Īdditionally, any references to the keyword "this" are strictly refering to Object-Oriented References. An official website will be created soon, but for now here’s how you can maximize your usage with SocialChat’s extensive API!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |