Hi all,
I had originally designed a custom chat system within my game which heavily relied on the forked events within DefaultChatSystemChatEvents, primarily the SayMessageRequest event. However, with the fact everyone must soon use TextChatService, I removed this fork and custom system to save myself the hassle and just use TextChatService.
I’ve read through most of the TextChatService documentation, and I’ve come across two events which I had thought may be of help: SendingMessage and MessageReceived (the latter seeming to be a client only event, which I need it to be an event that fires on the server). However, neither of these have worked for me.
I have checked, and I am using TextChatService, not LegacyChatService. I have properly converted over. I am just confused as to what exactly to do, and rather than continuing to just search by myself, thought I’d ask to see if anyone knew the solution (or has had the same issue).
In short, I need this event to have this data in the arguments (in some way):
- The player sending the message.
- The (ideally filtered) message itself.
- The channel that the message is being sent in.
Any help would be greatly appreciated!